Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.ding
Class DingNetworkView

java.lang.Object
  extended by ding.view.DGraphView
      extended by cytoscape.ding.DingNetworkView
All Implemented Interfaces:
CyNetworkView, GraphView, Printable

public class DingNetworkView
extends ding.view.DGraphView
implements CyNetworkView


Nested Class Summary
 
Nested classes/interfaces inherited from class ding.view.DGraphView
ding.view.DGraphView.Canvas
 
Field Summary
 
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
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
DingNetworkView(CyNetwork network, String title)
           
 
Method Summary
 void addEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
           
 void addNodeContextMenuListener(ding.view.NodeContextMenuListener l)
           
 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(EdgeView edge_view)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(EdgeView edge_view, VisualStyle style)
          Applies the given edge to the given vizmapper
 boolean applyVizMap(NodeView node_view)
          Applies the given node to the given vizmapper
 boolean applyVizMap(NodeView node_view, VisualStyle style)
          Applies the given node to the given vizmapper
 void applyVizmapper(VisualStyle style)
           
 Object getClientData(String data_name)
          Get Some client data
 Collection getClientDataNames()
          Get a list of all currently available ClientData objects
 CyNetwork getNetwork()
          Returns the network displayed by this object.
 List getNodeViewsList()
           
 String getTitle()
          Returns the Title of this View
 CyNetworkView getView()
           
 boolean getVisualMapperEnabled()
           
 VisualStyle getVisualStyle()
           
 VisualMappingManager getVizMapManager()
           
 VizMapUI getVizMapUI()
           
 void putClientData(String data_name, Object data)
          Networks can support client data.
 void redrawGraph(boolean layout, boolean vizmap)
           
 void removeEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
           
 void removeNodeContextMenuListener(ding.view.NodeContextMenuListener l)
           
 boolean setSelected(CyEdge[] edges)
          Sets the Given edges Selected
 boolean setSelected(CyNode[] nodes)
          Sets the Given nodes Selected
 boolean setSelected(EdgeView[] edge_views)
          Sets the Given edges Selected
 boolean setSelected(NodeView[] node_views)
          Sets the Given nodes Selected
 void setTitle(String title)
          Sets the Title of this View
 void setVisualMapperEnabled(boolean state)
           
 void setVisualStyle(String vsName)
           
 void toggleVisualMapperEnabled()
           
 
Methods inherited from class ding.view.DGraphView
addContentChangeListener, addContextMethod, addEdgeView, addEdgeView, addGraphViewChangeListener, addNodeView, addNodeView, addNodeView, addViewportChangeListener, disableEdgeSelection, disableNodeSelection, drawSnapshot, edgeCount, edgeSelectionEnabled, enableEdgeSelection, enableNodeSelection, fitContent, fitSelected, getAllEdgePropertyData, getAllNodePropertyData, getAnchorSelectedPaint, getAnchorSize, getAnchorUnselectedPaint, getBackgroundPaint, getCanvas, getCanvas, getCenter, getComponent, getContextMethods, getContextMethods, getEdgeBooleanProperty, getEdgeDoubleProperty, getEdgeFloatProperty, getEdgeIntProperty, getEdgeObjectProperty, getEdgeView, getEdgeView, getEdgeViewCount, getEdgeViewsIterator, getEdgeViewsList, getEdgeViewsList, getEdgeViewsList, getExtents, getGraphLOD, getGraphPerspective, getIdentifier, getNodeBooleanProperty, getNodeDoubleProperty, getNodeFloatProperty, getNodeIntProperty, getNodeObjectProperty, getNodesIntersectingRectangle, getNodeView, getNodeView, getNodeViewCount, getNodeViewsIterator, getPickedEdgeView, getPickedNodeView, getRootGraph, getSelectedEdgeIndices, getSelectedEdges, getSelectedNodeIndices, getSelectedNodes, getZoom, hideGraphObject, hideGraphObjects, nodeCount, nodeSelectionEnabled, print, queryDrawnEdges, removeContentChangeListener, removeEdgeView, removeEdgeView, removeEdgeView, removeGraphViewChangeListener, removeNodeView, removeNodeView, removeNodeView, removeViewportChangeListener, setAllEdgePropertyData, setAllNodePropertyData, setBackgroundPaint, setCenter, setEdgeBooleanProperty, setEdgeDoubleProperty, setEdgeFloatProperty, setEdgeIntProperty, setEdgeObjectProperty, setGraphLOD, setIdentifier, setNodeBooleanProperty, setNodeDoubleProperty, setNodeFloatProperty, setNodeIntProperty, setNodeObjectProperty, setPrintingTextAsShape, setZoom, showGraphObject, showGraphObjects, updateView, xformComponentToNodeCoords
 
