|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectebgeo.maprequest.MapSegment
A class modelling a segment of a larger map. Maps may need to be broken down into segments if the user requests an image that is larger than the largest image that the remote map service will serve.
Constructor Summary | |
MapSegment(int x,
int y)
Creates a new instance of MapSegment. |
|
MapSegment(int x,
int y,
double minx,
double miny,
double maxx,
double maxy,
int width,
int height,
int xOffset,
int yOffset,
String filename)
Creates a new instance of MapSegment. |
Method Summary | |
void |
addError(String errorMessage)
|
boolean |
equals(Object rhs)
|
int |
getErrorCount()
|
String |
getFilename()
|
int |
getHeight()
|
String |
getLastError()
Get the message associated with the last error that ocurred when requesting this segment from the remote map service. |
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMinX()
|
double |
getMinY()
|
int |
getWidth()
|
int |
getX()
|
int |
getXOffset()
Getter for property xOffset. |
int |
getY()
|
int |
getYOffset()
Getter for property yOffset. |
boolean |
isComplete()
|
void |
setComplete(boolean complete)
|
void |
setFilename(String filename)
|
void |
setXOffset(int xOffset)
Setter for property xOffset. |
void |
setYOffset(int yOffset)
Setter for property yOffset. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapSegment(int x, int y)
x
- The X index of this segment into the full map.y
- The Y index of this segment into the full map.public MapSegment(int x, int y, double minx, double miny, double maxx, double maxy, int width, int height, int xOffset, int yOffset, String filename)
x
- The X index of this segment into the full map.y
- The Y index of this segment into the full map.minx
- The minimum X value for this segment.miny
- The minimum Y value for this segment.maxx
- The maximum X value for this segment.maxy
- The maximum Y value for this segment.width
- The width of the image to create.height
- The height of the image to create.filename
- The name of the file to store the image in.Method Detail |
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public String getFilename()
public void setFilename(String filename)
public boolean isComplete()
public void setComplete(boolean complete)
public void addError(String errorMessage)
public int getErrorCount()
public String getLastError()
public boolean equals(Object rhs)
public int getXOffset()
public void setXOffset(int xOffset)
xOffset
- New value of property xOffset.public int getYOffset()
public void setYOffset(int yOffset)
yOffset
- New value of property yOffset.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |