edu.umd.cfar.lamp.viper.gui.data.obox
Class OboxCreator

java.lang.Object
  extended byedu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended byedu.umd.cs.piccolo.PInputManager
          extended byedu.umd.cfar.lamp.viper.gui.canvas.CanvasCreator
              extended byedu.umd.cfar.lamp.viper.gui.data.obox.OboxCreator
All Implemented Interfaces:
java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener, edu.umd.cs.piccolo.PRoot.InputSource

public class OboxCreator
extends CanvasCreator

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

Constructor Summary
OboxCreator(CreatorAssistant a, Attribute attr)
           
 
Method Summary
 void displaySelected()
           
 java.lang.String getName()
           
 void initObox()
          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.cfar.lamp.viper.gui.canvas.CanvasCreator
getAssistant, getAttribute, getColorTable, setAttribute, setAttrValueInMediator, stop
 
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
 

Constructor Detail

OboxCreator

public OboxCreator(CreatorAssistant a,
                   Attribute attr)
Method Detail

displaySelected

public void displaySelected()
Specified by:
displaySelected in class CanvasCreator

getName

public java.lang.String getName()
Specified by:
getName 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)

initObox

public void initObox()
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.