public interface OMLabeler
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
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
- Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details