net.refractions.udig.project.ui.commands
Class SelectionBoxCommand

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.project.ui.commands.AbstractDrawCommand
          extended by net.refractions.udig.project.ui.commands.SelectionBoxCommand
All Implemented Interfaces:
IDrawCommand

public class SelectionBoxCommand
extends AbstractDrawCommand
implements IDrawCommand

A command that draws the indicated shape onto the viewport in the correct "selection" style. The default Shape is a rectangle.

Author:
Jesse

Field Summary
 
Fields inherited from class net.refractions.udig.project.ui.commands.AbstractDrawCommand
display, graphics
 
Constructor Summary
SelectionBoxCommand()
           
 
Method Summary
 java.awt.Shape getShape()
           
 java.awt.Rectangle getValidArea()
          Returns the rectangle where this command is valid.
 void run(IProgressMonitor monitor)
           
 void setShape(java.awt.Shape shape)
           
 
Methods inherited from class net.refractions.udig.project.ui.commands.AbstractDrawCommand
dispose, getName, isValid, setGraphics, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.refractions.udig.project.ui.commands.IDrawCommand
dispose, isValid, setGraphics, setValid
 

Constructor Detail

SelectionBoxCommand

public SelectionBoxCommand()
Method Detail

getValidArea

public java.awt.Rectangle getValidArea()
Description copied from interface: IDrawCommand
Returns the rectangle where this command is valid. Ie The area that this command draws to. Null may be returned if the valid area is unknown or is the entire screen.

Specified by:
getValidArea in interface IDrawCommand
Returns:
Returns the rectangle where this command is valid. Ie The area that this command draws to. Null may be returned if the valid area is unknown or is the entire screen.

run

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

setShape

public void setShape(java.awt.Shape shape)

getShape

public java.awt.Shape getShape()