|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.ephemera.TextEphemeron
com.partnersoft.maps.ephemera.AbstractUpdatingTextEphemeron
public abstract class AbstractUpdatingTextEphemeron
Copyright 2008 Partner Software, Inc.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.maps.ephemera.TextEphemeron |
|---|
alignment, isPixels, mapset, offsetX, offsetY, rotation, text, textStyle |
| Constructor Summary | |
|---|---|
AbstractUpdatingTextEphemeron(MapSet mapset,
XyPoint anchor,
java.lang.String textStyle)
|
|
AbstractUpdatingTextEphemeron(XyPoint anchor,
java.lang.String textStyle)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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)
Ephemeron
draw in interface Ephemerondraw in class TextEphemeron
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||