net.refractions.udig.project.ui.commands
Class TransformDrawCommand
java.lang.Object
AbstractCommand
net.refractions.udig.project.ui.commands.AbstractDrawCommand
net.refractions.udig.project.ui.commands.TransformDrawCommand
- All Implemented Interfaces:
- IDrawCommand, IMapTransformCommand, IPreMapDrawCommand
public class TransformDrawCommand
- extends AbstractDrawCommand
- implements IMapTransformCommand, IPreMapDrawCommand
Tranforms the Viewport's graphics current transform.
- Since:
- 1.1.0
- Author:
- Jesse
Method Summary |
java.awt.geom.AffineTransform |
getTransform()
|
java.awt.Rectangle |
getValidArea()
Returns the rectangle where this command is valid. |
void |
pan(int x,
int y)
|
void |
rotate(double theta)
|
void |
run(IProgressMonitor monitor)
|
void |
zoom(double scaleFactorX,
double scaleFactorY)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformDrawCommand
public TransformDrawCommand()
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
zoom
public void zoom(double scaleFactorX,
double scaleFactorY)
pan
public void pan(int x,
int y)
rotate
public void rotate(double theta)
getTransform
public java.awt.geom.AffineTransform getTransform()