|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.ephemera.AbstractSnapshotEphemeron
public abstract class AbstractSnapshotEphemeron
Abstract SnapshotEphemeron handles drawing a snapshot. Allows extending classes to over-ride mangleSnapshot for any specific case.
Copyright 2007 Partner Software, Inc.
| Field Summary | |
|---|---|
protected MapViewFrame |
snapshot
|
| Constructor Summary | |
|---|---|
AbstractSnapshotEphemeron(MapViewFrame snapshot)
Creates a new SnapshotEphemeron (only called to create extending classes). |
|
| 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. |
protected abstract void |
mangleSnapshot(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
Changes internal snapshot before each draw. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MapViewFrame snapshot
| Constructor Detail |
|---|
public AbstractSnapshotEphemeron(MapViewFrame snapshot)
| Method Detail |
|---|
protected abstract void mangleSnapshot(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
Handles specific ephemera changes. Allows rotating,scaling, and moving ephemera to share draw code. Does not need to reset the MapViewFrame's transform.
public 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 | ||||||||