Methods inherited from class java.lang.Object
equals, 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
 

Constructor Detail

DingNetworkView

public DingNetworkView(CyNetwork network,
                       String title)
Method Detail

setVisualStyle

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

getVisualStyle

public VisualStyle getVisualStyle()
Specified by:
getVisualStyle 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

setTitle

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

Specified by:
setTitle in interface CyNetworkView

getTitle

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

Specified by:
getTitle in interface CyNetworkView

redrawGraph

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

getView

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

getVizMapManager

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

getVizMapUI

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

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

putClientData

public void putClientData(String data_name,
                          Object data)
Description copied from interface: CyNetworkView
Networks can support client data.

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

getClientDataNames

public Collection getClientDataNames()
Description copied from interface: CyNetworkView
Get a list of all currently available ClientData objects

Specified by:
getClientDataNames in interface CyNetworkView

getClientData

public Object getClientData(String data_name)
Description copied from interface: CyNetworkView
Get Some client data

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

setSelected

public boolean setSelected(CyNode[] nodes)
Description copied from interface: CyNetworkView
Sets the Given nodes Selected

Specified by:
setSelected in interface CyNetworkView

setSelected

public boolean setSelected(NodeView[] node_views)
Description copied from interface: CyNetworkView
Sets the Given nodes Selected

Specified by:
setSelected in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyEdge edge)
Description copied from interface: CyNetworkView
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(EdgeView edge_view)
Description copied from interface: CyNetworkView
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyNode node)
Description copied from interface: CyNetworkView
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(NodeView node_view)
Description copied from interface: CyNetworkView
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyEdge edge,
                           VisualStyle style)
Description copied from interface: CyNetworkView
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(EdgeView edge_view,
                           VisualStyle style)
Description copied from interface: CyNetworkView
Applies the given edge to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(CyNode node,
                           VisualStyle style)
Description copied from interface: CyNetworkView
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

applyVizMap

public boolean applyVizMap(NodeView node_view,
                           VisualStyle style)
Description copied from interface: CyNetworkView
Applies the given node to the given vizmapper

Specified by:
applyVizMap in interface CyNetworkView

setSelected

public boolean setSelected(CyEdge[] edges)
Description copied from interface: CyNetworkView
Sets the Given edges Selected

Specified by:
setSelected in interface CyNetworkView

setSelected

public boolean setSelected(EdgeView[] edge_views)
Description copied from interface: CyNetworkView
Sets the Given edges Selected

Specified by:
setSelected in interface CyNetworkView

applyVizmapper

public void applyVizmapper(VisualStyle style)
Specified by:
applyVizmapper in interface CyNetworkView

applyLayout

public void applyLayout(LayoutAlgorithm layout)
Description copied from interface: CyNetworkView
Applies the given layout to the entire CyNetworkView

Specified by:
applyLayout in interface CyNetworkView

applyLockedLayout

public void applyLockedLayout(LayoutAlgorithm layout,
                              CyNode[] nodes,
                              CyEdge[] edges)
Description copied from interface: CyNetworkView
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)
Description copied from interface: CyNetworkView
Applies the given layout to only the given Nodes and Edges

Specified by:
applyLayout in interface CyNetworkView

getNodeViewsList

public List getNodeViewsList()

applyLockedLayout

public void applyLockedLayout(LayoutAlgorithm layout,
                              CyNodeView[] nodes,
                              CyEdgeView[] edges)
Description copied from interface: CyNetworkView
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)
Description copied from interface: CyNetworkView
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)
Description copied from interface: CyNetworkView
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)
Description copied from interface: CyNetworkView
Applies the given layout to only the given Nodes and Edges

Specified by:
applyLayout in interface CyNetworkView

addNodeContextMenuListener

public void addNodeContextMenuListener(ding.view.NodeContextMenuListener l)
Specified by:
addNodeContextMenuListener in interface CyNetworkView
Overrides:
addNodeContextMenuListener in class ding.view.DGraphView

removeNodeContextMenuListener

public void removeNodeContextMenuListener(ding.view.NodeContextMenuListener l)
Specified by:
removeNodeContextMenuListener in interface CyNetworkView
Overrides:
removeNodeContextMenuListener in class ding.view.DGraphView

addEdgeContextMenuListener

public void addEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
Specified by:
addEdgeContextMenuListener in interface CyNetworkView
Overrides:
addEdgeContextMenuListener in class ding.view.DGraphView

removeEdgeContextMenuListener

public void removeEdgeContextMenuListener(ding.view.EdgeContextMenuListener l)
Specified by:
removeEdgeContextMenuListener in interface CyNetworkView
Overrides:
removeEdgeContextMenuListener in class ding.view.DGraphView

www.cytoscape.org