|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.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(giny.model.GraphPerspectiveChangeEvent event,
giny.view.GraphView graph_view)
Handles the event as desired by updating the given giny.view.GraphView . |
static void |
positionToBarycenter(giny.view.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 giny.model.Edge[] |
removeGraphViewEdges(giny.view.GraphView graph_view,
giny.model.Edge[] edges)
It removes the views of the edges in the array from the given giny.view.GraphView
object. |
static int[] |
removeGraphViewEdges(giny.view.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(giny.view.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 giny.model.Node[] |
removeGraphViewNodes(giny.view.GraphView graph_view,
giny.model.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 giny.model.Edge[] |
restoreGraphViewEdges(giny.view.GraphView graph_view,
giny.model.Edge[] edges)
It restores the views of the edges in the array in the given giny.view.GraphView
object |
static int[] |
restoreGraphViewEdges(giny.view.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(giny.view.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 giny.model.Node[] |
restoreGraphViewNodes(giny.view.GraphView graph_view,
giny.model.Node[] nodes,
boolean restore_connected_edges)
It restores the views of the nodes in the array in the given giny.view.GraphView object |
static giny.model.Edge[] |
selectGraphViewEdges(giny.view.GraphView graph_view,
giny.model.Edge[] edges)
It selects the edges in the array in the given giny.view.GraphView object. |
static giny.model.Node[] |
selectGraphViewNodes(giny.view.GraphView graph_view,
giny.model.Node[] nodes)
It selects the nodes in the array in the given giny.view.GraphView object. |
static giny.model.Edge[] |
unselectGraphViewEdges(giny.view.GraphView graph_view,
giny.model.Edge[] edges)
It unselects the edges in the array in the given giny.view.GraphView object |
static giny.model.Node[] |
unselectGraphViewNodes(giny.view.GraphView graph_view,
giny.model.Node[] nodes)
It unselects the nodes in the array in the given giny.view.GraphView object |
void |
updateGraphView(giny.view.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicGraphViewHandler()
Method Detail |
---|
public void handleGraphPerspectiveEvent(giny.model.GraphPerspectiveChangeEvent event, giny.view.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 giny.model.Edge[] removeGraphViewEdges(giny.view.GraphView graph_view, giny.model.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(giny.view.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 giny.model.Edge[] restoreGraphViewEdges(giny.view.GraphView graph_view, giny.model.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(giny.view.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 giny.model.Edge[] selectGraphViewEdges(giny.view.GraphView graph_view, giny.model.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 giny.model.Edge[] unselectGraphViewEdges(giny.view.GraphView graph_view, giny.model.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 giny.model.Node[] removeGraphViewNodes(giny.view.GraphView graph_view, giny.model.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(giny.view.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 giny.model.Node[] restoreGraphViewNodes(giny.view.GraphView graph_view, giny.model.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(giny.view.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 giny.model.Node[] selectGraphViewNodes(giny.view.GraphView graph_view, giny.model.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 giny.model.Node[] unselectGraphViewNodes(giny.view.GraphView graph_view, giny.model.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(giny.view.NodeView node_view)
node_view
- the giny.view.NodeView
that will be positioned
to the barycenter of its childrenpublic void updateGraphView(giny.view.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |