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.nodes |
This package contains nodes that may be useful for Piccolo applications.
|
org.piccolo2d.util |
This package defines several utility classes that are likely
to be useful for Piccolo applications.
|
Modifier and Type | Class and Description |
---|---|
class |
PCamera
PCamera represents a viewport onto a list of layer nodes.
|
class |
PLayer
PLayer is a node that can be viewed directly by multiple camera nodes.
|
class |
PRoot
PRoot serves as the top node in Piccolo2D's runtime structure.
|
Modifier and Type | Method and Description |
---|---|
PNode |
PNode.getChild(int index)
Return the child node at the specified index.
|
PNode |
PNode.getParent()
Return the parent of this node.
|
PNode |
PNode.removeChild(int index)
Remove the child at the specified position of this group node's children.
|
PNode |
PNode.removeChild(PNode child)
Remove the given child from this node's children list.
|
Modifier and Type | Method and Description |
---|---|
void |
PNode.addChild(int index,
PNode child)
Add a node to be a new child of this node at the specified index.
|
void |
PNode.addChild(PNode child)
Add a node to be a new child of this node.
|
int |
PNode.indexOfChild(PNode child)
Return the index where the given child is stored.
|
boolean |
PNode.isAncestorOf(PNode node)
Return true if this node is an ancestor of the parameter node.
|
boolean |
PNode.isDescendentOf(PNode node)
Return true if this node is a descendant of the parameter node.
|
void |
PNode.lower(PNode child)
Lower the specified child node within the Z-order of this.
|
void |
PNode.lowerBelow(PNode sibling)
Lower this node within the Z-order of its parent below the specified sibling node.
|
void |
PNode.lowerToBottom(PNode child)
Lower the specified child node within the Z-order of this to the bottom.
|
void |
PNode.PSceneGraphDelegate.nodeFullBoundsInvalidated(PNode node)
Called to notify delegate that the node and all it's children need
repainting.
|
void |
PNode.PSceneGraphDelegate.nodePaintInvalidated(PNode node)
Called to notify delegate that the node needs repainting.
|
void |
PNode.raise(PNode child)
Raise the specified child node within the Z-order of this.
|
void |
PNode.raiseAbove(PNode sibling)
Raise this node within the Z-order of its parent above the specified sibling node.
|
void |
PNode.raiseToTop(PNode child)
Raise the specified child node within the Z-order of this to the top.
|
PNode |
PNode.removeChild(PNode child)
Remove the given child from this node's children list.
|
void |
PNode.repaintFrom(PBounds localBounds,
PNode childOrThis)
Pass the given repaint request up the tree, so that any cameras can
invalidate that region on their associated canvas.
|
void |
PLayer.repaintFrom(PBounds localBounds,
PNode repaintSource)
Override repaints and forward them to the cameras that are viewing this
layer.
|
void |
PCamera.repaintFrom(PBounds localBounds,
PNode sourceNode)
Repaint this camera and forward the repaint request to the component
for this camera, if it is non-null.
|
void |
PNode.reparent(PNode newParent)
Set the parent of this node, and transform the node in such a way that it
doesn't move in global coordinates.
|
void |
PNode.replaceWith(PNode replacementNode)
Swaps this node out of the scene graph tree, and replaces it with the
specified replacement node.
|
void |
PNode.setParent(PNode newParent)
Set the parent of this node.
|
Modifier and Type | Method and Description |
---|---|
protected PNode |
PDragEventHandler.getDraggedNode()
Returns the node that is currently being dragged, or null if none.
|
PNode |
PInputEvent.getPickedNode()
Return the bottom node on the current pickpath, that is the picked node
furthest from the root node.
|
Modifier and Type | Method and Description |
---|---|
PDimension |
PInputEvent.getDeltaRelativeTo(PNode nodeOnPath)
Return the delta between the last and current mouse positions relative to
a given node on the pick path.
|
Point2D |
PInputEvent.getPositionRelativeTo(PNode nodeOnPath)
Return the mouse position relative to a given node on the pick path.
|
protected void |
PDragEventHandler.setDraggedNode(PNode draggedNode)
Set's the node that is currently being dragged.
|
Modifier and Type | Class and Description |
---|---|
class |
PArea
Area node.
|
class |
PHtmlView
PHtmlView is a Piccolo node for rendering HTML text.
|
class |
PImage
PImage is a wrapper around a java.awt.Image.
|
class |
PPath
Abstract path node.
|
static class |
PPath.Double
Path node with coordinates stored in double precision floating point.
|
static class |
PPath.Float
Path node with coordinates stored in single precision floating point.
|
class |
PShape
Abstract shape node.
|
class |
PText
PText is a multi-line text node.
|
Modifier and Type | Method and Description |
---|---|
PNode |
PPickPath.getPickedNode()
Get the bottom node on the pick path node stack.
|
PNode |
PPickPath.nextPickedNode()
Return the next node that will be picked after the current picked node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PNodeFilter.accept(PNode aNode)
Return true if the filter should accept the given node.
|
boolean |
PNodeFilter.acceptChildrenOf(PNode aNode)
Return true if the filter should test the children of the given node for
acceptance.
|
boolean |
PPickPath.acceptsNode(PNode node)
Determines if the passed node has been excluded from being a member of
the pickpath.
|
Dimension2D |
PPickPath.canvasToLocal(Dimension2D canvasDimension,
PNode nodeOnPath)
Convert the given dimension from the canvas coordinates, down through the
pick path (and through any camera view transforms applied to the path) to
the local coordinates of the given node.
|
Point2D |
PPickPath.canvasToLocal(Point2D canvasPoint,
PNode nodeOnPath)
Convert the given point from the canvas coordinates, down through the
pick path (and through any camera view transforms applied to the path) to
the local coordinates of the given node.
|
Rectangle2D |
PPickPath.canvasToLocal(Rectangle2D canvasRectangle,
PNode nodeOnPath)
Convert the given rectangle from the canvas coordinates, down through the
pick path (and through any camera view transforms applied to the path) to
the local coordinates of the given node.
|
PAffineTransform |
PPickPath.getPathTransformTo(PNode nodeOnPath)
Calculates the context at which the given node is being interacted with.
|
void |
PPickPath.popNode(PNode node)
Removes the topmost node from the node stack.
|
void |
PPickPath.pushNode(PNode node)
Pushes the provided node to the top of the pick path.
|
Copyright © 1995-2013 Piccolo2D. All Rights Reserved.