|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.model.AbstractMapEditActor
com.partnersoft.maps.actors.AbstractModuleMapEditActor
com.partnersoft.maps.actors.AbstractSnapshotActor
public abstract class AbstractSnapshotActor
An abstract actor for snapshots, represented as MapViewFrames.
Copyright 2007-2008 Partner Software, Inc.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.maps.actors.AbstractModuleMapEditActor |
|---|
app, mapset, module |
| Constructor Summary | |
|---|---|
AbstractSnapshotActor(MapApp app,
MapSet mapset)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.partnersoft.maps.actors.AbstractModuleMapEditActor |
|---|
clearSelectionList, refresh, refreshAndReselect, refreshAndSelect, refreshAndSelect, select, select |
| Methods inherited from class com.partnersoft.maps.model.AbstractMapEditActor |
|---|
add, connect, convert, copy, delete, edit, isAddSupported, isConnectSupported, isConvertSupported, isCopySupported, isDeleteSupported, isEditSupported, listSupportedActions, listSupportedTools |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSnapshotActor(MapApp app,
MapSet mapset)
| Method Detail |
|---|
protected 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)
MapEditActor
isMoveSupported in interface MapEditActorisMoveSupported in class AbstractMapEditActorpublic void move(MapEditContext context)
MapEditActor
move in interface MapEditActormove in class AbstractMapEditActorcontext - TODOpublic boolean isRotateSupported(MapEditContext context)
MapEditActor
isRotateSupported in interface MapEditActorisRotateSupported in class AbstractMapEditActorpublic void rotate(MapEditContext context)
MapEditActor
rotate in interface MapEditActorrotate in class AbstractMapEditActorcontext - TODOpublic Ephemeron ephemeronFor(MapEditContext context)
MapEditActor
ephemeronFor in interface MapEditActorephemeronFor in class AbstractMapEditActor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||