public abstract class AbstractSnapshotEphemeron extends java.lang.Object implements Ephemeron
Copyright 2007 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected MapViewFrame |
snapshot |
| Constructor and Description |
|---|
AbstractSnapshotEphemeron(MapViewFrame snapshot)
Creates a new SnapshotEphemeron (only called to create extending
classes).
|
| 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 abstract void |
mangleSnapshot(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
Changes internal snapshot before each draw.
|
protected MapViewFrame snapshot
public AbstractSnapshotEphemeron(MapViewFrame snapshot)
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