|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.ephemera.AbstractCollectionEphemeron
public abstract class AbstractCollectionEphemeron
This class stores lines, points, and text so they all can be drawn in a single ephemera draw. A list of namings is stored for each line,point,and text. Each naming contains a style name, XyGeometry (XyPoint or XyPolyline), and rotation/text where applicable (Points and Text).
Copyright 2008 Partner Software, Inc.
| Field Summary | |
|---|---|
protected java.util.List<Naming> |
allLines
|
protected java.util.List<Naming> |
allPoints
|
protected java.util.List<Naming> |
allText
|
protected MapApp |
app
|
protected MapSet |
mapset
|
| Constructor Summary | |
|---|---|
AbstractCollectionEphemeron(MapApp app,
MapSet mapset)
Base class for manipulating lines, text, and points. |
|
| Method Summary | |
|---|---|
Naming |
addLine(java.lang.String lineStyle,
XyPolyline line)
Adds a line to be drawn. |
Naming |
addPoint(java.lang.String pointStyle,
XyPoint point,
XyDirection rotation)
Adds a point to be drawn. |
Naming |
addText(java.lang.String textStyle,
XyPoint point,
XyDirection rotation,
java.lang.String text)
Adds text to be drawn. |
abstract 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Naming> allLines
protected java.util.List<Naming> allPoints
protected java.util.List<Naming> allText
protected MapApp app
protected MapSet mapset
| Constructor Detail |
|---|
public AbstractCollectionEphemeron(MapApp app,
MapSet mapset)
| Method Detail |
|---|
public Naming addLine(java.lang.String lineStyle,
XyPolyline line)
lineStyle - - name of style to be drawn.line - - XyPolyline to draw.
public Naming addPoint(java.lang.String pointStyle,
XyPoint point,
XyDirection rotation)
pointStyle - - name of style to be drawn.point - - XyPoint to draw.
public Naming addText(java.lang.String textStyle,
XyPoint point,
XyDirection rotation,
java.lang.String text)
textStyle - - name of style to be drawn.point - - XyPoint to draw.text - - String text to be drawn.
public abstract void draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
Ephemeron
draw in interface Ephemeron
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||