public abstract class AbstractSnapshotActor extends AbstractModuleMapEditActor
Copyright 2007-2008 Partner Software, Inc.
app, mapset, module| Constructor and Description |
|---|
AbstractSnapshotActor(MapApp app,
MapSet mapset) |
| Modifier and Type | Method and Description |
|---|---|
Ephemeron |
ephemeronFor(MapEditContext context)
Returns an Ephemeron for the given context.
|
protected abstract MapViewFrame |
frameForAdd(MapEditContext context)
Subclasses must implement this to return a MapViewFrame representation of
a snapshot to be added in the given context.
|
protected abstract MapViewFrame |
frameForItem(MapDataItem item)
Subclasses must implement this to return a MapViewFrame representation of
a snapshot corresponding to the given MapDataItem.
|
boolean |
isMoveSupported(MapEditContext item)
Returns true if moving is supported.
|
boolean |
isRotateSupported(MapEditContext context)
Returns true if rotate is supported.
|
protected abstract void |
modifySnapshot(MapEditContext context,
MapViewFrame snapshotFrame,
XyPoint selectLocation)
Subclasses must implement this to modify the currently selected snapshot
using the given snapshotFrame (representing the modified version) and
then select it at the given selectLocation (representing the place
nearest the mouse click that you should reselect the snapshot at).
|
void |
move(MapEditContext context)
Performs a move.
|
void |
rotate(MapEditContext context)
Performs a rotate.
|
clearSelectionList, refresh, refreshAndReselect, refreshAndSelect, refreshAndSelect, select, selectadd, connect, convert, copy, delete, edit, isAddSupported, isConnectSupported, isConvertSupported, isCopySupported, isDeleteSupported, isEditSupported, listDataPanelActionsFor, listSupportedActions, listSupportedToolsprotected abstract MapViewFrame frameForAdd(MapEditContext context)
protected abstract MapViewFrame frameForItem(MapDataItem item)
protected abstract void modifySnapshot(MapEditContext context, MapViewFrame snapshotFrame, XyPoint selectLocation)
public boolean isMoveSupported(MapEditContext item)
MapEditActorisMoveSupported in interface MapEditActorisMoveSupported in class AbstractMapEditActorpublic void move(MapEditContext context)
MapEditActormove in interface MapEditActormove in class AbstractMapEditActorcontext - TODOpublic boolean isRotateSupported(MapEditContext context)
MapEditActorisRotateSupported in interface MapEditActorisRotateSupported in class AbstractMapEditActorpublic void rotate(MapEditContext context)
MapEditActorrotate in interface MapEditActorrotate in class AbstractMapEditActorcontext - TODOpublic Ephemeron ephemeronFor(MapEditContext context)
MapEditActorephemeronFor in interface MapEditActorephemeronFor in class AbstractMapEditActor