edu.umd.cfar.lamp.viper.gui.data.ellipse
Class EllipseCreator
java.lang.Object
edu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.PInputManager
edu.umd.cfar.lamp.viper.gui.canvas.CanvasCreator
edu.umd.cfar.lamp.viper.gui.data.ellipse.EllipseCreator
- All Implemented Interfaces:
- java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener, edu.umd.cs.piccolo.PRoot.InputSource
- public class EllipseCreator
- extends CanvasCreator
- Author:
- clin
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Method Summary |
void |
displaySelected()
|
java.lang.String |
getName()
|
void |
initEllipse()
Once the mouse has been released, this draws the top edge
and a small part of the left edge. |
void |
keyPressed(edu.umd.cs.piccolo.event.PInputEvent e)
|
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)
|
void |
reset()
|
Methods inherited from class edu.umd.cs.piccolo.PInputManager |
checkForMouseEnteredAndExited, getCurrentCanvasPosition, getKeyboardFocus, getLastCanvasPosition, getMouseFocus, getMouseOver, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelRotated, mouseWheelRotatedByBlock, processEventFromCamera, processInput, setKeyboardFocus, setMouseFocus, setMouseOver |
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler |
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, paramString, processEvent, setEventFilter, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EllipseCreator
public EllipseCreator(CreatorAssistant a,
Attribute attr)
getName
public java.lang.String getName()
- Specified by:
getName
in class CanvasCreator
displaySelected
public void displaySelected()
- Specified by:
displaySelected
in class CanvasCreator
reset
public void reset()
keyPressed
public void keyPressed(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)
mouseMoved
public void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent e)
initEllipse
public void initEllipse()
- Once the mouse has been released, this draws the top edge
and a small part of the left edge. After this method, we switch
to the second phase of drawing, where the user sets the height
of the obox.