| Modifier and Type | Field and Description |
|---|---|
protected XyPoint |
anchor |
protected MapApp |
app |
protected double |
DEGREE_TO_BIT |
protected MapSet |
mapset |
protected int |
rotation |
protected java.lang.String |
text |
protected double |
textPixelWidth |
protected java.lang.String |
textStyle |
| Constructor and Description |
|---|
RotateTextEphemeron(MapApp app,
MapSet mapset,
XyPoint anchor,
java.lang.String text,
java.lang.String textStyle)
Spins passed text around fixed point.
|
RotateTextEphemeron(XyPoint anchor,
java.lang.String text,
java.lang.String textStyle,
double textPixelWidth)
Spins passed text around fixed point.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
Draw appropriate graphics on the given surface with the given frame,
mouse position, and any implementation-specific internal state.
|
protected XyPoint anchor
protected java.lang.String text
protected java.lang.String textStyle
protected transient int rotation
protected final double DEGREE_TO_BIT
protected double textPixelWidth
protected MapSet mapset
protected MapApp app
public RotateTextEphemeron(XyPoint anchor, java.lang.String text, java.lang.String textStyle, double textPixelWidth)
Uses passed pixel width as length of word.
anchor - -
XyPoint to be used for pivot.text - -
text to be drawn.textStyle - -
text style to use for text.textPixelWidth - -
Pixel width of text to be drawn.public RotateTextEphemeron(MapApp app, MapSet mapset, XyPoint anchor, java.lang.String text, java.lang.String textStyle)
This constructor attempts to calculate the text style's pixel width. If none can be found, 8 pixels per character is used.
app - -
MapApp, used to calculating text width.mapset - -
MapSet where these styles live.anchor - -
XyPoint to be used for pivot.text - -
text to be drawn.textStyle - -
text style to use for text.public void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemeron