|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcoltginy.ColtGraphViewModel
phoebe.PGraphView
cytoscape.giny.PhoebeNetworkView
public class PhoebeNetworkView
Nested Class Summary |
---|
Nested classes/interfaces inherited from class phoebe.PGraphView |
---|
phoebe.PGraphView.ChangeEvent |
Field Summary | |
---|---|
protected Map |
clientData
The ClientData map |
protected FlagAndSelectionHandler |
flagAndSelectionHandler
The FlagAndSelectionHandler keeps the selection state of view objects inthe CyNetworkView nsync with the flagged state of those objects in the default flagger of the associated CyNetwork. |
protected edu.umd.cs.piccolo.event.PBasicInputEventHandler |
keyEventHandler
|
protected JLabel |
statusLabel
This is the label that tells how many node/edges are in a CyNetworkView and how many are selected/hidden |
protected String |
title
This is the title of the NetworkView, it will be dispalyed in a Tab, or in a Window. |
protected VisualStyle |
vs
|
Fields inherited from class phoebe.PGraphView |
---|
contextMenu, contextMenuStore, DEFAULT_BACKGROUND_COLOR, EDGE_DEFAULTS, edgeHandler, edgeLayer, edgeSelection, edgeSelectionHandler, edgeSelectionList, edgeViewMap, firePiccoloEvents, graphEditEventHandler, isInitialized, NODE_DEFAULTS, nodeLayer, nodeSelection, nodeSelectionList, nodeViewMap, noEdgeSelection, noNodeSelection, objectLayer, pcs, phoebeGraphViewChangeEvent, selectionHandler, squiggleEventHandler, squiggleLayer, toolTipHandler, updateEdges, viewComponent |
Fields inherited from class coltginy.ColtGraphViewModel |
---|
DEFAULT_BORDER_PAINT, DEFAULT_EDGE_END_PAINT, DEFAULT_EDGE_STROKE_PAINT, DEFAULT_EDGE_STROKE_PAINT_SELECTION, DEFAULT_NODE_PAINT, DEFAULT_NODE_SELECTION_PAINT, DEFAULT_X, DEFAULT_Y, edgeDataDescription, edgeDataStore, identifier, nodeDataDescription, nodeDataStore, perspective, viewDataStore |
Fields inherited from interface giny.view.GraphView |
---|
EDGE_LINE_TYPE, EDGE_PAINT, EDGE_SELECTION_PAINT, EDGE_SOURCE_END_PAINT, EDGE_SOURCE_END_SELECTED_PAINT, EDGE_SOURCE_END_TYPE, EDGE_TARGET_END_PAINT, EDGE_TARGET_END_SELECTED_PAINT, EDGE_TARGET_END_TYPE, EDGE_WIDTH, NODE_BORDER_PAINT, NODE_BORDER_WIDTH, NODE_HEIGHT, NODE_LABEL, NODE_PAINT, NODE_SELECTION_PAINT, NODE_SHAPE, NODE_WIDTH, NODE_X_POSITION, NODE_Y_POSITION, NODE_Z_POSITION, SOURCE_INDEX, TARGET_INDEX |
Constructor Summary | |
---|---|
PhoebeNetworkView(CyNetwork network,
String title)
|
Method Summary | |
---|---|
void |
applyLayout(LayoutAlgorithm layout)
Applies the given layout to the entire CyNetworkView |
void |
applyLayout(LayoutAlgorithm layout,
CyNode[] nodes,
CyEdge[] edges)
Applies the given layout to only the given Nodes and Edges |
void |
applyLayout(LayoutAlgorithm layout,
CyNodeView[] nodes,
CyEdgeView[] edges)
Applies the given layout to only the given NodeViews and EdgeViews |
void |
applyLayout(LayoutAlgorithm layout,
int[] nodes,
int[] edges)
Applies the given layout to only the given Nodes and Edges |
void |
applyLockedLayout(LayoutAlgorithm layout,
CyNode[] nodes,
CyEdge[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place |
void |
applyLockedLayout(LayoutAlgorithm layout,
CyNodeView[] nodes,
CyEdgeView[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given NodeViews and EdgeViews in place |
void |
applyLockedLayout(LayoutAlgorithm layout,
int[] nodes,
int[] edges)
Applies the given layout to the entire CyNetworkView, but locks the given Nodes and Edges in place |
boolean |
applyVizMap(CyEdge edge)
Applies the given edge to the given vizmapper |
boolean |
applyVizMap(CyEdge edge,
VisualStyle style)
Applies the given edge to the given vizmapper |
boolean |
applyVizMap(CyNode node)
Applies the given node to the given vizmapper |
boolean |
applyVizMap(CyNode node,
VisualStyle style)
Applies the given node to the given vizmapper |
boolean |
applyVizMap(giny.view.EdgeView edge_view)
Applies the given edge to the given vizmapper |
boolean |
applyVizMap(giny.view.EdgeView edge_view,
VisualStyle style)
Applies the given edge to the given vizmapper |
boolean |
applyVizMap(giny.view.NodeView node_view)
Applies the given node to the given vizmapper |
boolean |
applyVizMap(giny.view.NodeView node_view,
VisualStyle style)
Applies the given node to the given vizmapper |
void |
applyVizmapper(VisualStyle style)
|
protected giny.view.EdgeView[] |
convertToEdgeViews(int[] edges)
|
protected giny.view.NodeView[] |
convertToNodeViews(int[] nodes)
|
protected giny.view.EdgeView[] |
convertToViews(CyEdge[] edges)
|
protected giny.view.NodeView[] |
convertToViews(CyNode[] nodes)
|
protected void |
fireGraphViewChanged(phoebe.PGraphView.ChangeEvent event)
Overwritten version of fireGraphViewChanged so that the label can be updated |
Object |
getClientData(String data_name)
Get Some client data |
Collection |
getClientDataNames()
Get a list of all currently available ClientData objects |
protected giny.view.EdgeView[] |
getInverseViews(giny.view.EdgeView[] given)
|
protected giny.view.NodeView[] |
getInverseViews(giny.view.NodeView[] given)
|
CyNetwork |
getNetwork()
Returns the network displayed by this object. |
String |
getTitle()
Returns the Title of this View |
CyNetworkView |
getView()
|
boolean |
getVisualMapperEnabled()
|
VisualStyle |
getVisualStyle()
|
VisualMappingManager |
getVizMapManager()
|
VizMapUI |
getVizMapUI()
|
protected void |
initialize()
|
protected void |
initializeEventHandlers()
|
void |
putClientData(String data_name,
Object data)
Networks can support client data. |
void |
redrawGraph()
|
void |
redrawGraph(boolean layout,
boolean vizmap)
|
boolean |
setSelected(CyEdge[] edges)
Sets the Given edges Selected |
boolean |
setSelected(CyNode[] nodes)
Sets the Given nodes Selected |
boolean |
setSelected(giny.view.EdgeView[] edge_views)
Sets the Given edges Selected |
boolean |
setSelected(giny.view.NodeView[] node_views)
Sets the Given nodes Selected |
void |
setTitle(String new_title)
Sets the Title of this View |
void |
setVisualMapperEnabled(boolean state)
|
void |
setVisualStyle(String VSName)
|
void |
toggleVisualMapperEnabled()
|
void |
updateStatusLabel()
Resets the info label status bar text with the current number of nodes, edges, selected nodes, and selected edges. |
Methods inherited from class phoebe.PGraphView |
---|
addContextMethod, addEdgeView, addEdgeView, addGraphViewChangeListener, addNodeView, addNodeView, addNodeView, addToEdgeLayer, addToNodeLayer, clearEdgeSelectionList, clearNodeSelectionList, createChangeEvent, createViewableObjects, disableEdgeSelection, disableNodeSelection, disablePanning, donePrinting, edgeCount, edgeSelected, edgeSelectionEnabled, edgeUnselected, enableEdgeSelection, enableNodeSelection, enablePanning, ensureEdgeSelectionCapacity, ensureNodeSelectionCapacity, fitContent, getBackgroundPaint, getBirdsEyeView, getCanvas, getChangeEvent, getComponent, getContextMethods, getContextMethods, getEdgeHandler, getEdgeLayer, getEdgeSelectionHandler, getEdgeView, getEdgeView, getEdgeViewCount, getEdgeViewsIterator, getEdgeViewsList, getEdgeViewsList, getEdgeViewsList, getHeight, getIdentifier, getNodeLayer, getNodeView, getNodeView, getNodeViewCount, getNodeViewsIterator, getNodeViewsList, getObjectLayer, getRootGraph, getSelectedEdgeIndices, getSelectedEdges, getSelectedNodeIndices, getSelectedNodes, getSelectionHandler, getSquiggleHandler, getWidth, getZoom, hideEdgeView, hideGraphObject, hideGraphObjects, hideNodeView, hideNodeView, initializePGraphView, listEdgeSelection, listSelection, nodeCount, nodeSelected, nodeSelectionEnabled, nodeUnselected, openNodeEditor, prepareToPrint, removeEdgeView, removeEdgeView, removeEdgeView, removeGraphViewChangeListener, removeNodeView, removeNodeView, removeNodeView, setBackgroundPaint, setIdentifier, setZoom, showEdgeView, showGraphObject, showGraphObjects, showNodeView, showNodeView, updateView |
Methods inherited from class coltginy.ColtGraphViewModel |
---|
getAllEdgePropertyData, getAllNodePropertyData, getEdgeBooleanProperty, getEdgeDoubleProperty, getEdgeFloatProperty, getEdgeIntProperty, getEdgeObjectProperty, getGraphPerspective, getNodeBooleanProperty, getNodeDoubleProperty, getNodeFloatProperty, getNodeIntProperty, getNodeObjectProperty, setAllEdgePropertyData, setAllNodePropertyData, setEdgeBooleanProperty, setEdgeDoubleProperty, setEdgeFloatProperty, setEdgeIntProperty, setEdgeObjectProperty, setNodeBooleanProperty, setNodeDoubleProperty, setNodeFloatProperty, setNodeIntProperty, setNodeObjectProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface giny.view.GraphView |
---|
addContextMethod, addEdgeView, addEdgeView, addGraphViewChangeListener, addNodeView, addNodeView, addNodeView, disableEdgeSelection, disableNodeSelection, edgeCount, edgeSelectionEnabled, enableEdgeSelection, enableNodeSelection, fitContent, getAllEdgePropertyData, getAllNodePropertyData, getBackgroundPaint, getComponent, getContextMethods, getContextMethods, getEdgeBooleanProperty, getEdgeDoubleProperty, getEdgeFloatProperty, getEdgeIntProperty, getEdgeObjectProperty, getEdgeView, getEdgeView, getEdgeViewCount, getEdgeViewsIterator, getEdgeViewsList, getEdgeViewsList, getEdgeViewsList, getGraphPerspective, getIdentifier, getNodeBooleanProperty, getNodeDoubleProperty, getNodeFloatProperty, getNodeIntProperty, getNodeObjectProperty, getNodeView, getNodeView, getNodeViewCount, getNodeViewsIterator, getRootGraph, getSelectedEdgeIndices, getSelectedEdges, getSelectedNodeIndices, getSelectedNodes, getZoom, hideGraphObject, hideGraphObjects, nodeCount, nodeSelectionEnabled, removeEdgeView, removeEdgeView, removeEdgeView, removeGraphViewChangeListener, removeNodeView, removeNodeView, removeNodeView, setAllEdgePropertyData, setAllNodePropertyData, setBackgroundPaint, setEdgeBooleanProperty, setEdgeDoubleProperty, setEdgeFloatProperty, setEdgeIntProperty, setEdgeObjectProperty, setIdentifier, setNodeBooleanProperty, setNodeDoubleProperty, setNodeFloatProperty, setNodeIntProperty, setNodeObjectProperty, setZoom, showGraphObject, showGraphObjects, updateView |
Field Detail |
---|
protected String title
protected JLabel statusLabel
protected FlagAndSelectionHandler flagAndSelectionHandler
protected Map clientData
protected edu.umd.cs.piccolo.event.PBasicInputEventHandler keyEventHandler
protected VisualStyle vs
Constructor Detail |
---|
public PhoebeNetworkView(CyNetwork network, String title)
Method Detail |
---|
protected void initialize()
public void setVisualStyle(String VSName)
setVisualStyle
in interface CyNetworkView
public VisualStyle getVisualStyle()
getVisualStyle
in interface CyNetworkView
protected void initializeEventHandlers()
initializeEventHandlers
in class phoebe.PGraphView
public CyNetworkView getView()
getView
in interface CyNetworkView
public CyNetwork getNetwork()
CyNetworkView
getNetwork
in interface CyNetworkView
public String getTitle()
CyNetworkView
getTitle
in interface CyNetworkView
public void setTitle(String new_title)
CyNetworkView
setTitle
in interface CyNetworkView
public void redrawGraph(boolean layout, boolean vizmap)
redrawGraph
in interface CyNetworkView
public void redrawGraph()
public void toggleVisualMapperEnabled()
toggleVisualMapperEnabled
in interface CyNetworkView
public void setVisualMapperEnabled(boolean state)
setVisualMapperEnabled
in interface CyNetworkView
public boolean getVisualMapperEnabled()
getVisualMapperEnabled
in interface CyNetworkView
public VisualMappingManager getVizMapManager()
getVizMapManager
in interface CyNetworkView
public VizMapUI getVizMapUI()
getVizMapUI
in interface CyNetworkView
public void putClientData(String data_name, Object data)
putClientData
in interface CyNetworkView
data_name
- the name of this client datapublic Collection getClientDataNames()
getClientDataNames
in interface CyNetworkView
public Object getClientData(String data_name)
getClientData
in interface CyNetworkView
data_name
- the data to getprotected void fireGraphViewChanged(phoebe.PGraphView.ChangeEvent event)
fireGraphViewChanged
in class phoebe.PGraphView
public void updateStatusLabel()
public boolean applyVizMap(CyEdge edge)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(giny.view.EdgeView edge_view)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(CyEdge edge, VisualStyle style)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(giny.view.EdgeView edge_view, VisualStyle style)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(CyNode node)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(giny.view.NodeView node_view)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(CyNode node, VisualStyle style)
applyVizMap
in interface CyNetworkView
public boolean applyVizMap(giny.view.NodeView node_view, VisualStyle style)
applyVizMap
in interface CyNetworkView
public void applyVizmapper(VisualStyle style)
applyVizmapper
in interface CyNetworkView
style
- the visual stylepublic void applyLayout(LayoutAlgorithm layout)
applyLayout
in interface CyNetworkView
public void applyLockedLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
applyLockedLayout
in interface CyNetworkView
public void applyLayout(LayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
applyLayout
in interface CyNetworkView
public void applyLockedLayout(LayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
applyLockedLayout
in interface CyNetworkView
public void applyLayout(LayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
applyLayout
in interface CyNetworkView
public void applyLockedLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
applyLockedLayout
in interface CyNetworkView
public void applyLayout(LayoutAlgorithm layout, int[] nodes, int[] edges)
applyLayout
in interface CyNetworkView
public boolean setSelected(CyNode[] nodes)
setSelected
in interface CyNetworkView
public boolean setSelected(giny.view.NodeView[] node_views)
setSelected
in interface CyNetworkView
public boolean setSelected(CyEdge[] edges)
setSelected
in interface CyNetworkView
public boolean setSelected(giny.view.EdgeView[] edge_views)
setSelected
in interface CyNetworkView
protected giny.view.NodeView[] convertToViews(CyNode[] nodes)
protected giny.view.EdgeView[] convertToViews(CyEdge[] edges)
protected giny.view.NodeView[] convertToNodeViews(int[] nodes)
protected giny.view.EdgeView[] convertToEdgeViews(int[] edges)
protected giny.view.NodeView[] getInverseViews(giny.view.NodeView[] given)
protected giny.view.EdgeView[] getInverseViews(giny.view.EdgeView[] given)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |