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.piccolo
    Modifier and Type
    Class
    Description
    class 
    PCamera represents a viewport onto a list of layer nodes.
    class 
    PLayer is a node that can be viewed directly by multiple camera nodes.
    class 
    PRoot serves as the top node in Piccolo2D's runtime structure.
    Methods in edu.umd.cs.piccolo that return PNode
    Modifier and Type
    Method
    Description
    PNode.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 PNode
    Modifier and Type
    Method
    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.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.
    void
    PNode.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.
    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.
    PNode.removeChild(PNode child)
    Remove the given child from this node's children list.
    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
    PLayer.repaintFrom(PBounds localBounds, PNode repaintSource)
    Override repaints and forward them to the cameras that are viewing this layer.
    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
    PCamera.repaintFromLayer(PBounds viewBounds, PNode repaintedLayer)
    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.
  • Uses of PNode in edu.umd.cs.piccolo.event

    Methods in edu.umd.cs.piccolo.event that return PNode
    Modifier and Type
    Method
    Description
    protected PNode
    PDragEventHandler.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 PNode
    Modifier and Type
    Method
    Description
    PInputEvent.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 void
    PDragEventHandler.setDraggedNode(PNode draggedNode)
    Set's the node that is currently being dragged.
  • Uses of PNode in edu.umd.cs.piccolo.nodes

    Modifier and Type
    Class
    Description
    class 
    PHtmlView is a Piccolo node for rendering HTML text.
    class 
    PImage is a wrapper around a java.awt.Image.
    class 
    PPath is a wrapper around a java.awt.geom.GeneralPath.
    class 
    PText is a multi-line text node.
  • Uses of PNode in edu.umd.cs.piccolo.util

    Methods in edu.umd.cs.piccolo.util that return PNode
    Modifier and Type
    Method
    Description
    PPickPath.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 PNode
    Modifier and Type
    Method
    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.
    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.
    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.