|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.RenderedScale
public class RenderedScale
The scale and origin for a (usually continuous) set of rendered map images.
| Constructor Summary | |
|---|---|
RenderedScale()
|
|
| Method Summary | |
|---|---|
DoubleRectangle |
expandToMatchTiling(DoubleRectangle original)
This is the same as groundCoveredBy(tilesCovering(groundRect)). |
double |
getHeight()
|
int |
getImageHeight()
|
int |
getImageWidth()
|
double |
getOriginX()
|
double |
getOriginY()
|
Scale |
getScale()
|
double |
getWidth()
|
DoubleRectangle |
groundCoveredBy(IntegerRectangle sheets)
Returns the DoubleRectangle of ground coordinates matching the given IntegerRectangle of sheets. |
Coord2D |
originOf(Coord2D tile)
Returns the origin in ground coordinates of the given image tile. |
Coord2D |
originOf(int x,
int y)
Returns the origin in ground coordinates of the given image tile. |
void |
setImageHeight(int newImageHeight)
|
void |
setImageWidth(int newImageWidth)
|
void |
setOriginX(double newOriginX)
|
void |
setOriginY(double newOriginY)
|
void |
setScale(Scale newScale)
|
Coord2D |
tileCovering(Coord2D coord)
Returns the x,y location of the tile containing the given ground coordinate. |
IntegerRectangle |
tilesCovering(DoubleRectangle groundRect)
Returns the smallest IntegerRectangle of sheets containing the given DoubleRectangle of ground coordinates. |
int |
xToSheet(double x)
Returns the X coordinate of the sheet column with the given ground coordinate. |
int |
yToSheet(double y)
Returns the Y coordinate of the sheet row with the given ground coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RenderedScale()
| Method Detail |
|---|
public int xToSheet(double x)
public int yToSheet(double y)
public Coord2D tileCovering(Coord2D coord)
public Coord2D originOf(Coord2D tile)
public Coord2D originOf(int x,
int y)
public IntegerRectangle tilesCovering(DoubleRectangle groundRect)
public DoubleRectangle groundCoveredBy(IntegerRectangle sheets)
public DoubleRectangle expandToMatchTiling(DoubleRectangle original)
public Scale getScale()
public void setScale(Scale newScale)
public double getOriginX()
public void setOriginX(double newOriginX)
public double getOriginY()
public void setOriginY(double newOriginY)
public int getImageWidth()
public void setImageWidth(int newImageWidth)
public int getImageHeight()
public void setImageHeight(int newImageHeight)
public double getWidth()
public double getHeight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||