net.agmodel.chizudata
Class ChizuRequest

java.lang.Object
  |
  +--net.agmodel.chizudata.ChizuRequest
All Implemented Interfaces:
Serializable, ServerRequest

public class ChizuRequest
extends Object
implements Serializable, ServerRequest

Title:

Description:

Copyright: Copyright (c) 2002

Company:

See Also:
Serialized Form

Field Summary
(package private)  GeographicalArea area
           
(package private)  int height
           
(package private)  String language
           
(package private)  double scale
           
(package private)  String sourceID
           
(package private)  int width
           
 
Constructor Summary
ChizuRequest(Location2D center, Rectangle rect, double aScale, String aLanguage, String aSourceID)
          Creates a request object to be sent to ChizuBroker
 
Method Summary
 int getHeight()
          Returns the height of the requested map, in pixels
 String getLanguage()
           
 GeographicalArea getRegion()
          Returns the geographical area calculated by the request constructor from the center, scale and rect parameters
 double getScale()
           
 String getSourceID()
           
 int getWidth()
          Returns the width of the requested map, in pixels
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

area

GeographicalArea area

scale

double scale

width

int width

height

int height

language

String language

sourceID

String sourceID
Constructor Detail

ChizuRequest

public ChizuRequest(Location2D center,
                    Rectangle rect,
                    double aScale,
                    String aLanguage,
                    String aSourceID)
Creates a request object to be sent to ChizuBroker

Parameters:
center - the center of the area for which a map is required.
rect - the screen rectangle that the map must fill (in pixels)
aScale - the scale of the required map (eg use 10,000 for 1:10,0000)
aLanguage - the preferred language of the user (for placenames etc)
aSourceID - the identifier of a preferred source - use null if no particular source is preferred.
Method Detail

getSourceID

public String getSourceID()

getRegion

public GeographicalArea getRegion()
Returns the geographical area calculated by the request constructor from the center, scale and rect parameters

Returns:
the portion of the globe that the map will cover.

getLanguage

public String getLanguage()

getScale

public double getScale()

getWidth

public int getWidth()
Returns the width of the requested map, in pixels

Returns:
the width of the rect parameter in the constructor

getHeight

public int getHeight()
Returns the height of the requested map, in pixels

Returns:
the height of the rect parameter in the constructor

toString

public String toString()
Overrides:
toString in class Object