com.mindfusion.diagramming
Class GroupAttachCmd

java.lang.Object
  extended by com.mindfusion.diagramming.Command
      extended by com.mindfusion.diagramming.GroupAttachCmd

public final class GroupAttachCmd
extends Command

Represents an action that attaches an item to a group.


Method Summary
 void execute()
          Attaches the item to the group.
 void execute(boolean undoEnabled)
          This method is called internally by JDiagram when attaching items to groups.
 Group getGroup()
          Gets the group related to this command.
 DiagramItem getItem()
          Gets the item related to this command.
 void undo()
          This method is called by the UndoManager when undoing actions.
 
Methods inherited from class com.mindfusion.diagramming.Command
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, redo, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public void execute(boolean undoEnabled)
This method is called internally by JDiagram when attaching items to groups.

Specified by:
execute in class Command
Parameters:
undoEnabled - true if the undo manager is enabled at this time, otherwise false.

undo

public void undo()
This method is called by the UndoManager when undoing actions.

Overrides:
undo in class Command

execute

public void execute()
Attaches the item to the group.


getGroup

public Group getGroup()
Gets the group related to this command.

Returns:
A Group instance.

getItem

public DiagramItem getItem()
Gets the item related to this command.

Returns:
An DiagramItem instance.