com.hp.hpl.guess.piccolo
Class DrawZoomHandler

java.lang.Object
  extended byedu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended bycom.hp.hpl.guess.piccolo.DrawZoomHandler
All Implemented Interfaces:
EventListener, PInputEventListener

public class DrawZoomHandler
extends PBasicInputEventHandler


Field Summary
static int ELL
           
static int LINE
           
static int RECT
           
static int RRECT
           
static int TEXT
           
static Color transparent
           
 
Constructor Summary
DrawZoomHandler(PLayer layer, PCamera cam)
           
 
Method Summary
 void loadState(ObjectInputStream ois)
           
 void mouseDragged(PInputEvent e)
           
 void mousePressed(PInputEvent e)
           
 void mouseReleased(PInputEvent e)
           
 void saveState(ObjectOutputStream oos)
           
 void updateLine()
           
 void updateRectangle()
           
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transparent

public static final Color transparent

RECT

public static final int RECT
See Also:
Constant Field Values

LINE

public static final int LINE
See Also:
Constant Field Values

ELL

public static final int ELL
See Also:
Constant Field Values

RRECT

public static final int RRECT
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values
Constructor Detail

DrawZoomHandler

public DrawZoomHandler(PLayer layer,
                       PCamera cam)
Method Detail

mousePressed

public void mousePressed(PInputEvent e)

mouseDragged

public void mouseDragged(PInputEvent e)

mouseReleased

public void mouseReleased(PInputEvent e)

updateRectangle

public void updateRectangle()

updateLine

public void updateLine()

saveState

public void saveState(ObjectOutputStream oos)

loadState

public void loadState(ObjectInputStream ois)