giny.util
Class GraphPerspectiveUtil
java.lang.Object
giny.util.GraphPerspectiveUtil
- public abstract class GraphPerspectiveUtil
- extends java.lang.Object
This is a convenience class that offers a number of useful
methods for GraphPerspectives.
Method Summary |
static int[] |
hideNode(GraphPerspective gp,
int node,
boolean hide_adjacent_edges)
This method will hide the node and optionally all connected
edges. |
void |
unhideNode(GraphPerspective gp,
int node,
boolean unhide_all_edges)
This method is a convience method for unhiding all of the edges
that connect a node to an edge in the Perspective |
void |
unhideNode(GraphPerspective gp,
int node,
boolean unhide_all_edges,
int[] excluded_edges)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphPerspectiveUtil
public GraphPerspectiveUtil()
hideNode
public static int[] hideNode(GraphPerspective gp,
int node,
boolean hide_adjacent_edges)
- This method will hide the node and optionally all connected
edges. The only time I can think of when you might not want to
hide all the edges is if you are going to permanantly remove this
node from the root graph and replace it with another.
- Parameters:
gp
- the GraphPerspectivenode
- the index of the node to be worked with
unhideNode
public void unhideNode(GraphPerspective gp,
int node,
boolean unhide_all_edges)
- This method is a convience method for unhiding all of the edges
that connect a node to an edge in the Perspective
- Parameters:
gp
- the GraphPerspectivenode
- the index of the node to be worked withunhide_all_edges
- boolean to do unhide all or not
unhideNode
public void unhideNode(GraphPerspective gp,
int node,
boolean unhide_all_edges,
int[] excluded_edges)