com.partnersoft.maps.model
Interface MapEditActor

All Known Implementing Classes:
AbstractMapEditActor, AbstractModuleMapEditActor, AbstractSnapshotActor, DelegatingMapEditActor, ExceptionCatchingMapEditActor

public interface MapEditActor

Contains methods for each type of drawing action - add, rotate, move, delete, etc.

Copyright 2007 Partner Software, Inc.

Version:
$Id: MapEditActor.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Method Summary
 void add(MapEditContext context)
          Performs an add.
 void connect(MapEditContext forConnect)
          Performs a connect action.
 void convert(MapEditContext context)
          Converts an item to the selected type.
 void copy(MapEditContext context)
          Performs a copy.
 void delete(MapEditContext context)
          Performs a delete.
 void edit(MapEditContext context)
          Edits an item.
 Ephemeron ephemeronFor(MapEditContext context)
          Returns an Ephemeron for the given context.
 boolean isAddSupported(MapEditContext context)
          Returns true if add is supported.
 boolean isConnectSupported(MapEditContext item)
          Returns true if connect is supported.
 boolean isConvertSupported(MapEditContext context)
          Returns true if convert is supported.
 boolean isCopySupported(MapEditContext context)
          Returns true if copy is supported.
 boolean isDeleteSupported(MapEditContext item)
          Returns true if delete is supported.
 boolean isEditSupported(MapEditContext context)
          Returns true if edit is supported.
 boolean isMoveSupported(MapEditContext item)
          Returns true if moving is supported.
 boolean isRotateSupported(MapEditContext item)
          Returns true if rotate is supported.
 java.util.List<java.lang.String> listSupportedActions(MapEditContext item)
          Returns a list of action names supported for the given item.
 java.util.List<MapEditTool> listSupportedTools()
          Returns a list of drawing scripts/things applicable for the given item.
 void move(MapEditContext context)
          Performs a move.
 void rotate(MapEditContext context)
          Performs a rotate.
 

Method Detail

isMoveSupported

boolean isMoveSupported(MapEditContext item)
Returns true if moving is supported.


isDeleteSupported

boolean isDeleteSupported(MapEditContext item)
Returns true if delete is supported.


isRotateSupported

boolean isRotateSupported(MapEditContext item)
Returns true if rotate is supported.


isConnectSupported

boolean isConnectSupported(MapEditContext item)
Returns true if connect is supported.


isAddSupported

boolean isAddSupported(MapEditContext context)
Returns true if add is supported.


isCopySupported

boolean isCopySupported(MapEditContext context)
Returns true if copy is supported.


isEditSupported

boolean isEditSupported(MapEditContext context)
Returns true if edit is supported.


isConvertSupported

boolean isConvertSupported(MapEditContext context)
Returns true if convert is supported.


move

void move(MapEditContext context)
Performs a move. Throws UnsupportedOperationException if isMoveSupported() is false.

Parameters:
context - TODO

delete

void delete(MapEditContext context)
Performs a delete. Throws UnsupportedOperationException if isDeleteSupported() is false.

Parameters:
context - TODO

add

void add(MapEditContext context)
Performs an add. Throws UnsupportedOperationException if isAddSupported() is false.

Parameters:
context - TODO

copy

void copy(MapEditContext context)
Performs a copy. Throws UnsupportedOperationException if isCopySupported() is false.

Parameters:
context - TODO

convert

void convert(MapEditContext context)
Converts an item to the selected type. Throws UnsupportedOperationException if isConvertSupported() is false.

Parameters:
context - TODO

edit

void edit(MapEditContext context)
Edits an item. Throws UnsupportedOperationException if isEditSupported() is false.

Parameters:
context - TODO

rotate

void rotate(MapEditContext context)
Performs a rotate. Throws UnsupportedOperationException if isRotateSupported() is false.

Parameters:
context - TODO

connect

void connect(MapEditContext forConnect)
Performs a connect action. Throws UnsupportedOperationException if isConnectSupported() is false.


listSupportedActions

java.util.List<java.lang.String> listSupportedActions(MapEditContext item)
Returns a list of action names supported for the given item.


listSupportedTools

java.util.List<MapEditTool> listSupportedTools()
Returns a list of drawing scripts/things applicable for the given item. TODO: a better name please

Returns:

ephemeronFor

Ephemeron ephemeronFor(MapEditContext context)
Returns an Ephemeron for the given context.