Uses of Class
edu.umd.cs.piccolo.PNode
Packages that use PNode
Package
Description
Piccolo is a general-purpose Java-based engine that supports 2D visualizations.
This package supports Piccolo event handlers.
This package contains nodes that may be useful for Piccolo applications.
This package defines several utility classes that are likely
to be useful for Piccolo applications.
-
Uses of PNode in edu.umd.cs.piccolo
Subclasses of PNode in edu.umd.cs.piccoloModifier and TypeClassDescriptionclassPCamera represents a viewport onto a list of layer nodes.classPLayer is a node that can be viewed directly by multiple camera nodes.classPRoot serves as the top node in Piccolo2D's runtime structure.Methods in edu.umd.cs.piccolo that return PNodeModifier and TypeMethodDescriptionPNode.getChild(int index) Return the child node at the specified index.PNode.getParent()Return the parent of this node.PNode.removeChild(int index) Remove the child at the specified position of this group node's children.PNode.removeChild(PNode child) Remove the given child from this node's children list.Methods in edu.umd.cs.piccolo with parameters of type PNodeModifier and TypeMethodDescriptionvoidAdd a node to be a new child of this node at the specified index.voidAdd a node to be a new child of this node.intPNode.indexOfChild(PNode child) Return the index where the given child is stored.booleanPNode.isAncestorOf(PNode node) Return true if this node is an ancestor of the parameter node.booleanPNode.isDescendentOf(PNode node) Return true if this node is a descendant of the parameter node.voidPNode.moveInBackOf(PNode sibling) Change the order of this node in its parent's children list so that it will draw in back of the specified sibling node.voidPNode.moveInFrontOf(PNode sibling) Change the order of this node in its parent's children list so that it will draw in front of the specified sibling node.voidPNode.PSceneGraphDelegate.nodeFullBoundsInvalidated(PNode node) Called to notify delegate that the node and all it's children need repainting.voidPNode.PSceneGraphDelegate.nodePaintInvalidated(PNode node) Called to notify delegate that the node needs repainting.PNode.removeChild(PNode child) Remove the given child from this node's children list.voidPCamera.repaintFrom(PBounds localBounds, PNode sourceNode) Repaint this camera and forward the repaint request to the component for this camera, if it is non-null.voidPLayer.repaintFrom(PBounds localBounds, PNode repaintSource) Override repaints and forward them to the cameras that are viewing this layer.voidPNode.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.voidPCamera.repaintFromLayer(PBounds viewBounds, PNode repaintedLayer) Deprecated.voidSet the parent of this node, and transform the node in such a way that it doesn't move in global coordinates.voidPNode.replaceWith(PNode replacementNode) Swaps this node out of the scene graph tree, and replaces it with the specified replacement node.voidSet the parent of this node. -
Uses of PNode in edu.umd.cs.piccolo.event
Methods in edu.umd.cs.piccolo.event that return PNodeModifier and TypeMethodDescriptionprotected PNodePDragEventHandler.getDraggedNode()Returns the node that is currently being dragged, or null if none.PInputEvent.getPickedNode()Return the bottom node on the current pickpath, that is the picked node furthest from the root node.Methods in edu.umd.cs.piccolo.event with parameters of type PNodeModifier and TypeMethodDescriptionPInputEvent.getDeltaRelativeTo(PNode nodeOnPath) Return the delta between the last and current mouse positions relative to a given node on the pick path.PInputEvent.getPositionRelativeTo(PNode nodeOnPath) Return the mouse position relative to a given node on the pick path.protected voidPDragEventHandler.setDraggedNode(PNode draggedNode) Set's the node that is currently being dragged. -
Uses of PNode in edu.umd.cs.piccolo.nodes
Subclasses of PNode in edu.umd.cs.piccolo.nodes -
Uses of PNode in edu.umd.cs.piccolo.util
Methods in edu.umd.cs.piccolo.util that return PNodeModifier and TypeMethodDescriptionPPickPath.getPickedNode()Get the bottom node on the pick path node stack.PPickPath.nextPickedNode()Return the next node that will be picked after the current picked node.Methods in edu.umd.cs.piccolo.util with parameters of type PNodeModifier and TypeMethodDescriptionbooleanReturn true if the filter should accept the given node.booleanPNodeFilter.acceptChildrenOf(PNode aNode) Return true if the filter should test the children of the given node for acceptance.booleanPPickPath.acceptsNode(PNode node) Determines if the passed node has been excluded from being a member of the pickpath.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.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.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.PPickPath.getPathTransformTo(PNode nodeOnPath) Calculates the context at which the given node is being interacted with.voidRemoves the topmost node from the node stack.voidPushes the provided node to the top of the pick path.
PCamera.repaintFromLayer(PBounds, PLayer).