Package | Description |
---|---|
edu.umd.cs.piccolo |
Piccolo is a general-purpose Java-based engine that supports 2D visualizations.
|
edu.umd.cs.piccolo.event |
This package supports Piccolo event handlers.
|
edu.umd.cs.piccolo.examples | |
edu.umd.cs.piccolo.tutorial | |
edu.umd.cs.piccolo.util |
This package defines several utility classes that are likely
to be useful for Piccolo applications.
|
edu.umd.cs.piccolox.event |
This package provides additional Piccolo event handlers.
|
edu.umd.cs.piccolox.handles |
This package contains handle nodes.
|
edu.umd.cs.piccolox.pswing |
This package contains PSwing nodes and related classes.
|
edu.umd.cs.piccolox.swt |
This package provides a SWT implementation of the core Piccolo library.
|
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 |
PDragEventHandler.drag(PInputEvent event)
Moves the dragged node in proportion to the drag distance.
|
protected void |
PDragSequenceEventHandler.drag(PInputEvent event)
Subclasses should override this method to get notified of the drag events
in a drag sequence.
|
protected void |
PDragSequenceEventHandler.dragActivityFinalStep(PInputEvent aEvent)
Subclasses should override this method to get notified when the drag
activity stops stepping.
|
protected void |
PDragSequenceEventHandler.dragActivityFirstStep(PInputEvent event)
Subclasses override this method to get notified when the drag activity
starts stepping.
|
protected void |
PZoomEventHandler.dragActivityFirstStep(PInputEvent event)
Records the start point of the zoom.
|
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 |
PZoomEventHandler.dragActivityStep(PInputEvent event)
Updates the current zoom periodically, regardless of whether the mouse
has moved recently.
|
protected void |
PDragEventHandler.endDrag(PInputEvent event)
Clears the current drag node.
|
protected void |
PDragSequenceEventHandler.endDrag(PInputEvent event)
Subclasses should override this method to get notified of the end event
in a drag sequence.
|
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 |
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 |
PBasicInputEventHandler.processEvent(PInputEvent event,
int type)
Dispatches a generic event to a more specific method.
|
void |
PInputEventListener.processEvent(PInputEvent event,
int type)
Called whenever an event is emitted.
|
protected boolean |
PDragEventHandler.shouldStartDragInteraction(PInputEvent event)
Returns whether the given event should be start a drag interaction.
|
protected boolean |
PDragSequenceEventHandler.shouldStartDragInteraction(PInputEvent event)
Returns true if the provided event represents a valid start for a 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 setMoveToFrontOnDrag.
|
protected void |
PDragSequenceEventHandler.startDrag(PInputEvent event)
Subclasses should override this method to get notified of the start of a
new drag sequence.
|
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 |
GraphEditorExample.NodeDragHandler.drag(PInputEvent e) |
void |
GraphEditorExample.NodeDragHandler.mouseEntered(PInputEvent e) |
void |
GraphEditorExample.NodeDragHandler.mouseExited(PInputEvent e) |
Modifier and Type | Method and Description |
---|---|
void |
UserInteraction.SquiggleHandler.drag(PInputEvent e) |
void |
UserInteraction.SquiggleHandler.endDrag(PInputEvent e) |
void |
UserInteraction.SquiggleHandler.startDrag(PInputEvent e) |
void |
UserInteraction.SquiggleHandler.updateSquiggle(PInputEvent aEvent) |
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PSelectionEventHandler.computeMarqueeSelection(PInputEvent pie)
Sets the selection to be all nodes under the marquee.
|
protected void |
PSelectionEventHandler.computeOptionMarqueeSelection(PInputEvent pie)
Extends the selection to include all nodes under the marquee.
|
void |
PStyledTextEventHandler.dispatchEventToEditor(PInputEvent event)
Intercepts Piccolo2D events and dispatches the underlying swing one to
the current editor.
|
protected void |
PSelectionEventHandler.drag(PInputEvent event)
Updates the marquee to the new bounds caused by the drag.
|
protected void |
PSelectionEventHandler.dragActivityStep(PInputEvent aEvent)
This gets called continuously during the drag, and is used to animate the
marquee.
|
protected void |
PSelectionEventHandler.dragStandardSelection(PInputEvent e)
Drag selected nodes.
|
protected void |
PSelectionEventHandler.endDrag(PInputEvent event)
Ends the selection marquee when the drag is ended.
|
protected void |
PSelectionEventHandler.endMarqueeSelection(PInputEvent e)
Removes marquee and clears selection.
|
protected void |
PSelectionEventHandler.endStandardSelection(PInputEvent e)
Ends the "pressed" state of the previously pressed node (if any).
|
protected void |
PSelectionEventHandler.initializeMarquee(PInputEvent event)
Creates an empty marquee child for use in displaying the marquee around
the selection.
|
protected void |
PSelectionEventHandler.initializeSelection(PInputEvent pie)
Starts a selection based on the provided event.
|
protected boolean |
PSelectionEventHandler.isMarqueeSelection(PInputEvent pie)
Tests the input event to see if it is selecting a new node.
|
boolean |
PSelectionEventHandler.isOptionSelection(PInputEvent pie)
Used to test whether the event is one that changes the selection.
|
void |
PSelectionEventHandler.keyPressed(PInputEvent e)
Delete selection when delete key is pressed (if enabled).
|
void |
PNavigationEventHandler.keyPressed(PInputEvent event)
Processes key pressed events.
|
void |
PZoomToEventHandler.mousePressed(PInputEvent event)
Zooms the camera's view to the pressed node when button 1 is pressed.
|
void |
PStyledTextEventHandler.mousePressed(PInputEvent event)
A callback that is invoked any time the mouse is pressed on the canvas.
|
void |
PNavigationEventHandler.mousePressed(PInputEvent event)
Animates the camera to the node that has been pressed.
|
void |
PNavigationEventHandler.moveFocusDown(PInputEvent event)
Moves the focus in the downward direction.
|
void |
PNavigationEventHandler.moveFocusIn(PInputEvent event)
Moves the focus "into" the scene.
|
void |
PNavigationEventHandler.moveFocusLeft(PInputEvent event)
Moves the focus in the left direction.
|
void |
PNavigationEventHandler.moveFocusOut(PInputEvent event)
Moves the focus "out" of scene.
|
void |
PNavigationEventHandler.moveFocusRight(PInputEvent event)
Moves the focus in the right direction.
|
void |
PNavigationEventHandler.moveFocusToMouseOver(PInputEvent event)
Moves the focus to the mouse under the mouse.
|
void |
PNavigationEventHandler.moveFocusUp(PInputEvent event)
Moves the focus in the up direction.
|
protected void |
PSelectionEventHandler.startDrag(PInputEvent e)
Overrides method in PDragSequenceEventHandler so that, selections have
marquees.
|
void |
PStyledTextEventHandler.startEditing(PInputEvent event,
PStyledText text)
Begins editing the provided text node as a result of the provided event.
|
protected void |
PSelectionEventHandler.startMarqueeSelection(PInputEvent event)
Invoked at the start of the selection.
|
protected void |
PSelectionEventHandler.startOptionMarqueeSelection(PInputEvent event)
Invoked when the marquee is being used to extend the selection.
|
protected void |
PSelectionEventHandler.startStandardOptionSelection(PInputEvent pie)
Toggle the current selection on the node that was just pressed, but leave
the rest of the selected nodes unchanged.
|
protected void |
PSelectionEventHandler.startStandardSelection(PInputEvent pie)
If the pressed node is not selected unselect all nodes and select the
pressed node if it allows it.
|
void |
PStyledTextEventHandler.stopEditing(PInputEvent event)
Stops editing the current text node.
|
protected void |
PSelectionEventHandler.updateMarquee(PInputEvent pie)
Updates the marquee rectangle as the result of a drag.
|
protected void |
PZoomToEventHandler.zoomTo(PInputEvent event)
Zooms the camera to the picked node of the event.
|
Modifier and Type | Method and Description |
---|---|
void |
PHandle.dragHandle(PDimension aLocalDimension,
PInputEvent aEvent)
Override this method to get notified as the handle is dragged.
|
void |
PBoundsHandle.dragHandle(PDimension aLocalDimension,
PInputEvent aEvent)
Is invoked when the handle is being dragged.
|
void |
PHandle.endHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle stops getting
dragged.
|
void |
PBoundsHandle.endHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Call back invoked when the drag is finished.
|
void |
PHandle.startHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle starts to get
dragged.
|
void |
PBoundsHandle.startHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Is invoked when the a drag starts on this handle.
|
Modifier and Type | Method and Description |
---|---|
static PSwingEvent |
PSwingMouseEvent.createMouseEvent(int id,
MouseEvent swingEvent,
PInputEvent pEvent)
Creates and returns a new PMouse event from a Java MouseEvent.
|
(package private) void |
PSwingEventHandler.dispatchEvent(PSwingEvent pSwingMouseEvent,
PInputEvent aEvent)
Determines if any Swing components in Piccolo2D should receive the given
MouseEvent and forwards the event to that component.
|
void |
PSwingEventHandler.processEvent(PInputEvent aEvent,
int type)
Process a Piccolo2D event and (if active) dispatch the corresponding
Swing event.
|
Constructor and Description |
---|
PSwingMouseEvent(int id,
MouseEvent swingEvent,
PInputEvent piccoloEvent)
Constructs a new PMouse event from a Java MouseEvent.
|
PSwingMouseMotionEvent(int id,
MouseEvent swingEvent,
PInputEvent piccoloEvent)
Constructs a new PMouse event from a Java MouseEvent.
|
PSwingMouseWheelEvent(int id,
MouseWheelEvent swingEvent,
PInputEvent piccoloEvent)
Constructs a new PMouseWheel event from a Java MouseWheelEvent.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PSWTSelectionEventHandler.dragActivityStep(PInputEvent aEvent)
This gets called continuously during the drag, and is used to animate the
marquee.
|
void |
PSWTBoundsHandle.dragHandle(PDimension aLocalDimension,
PInputEvent aEvent)
Callback invoked when the user is dragging the handle.
|
void |
PSWTHandle.dragHandle(PDimension aLocalDimension,
PInputEvent aEvent)
Override this method to get notified as the handle is dragged.
|
void |
PSWTBoundsHandle.endHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Callback invoked when the handle stops being dragged.
|
void |
PSWTHandle.endHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle stops getting
dragged.
|
protected void |
PSWTSelectionEventHandler.endMarqueeSelection(PInputEvent e)
Removes marquee and clears selection.
|
protected void |
PSWTSelectionEventHandler.initializeMarquee(PInputEvent e)
Creates an empty marquee child for use in displaying the marquee around
the selection.
|
protected void |
PSWTSelectionEventHandler.initializeSelection(PInputEvent pie)
Starts a selection based on the provided event.
|
void |
PSWTBoundsHandle.startHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Callback invoked when the user has started to drag a handle.
|
void |
PSWTHandle.startHandleDrag(Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle starts to get
dragged.
|
protected void |
PSWTSelectionEventHandler.updateMarquee(PInputEvent pie)
Updates the marquee rectangle as the result of a drag.
|
Copyright © 1995–2013 Piccolo2D. All rights reserved.