cytoscape.giny
Class PhoebeNetworkView

java.lang.Object
  extended by coltginy.ColtGraphViewModel
      extended by phoebe.PGraphView
          extended by cytoscape.giny.PhoebeNetworkView
All Implemented Interfaces:
CyNetworkView, giny.view.GraphView

public class PhoebeNetworkView
extends phoebe.PGraphView
implements CyNetworkView


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

title

protected String title
This is the title of the NetworkView, it will be dispalyed in a Tab, or in a Window.


statusLabel

protected JLabel statusLabel
This is the label that tells how many node/edges are in a CyNetworkView and how many are selected/hidden


flagAndSelectionHandler

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.


clientData

protected Map clientData
The ClientData map


keyEventHandler

protected edu.umd.cs.piccolo.event.PBasicInputEventHandler keyEventHandler

vs

protected VisualStyle vs
Constructor Detail

PhoebeNetworkView

public PhoebeNetworkView(CyNetwork network,
                         String title)
Method Detail

initialize

protected void initialize()

setVisualStyle

public void setVisualStyle(String VSName)
Specified by:
setVisualStyle in interface CyNetworkView

getVisualStyle

public VisualStyle getVisualStyle()
Specified by:
getVisualStyle in interface CyNetworkView

initializeEventHandlers

protected void initializeEventHandlers()
Overrides:
initializeEventHandlers in class phoebe.PGraphView

getView

public CyNetworkView getView()
Specified by:
getView in interface CyNetworkView

getNetwork

public CyNetwork getNetwork()
Description copied from interface: CyNetworkView
Returns the network displayed by this object.

Specified by:
getNetwork in interface CyNetworkView

getTitle

public String getTitle()
Description copied from interface: CyNetworkView
Returns the Title of this View

Specified by:
getTitle in interface CyNetworkView

setTitle

public void setTitle(String new_title)
Description copied from interface: CyNetworkView
Sets the Title of this View

Specified by:
setTitle in interface CyNetworkView

redrawGraph

public void redrawGraph(boolean layout,
                        boolean vizmap)
Specified by:
redrawGraph in interface CyNetworkView

redrawGraph

public void redrawGraph()

toggleVisualMapperEnabled

public void toggleVisualMapperEnabled()
Specified by:
toggleVisualMapperEnabled in interface CyNetworkView

setVisualMapperEnabled

public void setVisualMapperEnabled(boolean state)
Specified by:
setVisualMapperEnabled in interface CyNetworkView

getVisualMapperEnabled

public boolean getVisualMapperEnabled()
Specified by:
getVisualMapperEnabled in interface CyNetworkView

getVizMapManager

public VisualMappingManager getVizMapManager()
Specified by:
getVizMapManager in interface CyNetworkView

getVizMapUI

public VizMapUI getVizMapUI()
Specified by:
getVizMapUI in interface CyNetworkView

putClientData

public void putClientData(String data_name,
                          Object data)
Networks can support client data.

Specified by:
putClientData in interface CyNetworkView
Parameters:
data_name - the name of this client data

getClientDataNames

public Collection getClientDataNames()
Get a list of all currently available ClientData objects

Specified by:
getClientDataNames in interface CyNetworkView

getClientData

public Object getClientData(String data_name)
Get Some client data

Specified by:
getClientData in interface CyNetworkView
Parameters:
data_name - the data to get

fireGraphViewChanged

protected void fireGraphViewChanged(phoebe.PGraphView.ChangeEvent event)
Overwritten version of fireGraphViewChanged so that the label can be updated

Overrides:
fireGraphViewChanged in class phoebe.PGraphView

updateStatusLabel

public void updateStatusLabel()
Resets the info label status bar text with the current number of nodes, edges, selected nodes, and selected edges.


applyVizMap

public boolean applyVizMap(CyEdge edge)
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(giny.view.EdgeView edge_view)
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyEdge edge,
                           VisualStyle style)
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(giny.view.EdgeView edge_view,
                           VisualStyle style)
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyNode node)
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(giny.view.NodeView node_view)
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyNode node,
                           VisualStyle style)
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(giny.view.NodeView node_view,
                           VisualStyle style)
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizmapper

public void applyVizmapper(VisualStyle style)
Specified by:
applyVizmapper in interface CyNetworkView
Parameters:
style - the visual style

applyLayout

public void applyLayout(LayoutAlgorithm layout)
Applies the given layout to the entire CyNetworkView

Specified by:
applyLayout in interface CyNetworkView

applyLockedLayout

public 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

Specified by:
applyLockedLayout in interface CyNetworkView

applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        CyNode[] nodes,
                        CyEdge[] edges)
Applies the given layout to only the given Nodes and Edges

Specified by:
applyLayout in interface CyNetworkView

applyLockedLayout

public 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

Specified by:
applyLockedLayout in interface CyNetworkView

applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        CyNodeView[] nodes,
                        CyEdgeView[] edges)
Applies the given layout to only the given NodeViews and EdgeViews

Specified by:
applyLayout in interface CyNetworkView

applyLockedLayout

public 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

Specified by:
applyLockedLayout in interface CyNetworkView

applyLayout

public void applyLayout(LayoutAlgorithm layout,
                        int[] nodes,
                        int[] edges)
Applies the given layout to only the given Nodes and Edges

Specified by:
applyLayout in interface CyNetworkView

setSelected

public boolean setSelected(CyNode[] nodes)
Sets the Given nodes Selected

Specified by:
setSelected in interface CyNetworkView

setSelected

public boolean setSelected(giny.view.NodeView[] node_views)
Sets the Given nodes Selected

Specified by:
setSelected in interface CyNetworkView

setSelected

public boolean setSelected(CyEdge[] edges)
Sets the Given edges Selected

Specified by:
setSelected in interface CyNetworkView

setSelected

public boolean setSelected(giny.view.EdgeView[] edge_views)
Sets the Given edges Selected

Specified by:
setSelected in interface CyNetworkView

convertToViews

protected giny.view.NodeView[] convertToViews(CyNode[] nodes)

convertToViews

protected giny.view.EdgeView[] convertToViews(CyEdge[] edges)

convertToNodeViews

protected giny.view.NodeView[] convertToNodeViews(int[] nodes)

convertToEdgeViews

protected giny.view.EdgeView[] convertToEdgeViews(int[] edges)

getInverseViews

protected giny.view.NodeView[] getInverseViews(giny.view.NodeView[] given)

getInverseViews

protected giny.view.EdgeView[] getInverseViews(giny.view.EdgeView[] given)