net.refractions.udig.tools.edit.commands
Class SelectPointCommand

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.tools.edit.commands.SelectPointCommand

public class SelectPointCommand
extends AbstractCommand

Sets the selection on the editblackboard. Depending on the Enum used the new points may be added to the selection or may replace the selection.

Since:
1.1.0
Author:
jones

Nested Class Summary
static class SelectPointCommand.Type
           
 
Constructor Summary
SelectPointCommand(EditBlackboard editBlackboard2, Point point, SelectPointCommand.Type type)
          new instance
SelectPointCommand(EditBlackboard editBlackboard, java.util.Set<Point> points, SelectPointCommand.Type type)
          new instance
 
Method Summary
 java.lang.String getName()
           
 void rollback(IProgressMonitor monitor)
           
 void run(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectPointCommand

public SelectPointCommand(EditBlackboard editBlackboard,
                          java.util.Set<Point> points,
                          SelectPointCommand.Type type)
new instance

Parameters:
editBlackboard - blackboard to modify
points - points to add or set
type - indicates whether to add or set.

SelectPointCommand

public SelectPointCommand(EditBlackboard editBlackboard2,
                          Point point,
                          SelectPointCommand.Type type)
new instance

Parameters:
editBlackboard - blackboard to modify
point - point to add or set
type - indicates whether to add or set.
Method Detail

run

public void run(IProgressMonitor monitor)
         throws java.lang.Exception
Throws:
java.lang.Exception

getName

public java.lang.String getName()

rollback

public void rollback(IProgressMonitor monitor)
              throws java.lang.Exception
Throws:
java.lang.Exception