templates.diagram.actions
Class DiagramActions.MovedSelectionAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.diagram.actions.AbstractDiagramAction
          extended by templates.diagram.actions.DiagramActions.MovedSelectionAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
DiagramActions

public static class DiagramActions.MovedSelectionAction
extends AbstractDiagramAction

Action which finilizes the relocation of DiagramElements in a TemplateDiagram.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  java.awt.Point delta
          The displacement applied to the DiagramElements.
protected  TemplateDiagram diagram
          The TemplateDiagram context to be used by the action.
protected  java.util.Collection<DiagramElement> selection
          The DiagramElements which were relocated.
 
Fields inherited from class templates.diagram.actions.AbstractDiagramAction
parentEdit, usePluralDescription
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
DiagramActions.MovedSelectionAction(javax.swing.undo.CompoundEdit parent, TemplateDiagram diagram, java.util.Collection<DiagramElement> selection, java.awt.Point delta)
          Construct an action for the given parameters.
DiagramActions.MovedSelectionAction(TemplateDiagram diagram, java.util.Collection<DiagramElement> selection, java.awt.Point delta)
          Construct an action for the given parameters.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class templates.diagram.actions.AbstractDiagramAction
addBoundsAdjust, execute, postEdit, postEdit, postEditAdjustCanvas, postEditAdjustCanvas, setLastOfMultiple
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diagram

protected TemplateDiagram diagram
The TemplateDiagram context to be used by the action.


delta

protected java.awt.Point delta
The displacement applied to the DiagramElements.


selection

protected java.util.Collection<DiagramElement> selection
The DiagramElements which were relocated.

Constructor Detail

DiagramActions.MovedSelectionAction

public DiagramActions.MovedSelectionAction(TemplateDiagram diagram,
                                           java.util.Collection<DiagramElement> selection,
                                           java.awt.Point delta)
Construct an action for the given parameters.

Parameters:
diagram - the TemplateDiagram to be used by the action
selection - the DiagramElements which were relocated
delta - the displacement applied to the DiagramElements

DiagramActions.MovedSelectionAction

public DiagramActions.MovedSelectionAction(javax.swing.undo.CompoundEdit parent,
                                           TemplateDiagram diagram,
                                           java.util.Collection<DiagramElement> selection,
                                           java.awt.Point delta)
Construct an action for the given parameters.

Parameters:
parent - the UndoableEdit to which this action should add its own undo information
diagram - the TemplateDiagram to be used by the action
selection - the DiagramElements which were relocated
delta - the displacement applied to the DiagramElements
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)