|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.Converter
Class to convert from world coordinates to screen coordinates. The individual layers will have data in their respective projections. Typically, this will all be one projection. The converter will then convertfrom that projection to screen coordinates.
Constructor Summary | |
Converter(Envelope inScreenEnvelope,
Envelope inWorldEnvelope)
Create a converter to convert from the given screen Envelope to the given world Envelope, and vice versa. |
|
Converter(Envelope inScreenEnvelope,
Envelope inWorldEnvelope,
boolean inSquare)
Create a converter to convert from the given screen Envelope to the given world Envelope, and vice versa. |
Method Summary | |
int |
convertX(double inX)
Convert the given world x coordinate to a corrisponding screen coordinate. |
int |
convertY(double inY)
|
Envelope |
getScreenEnvelope()
Returns a copy of the screen Envelope used to create this converter. |
double |
getScreenHeight()
Return the height of the screen |
double |
getScreenWidth()
Return the width of the screen |
Envelope |
getWorldEnvelope()
Returns a copy of the world Envelope used to create this converter. |
double |
getWorldHeight()
Retrieve the height of the world |
double |
getWorldWidth()
Return the width of the world |
int |
toScreenX(double inX)
Converts the given world coordinate in X to a screen pixel coordinate in X. |
int |
toScreenY(double inY)
Converts the given world coordinate in Y to a screen pixel coordinate in Y. |
double |
toWorldX(int inX)
Converts the given screen X pixel coordinate to a world X coordinate. |
double |
toWorldY(int inY)
Converts the given screen Y pixel coordinate to a world Y coordinate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Converter(Envelope inScreenEnvelope, Envelope inWorldEnvelope)
public Converter(Envelope inScreenEnvelope, Envelope inWorldEnvelope, boolean inSquare)
Method Detail |
public int convertX(double inX)
public int convertY(double inY)
public Envelope getWorldEnvelope()
public Envelope getScreenEnvelope()
public int toScreenX(double inX)
public int toScreenY(double inY)
public double toWorldX(int inX)
public double toWorldY(int inY)
public double getWorldWidth()
public double getWorldHeight()
public double getScreenWidth()
public double getScreenHeight()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |