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

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

public class DrawPointCommand
extends AbstractDrawCommand

Draws each vertex point as a rectangle. Listens to mouse events as long as valid and fills vertext when cursor is over a vertex.

Since:
1.1.0
Author:
jones

Constructor Summary
DrawPointCommand(EditToolHandler handler2, PrimitiveShape shape, ViewportPane pane)
           
 
Method Summary
 PrimitiveShape getGeom()
           
 int getRadius()
           
 int getRadiusDelta()
           
 java.awt.Rectangle getValidArea()
           
 void mouseDragged(MapMouseEvent event)
           
 void mouseHovered(MapMouseEvent event)
           
 void mouseMoved(MapMouseEvent event)
           
 void run(IProgressMonitor monitor)
           
 void setCurrentShape(PrimitiveShape shape)
           
 void setDrawCurrentShape(boolean b)
           
 void setRadius(int radius)
          Default is 3.
 void setRadiusDelta(int radiusDelta)
          Default is 1.
 void setValid(boolean valid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawPointCommand

public DrawPointCommand(EditToolHandler handler2,
                        PrimitiveShape shape,
                        ViewportPane pane)
Method Detail

run

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

setDrawCurrentShape

public void setDrawCurrentShape(boolean b)

setValid

public void setValid(boolean valid)

mouseMoved

public void mouseMoved(MapMouseEvent event)

mouseDragged

public void mouseDragged(MapMouseEvent event)

setCurrentShape

public void setCurrentShape(PrimitiveShape shape)

getRadiusDelta

public int getRadiusDelta()
Returns:
Returns the radiusDelta.

setRadiusDelta

public void setRadiusDelta(int radiusDelta)
Default is 1.

Parameters:
width_rad - The radiusDelta to set.

getRadius

public int getRadius()
Returns:
Returns the radius.

setRadius

public void setRadius(int radius)
Default is 3.

Parameters:
radius - The radius to set.

getGeom

public PrimitiveShape getGeom()
Returns:
Returns the geom.

getValidArea

public java.awt.Rectangle getValidArea()

mouseHovered

public void mouseHovered(MapMouseEvent event)