edu.umd.cfar.lamp.viper.gui.data.circle
Class CircleCanvasEditor

java.lang.Object
  extended byedu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended byedu.umd.cfar.lamp.viper.gui.canvas.CanvasEditor
          extended byedu.umd.cfar.lamp.viper.gui.data.circle.CircleCanvasEditor
All Implemented Interfaces:
java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener, Selectable

public class CircleCanvasEditor
extends CanvasEditor

Author:
clin To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
CircleCanvasEditor(Attributable attrIn)
           
 
Method Summary
 boolean contains(java.awt.geom.Point2D select)
           
 void doWhenUnselected()
           
 java.lang.String getName()
           
 int getRadius()
           
 boolean inRangeOfInterest(java.awt.geom.Point2D point)
           
 boolean inResizeRange(java.awt.geom.Point2D select)
           
 void keyPressed(edu.umd.cs.piccolo.event.PInputEvent e)
           
 double minDist(java.awt.geom.Point2D select)
           
 void mouseDragged(edu.umd.cs.piccolo.event.PInputEvent e)
           
 void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent e)
           
 void mousePressed(edu.umd.cs.piccolo.event.PInputEvent e)
           
 void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent e)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.canvas.CanvasEditor
doNotProcessEvent, doWhenSelected, getAttributable, getMediator, getShape, isDisplayWRTmode, isLeftClicked, isLocked, isLockedMode, isSelected, refresh, setDisplayWRTmode, setMediator, setSelected, updateAttributable, zap
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CircleCanvasEditor

public CircleCanvasEditor(Attributable attrIn)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class CanvasEditor

minDist

public double minDist(java.awt.geom.Point2D select)

contains

public boolean contains(java.awt.geom.Point2D select)

toString

public java.lang.String toString()

keyPressed

public void keyPressed(edu.umd.cs.piccolo.event.PInputEvent e)

doWhenUnselected

public void doWhenUnselected()
Specified by:
doWhenUnselected in class CanvasEditor

mouseMoved

public void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent e)

mousePressed

public void mousePressed(edu.umd.cs.piccolo.event.PInputEvent e)

mouseDragged

public void mouseDragged(edu.umd.cs.piccolo.event.PInputEvent e)

mouseReleased

public void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent e)

getRadius

public int getRadius()

inResizeRange

public boolean inResizeRange(java.awt.geom.Point2D select)

inRangeOfInterest

public boolean inRangeOfInterest(java.awt.geom.Point2D point)
Specified by:
inRangeOfInterest in class CanvasEditor
Parameters:
point -
Returns:
true if the CanvasEditor thinks this point is close enough to do something with. It returns false if point is far away enough that it's willing to let the EditorManager find a new shape to be selected as editor.