org.simbrain.gauge.graphics
Class MouseEventHandler
java.lang.Object
edu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.event.PDragSequenceEventHandler
org.simbrain.gauge.graphics.MouseEventHandler
- All Implemented Interfaces:
- PInputEventListener, EventListener
public class MouseEventHandler
- extends PDragSequenceEventHandler
MouseEventHandler handles mouse events, which in HiSee are relatively limited. In addition to panning and
zooming the dataset (which is handled separately by Piccolo, and not this class), users may click on datapoints to
print out their coordinates.
| Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
drag, dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, endDrag, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDrag, startDragActivity, stopDragActivity |
| 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 |
MouseEventHandler
public MouseEventHandler(GaugePanel gauge)
- Responds to mouse events.
- Parameters:
gauge - Gauge to respond to.
mousePressed
public void mousePressed(PInputEvent e)
- Respond to mouse pressing events.
- Overrides:
mousePressed in class PDragSequenceEventHandler
- Parameters:
e - Mouse input event
setGp
public void setGp(GaugePanel gp)
- Parameters:
gp - Set new gauge panel.
getGp
public GaugePanel getGp()
- Returns:
- Current gauge panel.