net.refractions.udig.project.ui.commands
Class SelectionBoxCommand
java.lang.Object
AbstractCommand
net.refractions.udig.project.ui.commands.AbstractDrawCommand
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectionBoxCommand
public SelectionBoxCommand()
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()