public interface LabeledOMGraphic
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
getCenter()
Get the calculated center where the label string is drawn.
|
java.awt.Font |
getFont()
Get the Font for the label.
|
int |
getIndex()
Get the index of the OMGraphic where the String will be
rendered.
|
int |
getJustify()
Get the justification setting for the label.
|
java.awt.Point |
getOffset()
Get the x, y pixel offsets set for the rendering of the point.
|
double |
getRotationAngle()
Get the current rotation of the text.
|
java.lang.String |
getText()
Get the String for the label.
|
boolean |
isLocateAtCenter()
Get whether the LabeledOMGraphic is placing the label String in
the center of the OMGraphic.
|
void |
setFont(java.awt.Font f)
Set the Font for the label.
|
void |
setIndex(int index)
Set the index of the OMGraphic coordinates where the drawing
point of the label should be attached.
|
void |
setJustify(int just)
Set the justification setting for the label.
|
void |
setLocateAtCenter(boolean set)
Tell the LabeledOMGraphic to calculate the location of the
String that would put it in the middle of the OMGraphic.
|
void |
setOffset(java.awt.Point p)
Set the x, y pixel offsets where the String should be rendered,
from the location determined from the index point, or from the
calculated center point.
|
void |
setRotationAngle(double angle)
Set the angle by which the text is to rotated.
|
void |
setText(java.lang.String label)
Set the String for the label.
|
void setText(java.lang.String label)
java.lang.String getText()
void setFont(java.awt.Font f)
java.awt.Font getFont()
void setJustify(int just)
int getJustify()
void setLocateAtCenter(boolean set)
boolean isLocateAtCenter()
java.awt.Point getCenter()
void setIndex(int index)
int getIndex()
void setOffset(java.awt.Point p)
java.awt.Point getOffset()
void setRotationAngle(double angle)
angle
- the number of radians the text is to be rotated.
Measured clockwise from horizontal. Positive numbers
move the positive x axis toward the positive y axis.double getRotationAngle()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details