Uses of Class
edu.umd.cs.piccolo.event.PInputEvent
Packages that use PInputEvent
Package
Description
Piccolo is a general-purpose Java-based engine that supports 2D visualizations.
This package supports Piccolo event handlers.
This package defines several utility classes that are likely
to be useful for Piccolo applications.
-
Uses of PInputEvent in edu.umd.cs.piccolo
Methods in edu.umd.cs.piccolo that return PInputEventModifier and TypeMethodDescriptionprotected PInputEventPInputManager.createInputEvent(InputEvent event) Creates aPInputEventbased on the given SwingInputEvent.
Has been introduced for enabling the "injection" of specialized implementations (subclasses) via overriding this factory method, and, hence, is called instead of callingPInputEvent(PInputManager, InputEvent)directly.Methods in edu.umd.cs.piccolo with parameters of type PInputEventModifier and TypeMethodDescriptionprotected voidPInputManager.checkForMouseEnteredAndExited(PInputEvent event) Fires events whenever the mouse moves from PNode to PNode.protected voidPInputManager.dispatchEventToListener(PInputEvent event, int type, PInputEventListener listener) Dispatches the given event to the listener, or does nothing if listener is null.voidPInputManager.keyPressed(PInputEvent event) Will get called whenever a key has been pressed down.voidPInputManager.keyReleased(PInputEvent event) Will get called whenever a key has been released.voidPInputManager.keyTyped(PInputEvent event) Will be called at the end of a full keystroke (down then up).voidPInputManager.mouseClicked(PInputEvent event) Will be called at the end of a full click (mouse pressed followed by mouse released).voidPInputManager.mouseDragged(PInputEvent event) Will be called when a drag is occurring.voidPInputManager.mouseEntered(PInputEvent event) Will be invoked when the mouse enters a specified region.voidPInputManager.mouseExited(PInputEvent event) Will be invoked when the mouse leaves a specified region.voidPInputManager.mouseMoved(PInputEvent event) Will be called when the mouse is moved.voidPInputManager.mousePressed(PInputEvent event) Will be called when a mouse button is pressed down.voidPInputManager.mouseReleased(PInputEvent event) Will be called when any mouse button is released.voidPInputManager.mouseWheelRotated(PInputEvent event) This method is invoked when the mouse wheel is rotated.voidPInputManager.mouseWheelRotatedByBlock(PInputEvent event) This method is invoked when the mouse wheel is rotated by a block. -
Uses of PInputEvent in edu.umd.cs.piccolo.event
Methods in edu.umd.cs.piccolo.event with parameters of type PInputEventModifier and TypeMethodDescriptionbooleanPBasicInputEventHandler.acceptsEvent(PInputEvent event, int type) Returns true if the event would be dispatched if passed to processEvent.booleanPInputEventFilter.acceptsEvent(PInputEvent event, int type) Returns true if the passed event is one that is accepted.protected voidPDragEventHandler.drag(PInputEvent event) Moves the dragged node in proportion to the drag distance.protected voidPDragSequenceEventHandler.drag(PInputEvent event) Subclasses should override this method to get notified of the drag events in a drag sequence.protected voidPPanEventHandler.drag(PInputEvent event) Updates the view in response to a user initiated drag event.protected voidPDragSequenceEventHandler.dragActivityFinalStep(PInputEvent aEvent) Subclasses should override this method to get notified when the drag activity stops stepping.protected voidPDragSequenceEventHandler.dragActivityFirstStep(PInputEvent event) Subclasses override this method to get notified when the drag activity starts stepping.protected voidPZoomEventHandler.dragActivityFirstStep(PInputEvent event) Records the start point of the zoom.protected voidPDragSequenceEventHandler.dragActivityStep(PInputEvent event) During a drag sequence an activity is scheduled that runs continuously while the drag sequence is active.protected voidPPanEventHandler.dragActivityStep(PInputEvent event) Performs auto-panning if enabled, even when the mouse is not moving.protected voidPZoomEventHandler.dragActivityStep(PInputEvent event) Updates the current zoom periodically, regardless of whether the mouse has moved recently.protected voidPDragEventHandler.endDrag(PInputEvent event) Clears the current drag node.protected voidPDragSequenceEventHandler.endDrag(PInputEvent event) Subclasses should override this method to get notified of the end event in a drag sequence.voidPBasicInputEventHandler.keyboardFocusGained(PInputEvent event) This method is invoked when a node gains the keyboard focus.voidPBasicInputEventHandler.keyboardFocusLost(PInputEvent event) This method is invoked when a node loses the keyboard focus.voidPBasicInputEventHandler.keyPressed(PInputEvent event) Will get called whenever a key has been pressed down.voidPBasicInputEventHandler.keyReleased(PInputEvent event) Will get called whenever a key has been released.voidPBasicInputEventHandler.keyTyped(PInputEvent event) Will be called at the end of a full keystroke (down then up).voidPBasicInputEventHandler.mouseClicked(PInputEvent event) Will be called at the end of a full click (mouse pressed followed by mouse released).voidPBasicInputEventHandler.mouseDragged(PInputEvent event) Will be called when a drag is occurring.voidPDragSequenceEventHandler.mouseDragged(PInputEvent event) Subclasses should not override this method, instead they should override the appropriate drag method.voidPBasicInputEventHandler.mouseEntered(PInputEvent event) Will be invoked when the mouse enters a specified region.voidPBasicInputEventHandler.mouseExited(PInputEvent event) Will be invoked when the mouse leaves a specified region.voidPBasicInputEventHandler.mouseMoved(PInputEvent event) Will be called when the mouse is moved.voidPBasicInputEventHandler.mousePressed(PInputEvent event) Will be called when a mouse button is pressed down.voidPDragSequenceEventHandler.mousePressed(PInputEvent event) Subclasses should not override this method, instead they should override the appropriate drag callbacks.voidPBasicInputEventHandler.mouseReleased(PInputEvent event) Will be called when any mouse button is released.voidPDragSequenceEventHandler.mouseReleased(PInputEvent event) Subclasses should not override this method, instead they should override the appropriate drag method.voidPBasicInputEventHandler.mouseWheelRotated(PInputEvent event) This method is invoked when the mouse wheel is rotated.voidPBasicInputEventHandler.mouseWheelRotatedByBlock(PInputEvent event) This method is invoked when the mouse wheel is rotated by a block.protected voidPPanEventHandler.pan(PInputEvent event) Pans the camera in response to the pan event provided.voidPBasicInputEventHandler.processEvent(PInputEvent event, int type) Dispatches a generic event to a more specific method.voidPInputEventListener.processEvent(PInputEvent event, int type) Called whenever an event is emitted.protected booleanPDragEventHandler.shouldStartDragInteraction(PInputEvent event) Returns whether the given event should be start a drag interaction.protected booleanPDragSequenceEventHandler.shouldStartDragInteraction(PInputEvent event) Returns true if the provided event represents a valid start for a drag sequence.protected voidPDragEventHandler.startDrag(PInputEvent event) Starts a drag event and moves the dragged node to the front if this handler has been directed to do so with a call to setMoveToFrontOnDrag.protected voidPDragSequenceEventHandler.startDrag(PInputEvent event) Subclasses should override this method to get notified of the start of a new drag sequence.protected voidPDragSequenceEventHandler.startDragActivity(PInputEvent event) Schedules the "infinite" drag activity so that auto-panning and zooming will continue to update the scene even if there are no further drag events fired.protected voidPDragSequenceEventHandler.stopDragActivity(PInputEvent event) Stops the activity responsible for updating the scene. -
Uses of PInputEvent in edu.umd.cs.piccolo.util
Methods in edu.umd.cs.piccolo.util with parameters of type PInputEventModifier and TypeMethodDescriptionvoidPPickPath.processEvent(PInputEvent event, int eventType) Process Events - Give each node in the pick path, starting at the bottom most one, a chance to handle the event.