Class PNodeSelector


  • public class PNodeSelector
    extends Object
    Deprecated.
    2D piccolo based code is being removed
    Selects PNodes representing agent etc., given a PStack.
    Author:
    Nick Collier
    • Constructor Detail

      • PNodeSelector

        public PNodeSelector()
        Deprecated.
    • Method Detail

      • getSelectedNodes

        public List<org.piccolo2d.PNode> getSelectedNodes()
        Deprecated.
        Gets a list of the currently selected nodes.
        Returns:
        a list of the currently selected nodes.
      • selectNodes

        public void selectNodes​(org.piccolo2d.util.PStack stack,
                                boolean includeEdges)
        Deprecated.
        Selects the agent and optionally the edge nodes in the PStack.
        Parameters:
        includeEdges - whether or not to include edges in the returned list
        stack - the stack containing the nodes to select
      • getNodes

        public List<org.piccolo2d.PNode> getNodes​(org.piccolo2d.util.PStack stack,
                                                  boolean includeEdges)
        Deprecated.
        Gets the non-camera, layer, etc. nodes in the stack.
        Parameters:
        stack - the stack of nodes to query
        includeEdges - whether or not to include edge nodes in the returned list
        Returns:
        the non-camera, layer, etc. nodes in the stack.
      • unselectNodes

        public void unselectNodes()
        Deprecated.
        Unselects any selected nodes.