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

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.project.ui.commands.AbstractDrawCommand
          extended by 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

Field Summary
 
Fields inherited from class net.refractions.udig.project.ui.commands.AbstractDrawCommand
display, graphics
 
Constructor Summary
TransformDrawCommand()
           
 
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 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
 
Methods inherited from interface net.refractions.udig.project.ui.commands.IDrawCommand
dispose, isValid, setGraphics, setValid
 

Constructor Detail

TransformDrawCommand

public TransformDrawCommand()
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

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()