kaapo.projectmanager.command
Class RemoveFromSelectionEdit

java.lang.Object
  extended by kaapo.projectmanager.command.AbstractEdit
      extended by kaapo.projectmanager.command.RemoveFromSelectionEdit
All Implemented Interfaces:
Edit

public class RemoveFromSelectionEdit
extends AbstractEdit

This Edit removes a DiagramComponentWrapper from a pre-existing Selection.

If there are no DiagramComponentWrappers on the Point2D.Double provided then nothing is done to the Selection.

If the DiagramComponentWrapper is not found from the Selection nothing is done.

Author:
hprajani, iheikkin

Constructor Summary
RemoveFromSelectionEdit(DiagramComponentWrapper dcw)
           
RemoveFromSelectionEdit(Point2D clicked)
           
 
Method Summary
 void execute(ProjectManager pm)
          Executes the edit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveFromSelectionEdit

public RemoveFromSelectionEdit(Point2D clicked)
Parameters:
clicked - the checked point

RemoveFromSelectionEdit

public RemoveFromSelectionEdit(DiagramComponentWrapper dcw)
Parameters:
dcw - removed from selection
Method Detail

execute

public void execute(ProjectManager pm)
Executes the edit.

Parameters:
pm - the ProjectManager the Edit is executed in
See Also:
Edit.execute(ProjectManager)