|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.view.BasicGraphViewHandler
public class BasicGraphViewHandler
A basic GraphViewHandler
that simply reflects GraphPerspective
changes on a given GraphView
Constructor Summary | |
---|---|
BasicGraphViewHandler()
Constructor |
Method Summary | |
---|---|
void |
handleGraphPerspectiveEvent(GraphPerspectiveChangeEvent event,
GraphView graph_view)
Handles the event as desired by updating the given giny.view.GraphView . |
static void |
positionToBarycenter(NodeView node_view)
If the node that node_view represents is a meta-node, then it positions it at the barycenter of its viewable children nodes. |
static Edge[] |
removeGraphViewEdges(GraphView graph_view,
Edge[] edges)
It removes the views of the edges in the array from the given giny.view.GraphView
object. |
static int[] |
removeGraphViewEdges(GraphView graph_view,
int[] edge_indices)
It removes the views of the edges in the array from the given giny.view.GraphView
object. |
static int[] |
removeGraphViewNodes(GraphView graph_view,
int[] node_indices)
It removes the views of the nodes with the given indices that are contained in the given giny.view.GraphView object, it also removes the connected edges to
these nodes (an edge without a connecting node makes no mathematical sense). |
static Node[] |
removeGraphViewNodes(GraphView graph_view,
Node[] nodes)
It removes the nodes in the array from the given giny.view.GraphView object,
it also removes the connected edges to these nodes (an edge without a connecting node makes
no mathematical sense). |
static Edge[] |
restoreGraphViewEdges(GraphView graph_view,
Edge[] edges)
It restores the views of the edges in the array in the given giny.view.GraphView
object |
static int[] |
restoreGraphViewEdges(GraphView graph_view,
int[] edge_indices)
It restores the views of the edges with the given indices in the given giny.view.GraphView object |
static int[] |
restoreGraphViewNodes(GraphView graph_view,
int[] node_indices,
boolean restore_connected_edges)
It restores the views of the nodes with the given indices in the given giny.view.GraphView object |
static Node[] |
restoreGraphViewNodes(GraphView graph_view,
Node[] nodes,
boolean restore_connected_edges)
It restores the views of the nodes in the array in the given giny.view.GraphView object |
static Edge[] |
selectGraphViewEdges(GraphView graph_view,
Edge[] edges)
It selects the edges in the array in the given giny.view.GraphView object. |
static Node[] |
selectGraphViewNodes(GraphView graph_view,
Node[] nodes)
It selects the nodes in the array in the given giny.view.GraphView object. |
static Edge[] |
unselectGraphViewEdges(GraphView graph_view,
Edge[] edges)
It unselects the edges in the array in the given giny.view.GraphView object |
static Node[] |
unselectGraphViewNodes(GraphView graph_view,
Node[] nodes)
It unselects the nodes in the array in the given giny.view.GraphView object |
void |
updateGraphView(GraphView graph_view)
Updates the given graph_view to contain node and edge visual representations of only nodes and edges that are in its GraphPerspective |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicGraphViewHandler()
Method Detail |
---|
public void handleGraphPerspectiveEvent(GraphPerspectiveChangeEvent event, GraphView graph_view)
giny.view.GraphView
.
handleGraphPerspectiveEvent
in interface GraphViewHandler
event
- the event to handlegraph_view
- the giny.view.GraphView
that views the
giny.model.GraphPerspective
that generated the event and that should
be updated as necessarypublic static Edge[] removeGraphViewEdges(GraphView graph_view, Edge[] edges)
giny.view.GraphView
object.
graph_view
- the giny.view.GraphView
object from which edges will be removededges
- the edges whose views will be removed
public static int[] removeGraphViewEdges(GraphView graph_view, int[] edge_indices)
giny.view.GraphView
object.
graph_view
- the giny.view.GraphView
object from which edges will be removededge_indices
- the indices of the edges that will be removed
public static Edge[] restoreGraphViewEdges(GraphView graph_view, Edge[] edges)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which edges will be restorededges
- the edges that will be restored
public static int[] restoreGraphViewEdges(GraphView graph_view, int[] edge_indices)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which edges' views
will be restorededge_indices
- the indices of the edges that will be restored
public static Edge[] selectGraphViewEdges(GraphView graph_view, Edge[] edges)
giny.view.GraphView
object.
graph_view
- the giny.view.GraphView
object in which edges will be selectededges
- the edges in graph_view
that will be selected
public static Edge[] unselectGraphViewEdges(GraphView graph_view, Edge[] edges)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which edges will be unselectededges
- the edges that will be unselected in graph_view
public static Node[] removeGraphViewNodes(GraphView graph_view, Node[] nodes)
giny.view.GraphView
object,
it also removes the connected edges to these nodes (an edge without a connecting node makes
no mathematical sense).
graph_view
- the giny.view.GraphView
object from which nodes will be removednodes
- the nodes whose views will be removed from graph_view
public static int[] removeGraphViewNodes(GraphView graph_view, int[] node_indices)
giny.view.GraphView
object, it also removes the connected edges to
these nodes (an edge without a connecting node makes no mathematical sense).
graph_view
- the giny.view.GraphView
object from which nodes will be removednode_indices
- the indices of the nodes that will be removed
public static Node[] restoreGraphViewNodes(GraphView graph_view, Node[] nodes, boolean restore_connected_edges)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which nodes will be restorednodes
- the nodes whose views will be restored in graph_view
restore_connected_edges
- whether or not the connected edges to the restored nodes
should also be restored or not (for now this argument is ignored)
public static int[] restoreGraphViewNodes(GraphView graph_view, int[] node_indices, boolean restore_connected_edges)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which node views will be restorednode_indices
- the indices of the nodes whose views will be restoredrestore_connected_edges
- whether or not the connected edges to the restored nodes
should also be restored or not (for now this argument is ignored)
public static Node[] selectGraphViewNodes(GraphView graph_view, Node[] nodes)
giny.view.GraphView
object.
graph_view
- the giny.view.GraphView
object in which nodes will be selectednodes
- the nodes in graph_view
that will be selected
public static Node[] unselectGraphViewNodes(GraphView graph_view, Node[] nodes)
giny.view.GraphView
object
graph_view
- the giny.view.GraphView
object in which nodes will be unselectednodes
- the nodes that will be unselected in graph_view
public static void positionToBarycenter(NodeView node_view)
node_view
- the giny.view.NodeView
that will be positioned
to the barycenter of its childrenpublic void updateGraphView(GraphView graph_view)
GraphPerspective
updateGraphView
in interface GraphViewHandler
graph_view
- the giny.view.GraphView
that views the should
be updated as necessaryGraphViewController.resumeListening()
,
GraphViewController.resumeListening(GraphView)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |