public abstract class AbstractUpdatingTextEphemeron extends TextEphemeron
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
AbstractUpdatingTextEphemeron(MapSet mapset,
XyPoint anchor,
java.lang.String textStyle) |
AbstractUpdatingTextEphemeron(XyPoint anchor,
java.lang.String textStyle) |
| 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.
|
abstract void |
mangleText(DrawingSurface surface,
MapViewFrame frame,
XyPoint anchor,
XyPoint mousePosition)
Called from each draw cycle.
|
void |
setAlignment(int align) |
void |
setOffsetX(int x)
X Offset from mouse position in map units.
|
void |
setOffsetX(int x,
boolean isPixels)
X offset for text from mouse position.
|
void |
setOffsetY(int y)
Y Offset from mouse position in map units.
|
void |
setOffsetY(int y,
boolean isPixels)
Y offset for text from mouse position.
|
void |
setRotation(int rotate) |
void |
setText(java.lang.String text) |
public AbstractUpdatingTextEphemeron(MapSet mapset, XyPoint anchor, java.lang.String textStyle)
mapset - - Mapset containing style.anchor - - Point to find distance and angle from.textStyle - - TextStyle name to use.public AbstractUpdatingTextEphemeron(XyPoint anchor, java.lang.String textStyle)
anchor - - Point to find distance and angle from.textStyle - - TextStyle name to use. Must exist in Ephemeron mapset.public abstract void mangleText(DrawingSurface surface, MapViewFrame frame, XyPoint anchor, XyPoint mousePosition)
surface - frame - mousePosition - public void setText(java.lang.String text)
public void setOffsetX(int x)
x - public void setOffsetY(int y)
y - public void setOffsetX(int x,
boolean isPixels)
x - isPixels - - true if x is in pixels.public void setOffsetY(int y,
boolean isPixels)
y - isPixels - - true if y is in pixels.public void setAlignment(int align)
public void setRotation(int rotate)
public void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemerondraw in interface Ephemerondraw in class TextEphemeron