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

java.lang.Object
  extended by AbstractDrawCommand
      extended by net.refractions.udig.tools.edit.commands.DrawEditGeomsCommand

public class DrawEditGeomsCommand
extends AbstractDrawCommand

Draws all the EditGeoms on the provided EditBlackboard

Since:
1.1.0
Author:
jones

Constructor Summary
DrawEditGeomsCommand(EditToolHandler handler)
           
 
Method Summary
 StyleStrategy getColorizationStrategy()
          Returns the strategy object responsible for choosing the line and fill colors.
 PrimitiveShape getCurrentShape()
           
 java.awt.Rectangle getValidArea()
           
 void run(IProgressMonitor monitor)
           
 boolean setCurrentLocation(Point l, PrimitiveShape currentShape)
           
 void setValid(boolean valid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawEditGeomsCommand

public DrawEditGeomsCommand(EditToolHandler handler)
Method Detail

run

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

setValid

public void setValid(boolean valid)

getCurrentShape

public PrimitiveShape getCurrentShape()
Returns:
Returns the currentShape.

setCurrentLocation

public boolean setCurrentLocation(Point l,
                                  PrimitiveShape currentShape)
Parameters:
l - the current location of the mouse
currentShape - The sub-shape of the geometry that is being editted.
Returns:
true if the new setting requires a repaint();

getValidArea

public java.awt.Rectangle getValidArea()

getColorizationStrategy

public StyleStrategy getColorizationStrategy()
Returns the strategy object responsible for choosing the line and fill colors.