public class TextEphemeron extends java.lang.Object implements Ephemeron
Copyright 2007 Paul Reavis
| Modifier and Type | Field and Description |
|---|---|
protected int |
alignment |
protected boolean |
isPixels |
protected MapSet |
mapset |
protected int |
offsetX |
protected int |
offsetY |
protected int |
rotation |
protected java.lang.String |
text |
protected java.lang.String |
textStyle |
| Constructor and Description |
|---|
TextEphemeron(MapSet mapset,
java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment,
int rotation)
Creates a new TextEphemeron.
|
TextEphemeron(MapSet mapset,
java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment,
int rotation,
boolean isPixels)
Creates a new TextEphemeron.
|
TextEphemeron(java.lang.String text,
java.lang.String textStyle)
Creates a new TextEphemeron.
|
TextEphemeron(java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment)
Creates a new TextEphemeron.
|
TextEphemeron(java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment,
int rotation)
Creates a new TextEphemeron.
|
| 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 java.lang.String text
protected java.lang.String textStyle
protected int offsetX
protected int offsetY
protected int alignment
protected int rotation
protected MapSet mapset
protected boolean isPixels
public TextEphemeron(java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment,
int rotation)
text - -
text to be drawntextStyle - -
text style to use for textoffsetX - -
X offset to use when drawing text in pixels.offsetY - -
Y offset to use when drawing text in pixels.alignment - -
alignment to use.rotation - -
rotation to use.public TextEphemeron(MapSet mapset, java.lang.String text, java.lang.String textStyle, int offsetX, int offsetY, int alignment, int rotation)
mapset - -
mapset containing styles to draw.text - -
text to be drawn.textStyle - -
text style to use for text.offsetX - -
X offset to use when drawing text in pixels.offsetY - -
Y offset to use when drawing text in pixels.alignment - -
alignment to use.rotation - -
rotation to use.public TextEphemeron(MapSet mapset, java.lang.String text, java.lang.String textStyle, int offsetX, int offsetY, int alignment, int rotation, boolean isPixels)
mapset - -
mapset containing styles to draw.text - -
text to be drawn.textStyle - -
text style to use for text.offsetX - -
X offset to use when drawing text.offsetY - -
Y offset to use when drawing text.alignment - -
alignment to use.rotation - -
rotation to use.isPixels - -
T/F to use offset as pixels. True for pixels.public TextEphemeron(java.lang.String text,
java.lang.String textStyle,
int offsetX,
int offsetY,
int alignment)
text - -
text to be drawntextStyle - -
text style to use for textoffsetX - -
X offset to use when drawing text in pixels.offsetY - -
Y offset to use when drawing text in pixels.alignment - -
alignment to usepublic TextEphemeron(java.lang.String text,
java.lang.String textStyle)
text - -
text to be drawntextStyle - -
text style to use for textpublic void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemeron