net.agmodel.chizudata
Class ChizuRequest
java.lang.Object
|
+--net.agmodel.chizudata.ChizuRequest
- All Implemented Interfaces:
- Serializable, net.agmodel.genericBroker.ServerRequest
- public class ChizuRequest
- extends Object
- implements Serializable, net.agmodel.genericBroker.ServerRequest
Title:
Description:
Copyright: Copyright (c) 2002
Company:
- See Also:
- Serialized Form
|
Constructor Summary |
ChizuRequest(net.agmodel.physical.Location2D center,
Rectangle rect,
double aScale,
String aLanguage,
String aSourceID)
Creates a request object to be sent to ChizuBroker |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
area
net.agmodel.physical.GeographicalArea area
scale
double scale
width
int width
height
int height
language
String language
sourceID
String sourceID
ChizuRequest
public ChizuRequest(net.agmodel.physical.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.
getSourceID
public String getSourceID()
getRegion
public net.agmodel.physical.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