|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OMLabeler
An OMLabeler is used by OMGraphics to handle their labels. It can draw the text on the map, and tell how far away an x,y pixel location is away from where it's drawing itself on the map.
Method Summary | |
---|---|
float |
distance(double x,
double y)
The OMLabler should return the pixel distance from any part of the label to the given x, y pixel distance. |
void |
evaluateRotationAngle(Projection proj)
Evaluate the current projection in case it has information that affects placement, like rotation. |
void |
render(java.awt.Graphics g)
The OMLabeler should render the text label onto the Graphics object. |
void |
setLocation(java.awt.geom.GeneralPath gp)
The OMLabeler should be able to determine its pixel location based on the GeneralPath of the OMGraphic. |
void |
setLocation(int[] xpoints,
int[] ypoints)
The OMLabeler should be able to determine its pixel location based on a set of x and y pixel coordinates common in OMGraphics. |
void |
setLocation(java.awt.geom.Point2D p)
The OMLabeler should be able to set its pixel location directly. |
Method Detail |
---|
void render(java.awt.Graphics g)
g
- float distance(double x, double y)
x
- pixel distance from left side of map window.y
- pixel distance from top of map window.
void setLocation(java.awt.geom.GeneralPath gp)
gp
- void setLocation(int[] xpoints, int[] ypoints)
xpoints
- ypoints
- void setLocation(java.awt.geom.Point2D p)
p
- void evaluateRotationAngle(Projection proj)
proj
- Projection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |