Package | Description |
---|---|
org.piccolo2d |
Piccolo is a general-purpose Java-based engine that supports 2D visualizations.
|
org.piccolo2d.event |
This package supports Piccolo event handlers.
|
org.piccolo2d.util |
This package defines several utility classes that are likely
to be useful for Piccolo applications.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PInputManager.checkForMouseEnteredAndExited(PInputEvent event)
Fires events whenever the mouse moves from PNode to PNode.
|
void |
PInputManager.keyPressed(PInputEvent event)
Will get called whenever a key has been pressed down.
|
void |
PInputManager.keyReleased(PInputEvent event)
Will get called whenever a key has been released.
|
void |
PInputManager.keyTyped(PInputEvent event)
Will be called at the end of a full keystroke (down then up).
|
void |
PInputManager.mouseClicked(PInputEvent event)
Will be called at the end of a full click (mouse pressed followed by
mouse released).
|
void |
PInputManager.mouseDragged(PInputEvent event)
Will be called when a drag is occurring.
|
void |
PInputManager.mouseEntered(PInputEvent event)
Will be invoked when the mouse enters a specified region.
|
void |
PInputManager.mouseExited(PInputEvent event)
Will be invoked when the mouse leaves a specified region.
|
void |
PInputManager.mouseMoved(PInputEvent event)
Will be called when the mouse is moved.
|
void |
PInputManager.mousePressed(PInputEvent event)
Will be called when a mouse button is pressed down.
|
void |
PInputManager.mouseReleased(PInputEvent event)
Will be called when any mouse button is released.
|
void |
PInputManager.mouseWheelRotated(PInputEvent event)
This method is invoked when the mouse wheel is rotated.
|
void |
PInputManager.mouseWheelRotatedByBlock(PInputEvent event)
This method is invoked when the mouse wheel is rotated by a block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PInputEventFilter.acceptsEvent(PInputEvent event,
int type)
Returns true if the passed event is one that is accepted.
|
boolean |
PBasicInputEventHandler.acceptsEvent(PInputEvent event,
int type)
Returns true if the event would be dispatched if passed to processEvent.
|
protected void |
PPanEventHandler.drag(PInputEvent event)
Updates the view in response to a user initiated drag event.
|
protected void |
PDragSequenceEventHandler.drag(PInputEvent event)
Subclasses should override this method to get notified of the drag events
in a drag sequence.
|
protected void |
PDragEventHandler.drag(PInputEvent event)
Moves the dragged node in proportion to the drag distance.
|
protected void |
PDragSequenceEventHandler.dragActivityFinalStep(PInputEvent aEvent)
Subclasses should override this method to get notified when the drag
activity stops stepping.
|
protected void |
PZoomEventHandler.dragActivityFirstStep(PInputEvent event)
Records the start point of the zoom.
|
protected void |
PDragSequenceEventHandler.dragActivityFirstStep(PInputEvent event)
Subclasses override this method to get notified when the drag activity
starts stepping.
|
protected void |
PZoomEventHandler.dragActivityStep(PInputEvent event)
Updates the current zoom periodically, regardless of whether the mouse
has moved recently.
|
protected void |
PPanEventHandler.dragActivityStep(PInputEvent event)
Performs auto-panning if enabled, even when the mouse is not moving.
|
protected void |
PDragSequenceEventHandler.dragActivityStep(PInputEvent event)
During a drag sequence an activity is scheduled that runs continuously
while the drag sequence is active.
|
protected void |
PDragSequenceEventHandler.endDrag(PInputEvent event)
Subclasses should override this method to get notified of the end event
in a drag sequence.
|
protected void |
PDragEventHandler.endDrag(PInputEvent event)
Clears the current drag node.
|
void |
PBasicInputEventHandler.keyboardFocusGained(PInputEvent event)
This method is invoked when a node gains the keyboard focus.
|
void |
PBasicInputEventHandler.keyboardFocusLost(PInputEvent event)
This method is invoked when a node loses the keyboard focus.
|
void |
PBasicInputEventHandler.keyPressed(PInputEvent event)
Will get called whenever a key has been pressed down.
|
void |
PBasicInputEventHandler.keyReleased(PInputEvent event)
Will get called whenever a key has been released.
|
void |
PBasicInputEventHandler.keyTyped(PInputEvent event)
Will be called at the end of a full keystroke (down then up).
|
void |
PBasicInputEventHandler.mouseClicked(PInputEvent event)
Will be called at the end of a full click (mouse pressed followed by
mouse released).
|
void |
PDragSequenceEventHandler.mouseDragged(PInputEvent event)
Subclasses should not override this method, instead they should
override the appropriate drag method.
|
void |
PBasicInputEventHandler.mouseDragged(PInputEvent event)
Will be called when a drag is occurring.
|
void |
PBasicInputEventHandler.mouseEntered(PInputEvent event)
Will be invoked when the mouse enters a specified region.
|
void |
PBasicInputEventHandler.mouseExited(PInputEvent event)
Will be invoked when the mouse leaves a specified region.
|
void |
PBasicInputEventHandler.mouseMoved(PInputEvent event)
Will be called when the mouse is moved.
|
void |
PDragSequenceEventHandler.mousePressed(PInputEvent event)
Subclasses should not override this method, instead they should
override the appropriate drag callbacks.
|
void |
PBasicInputEventHandler.mousePressed(PInputEvent event)
Will be called when a mouse button is pressed down.
|
void |
PDragSequenceEventHandler.mouseReleased(PInputEvent event)
Subclasses should not override this method, instead they should
override the appropriate drag method.
|
void |
PBasicInputEventHandler.mouseReleased(PInputEvent event)
Will be called when any mouse button is released.
|
void |
PMouseWheelZoomEventHandler.mouseWheelRotated(PInputEvent event)
This method is invoked when the mouse wheel is rotated.
|
void |
PBasicInputEventHandler.mouseWheelRotated(PInputEvent event)
This method is invoked when the mouse wheel is rotated.
|
void |
PBasicInputEventHandler.mouseWheelRotatedByBlock(PInputEvent event)
This method is invoked when the mouse wheel is rotated by a block.
|
protected void |
PPanEventHandler.pan(PInputEvent event)
Pans the camera in response to the pan event provided.
|
void |
PInputEventListener.processEvent(PInputEvent event,
int type)
Called whenever an event is emitted.
|
void |
PBasicInputEventHandler.processEvent(PInputEvent event,
int type)
Dispatches a generic event to a more specific method.
|
protected boolean |
PDragSequenceEventHandler.shouldStartDragInteraction(PInputEvent event)
Returns true if the provided event represents a valid start for a drag
sequence.
|
protected boolean |
PDragEventHandler.shouldStartDragInteraction(PInputEvent event)
Returns whether the given event should be start a drag interaction.
|
protected void |
PDragSequenceEventHandler.startDrag(PInputEvent event)
Subclasses should override this method to get notified of the start of a
new drag sequence.
|
protected void |
PDragEventHandler.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 setRaiseToTopOnDrag.
|
protected void |
PDragSequenceEventHandler.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 void |
PDragSequenceEventHandler.stopDragActivity(PInputEvent event)
Stops the activity responsible for updating the scene.
|
Modifier and Type | Method and Description |
---|---|
void |
PPickPath.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.
|
Copyright © 1995-2013 Piccolo2D. All Rights Reserved.