Cytoscape 2.8.0 API

cytoscape.ding
Class DingNetworkView

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

public class DingNetworkView
extends DGraphView
implements CyNetworkView, PropertyChangeListener

Extended version of DGraphView defined in Ding.


Nested Class Summary
 
Nested classes/interfaces inherited from class ding.view.DGraphView
DGraphView.Canvas, DGraphView.ShapeType
 
Field Summary
static String NESTED_NETWORK_SNAPSHOT_SIZE_PROP
          A string used to specify the number of pixels wide and high the nested network image should be.
 
Fields inherited from class ding.view.DGraphView
DEF_SNAPSHOT_SIZE
 
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)
          Creates a new DingNetworkView object.
 
Method Summary
 void applyLayout(CyLayoutAlgorithm layout)
          DOCUMENT ME!
 void applyLayout(CyLayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
          DOCUMENT ME!
 void applyLayout(CyLayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
          DOCUMENT ME!
 void applyLayout(CyLayoutAlgorithm layout, int[] nodes, int[] edges)
          DOCUMENT ME!
 void applyLockedLayout(CyLayoutAlgorithm layout, CyNode[] nodes, CyEdge[] edges)
          DOCUMENT ME!
 void applyLockedLayout(CyLayoutAlgorithm layout, CyNodeView[] nodes, CyEdgeView[] edges)
          DOCUMENT ME!
 void applyLockedLayout(CyLayoutAlgorithm layout, int[] nodes, int[] edges)
          DOCUMENT ME!
 boolean applyVizMap(CyEdge edge)
          DOCUMENT ME!
 boolean applyVizMap(CyEdge edge, VisualStyle style)
          DOCUMENT ME!
 boolean applyVizMap(CyNode node)
          DOCUMENT ME!
 boolean applyVizMap(CyNode node, VisualStyle style)
          DOCUMENT ME!
 boolean applyVizMap(EdgeView edge_view)
          DOCUMENT ME!
 boolean applyVizMap(EdgeView edge_view, VisualStyle style)
          DOCUMENT ME!
 boolean applyVizMap(NodeView node_view)
          DOCUMENT ME!
 boolean applyVizMap(NodeView node_view, VisualStyle style)
          DOCUMENT ME!
 void applyVizmapper(VisualStyle style)
          DOCUMENT ME!
 Object getClientData(String data_name)
          DOCUMENT ME!
 Collection getClientDataNames()
          DOCUMENT ME!
 CyNetwork getNetwork()
          DOCUMENT ME!
 List getNodeViewsList()
          DOCUMENT ME!
 String getTitle()
          DOCUMENT ME!
 CyNetworkView getView()
          DOCUMENT ME!
 boolean getVisualMapperEnabled()
          DOCUMENT ME!
 VisualStyle getVisualStyle()
          DOCUMENT ME!
 VisualMappingManager getVizMapManager()
          DOCUMENT ME!
 void propertyChange(PropertyChangeEvent e)
           
 void putClientData(String data_name, Object data)
          DOCUMENT ME!
 void redrawGraph(boolean layout, boolean vizmap)
          Apply visual style and redraw graph.
 boolean setSelected(CyEdge[] edges)
          DOCUMENT ME!
 boolean setSelected(CyNode[] nodes)
          DOCUMENT ME!
 boolean setSelected(EdgeView[] edge_views)
          DOCUMENT ME!
 boolean setSelected(NodeView[] node_views)
          DOCUMENT ME!
 void setTitle(String title)
          DOCUMENT ME!
 void setVisualMapperEnabled(boolean state)
          DOCUMENT ME!
 void setVisualStyle(String vsName)
          DOCUMENT ME!
 void toggleVisualMapperEnabled()
          DOCUMENT ME!
 
Methods inherited from class ding.view.DGraphView
addContentChangeListener, addContextMethod, addEdgeContextMenuListener, addEdgeView, addEdgeView, addGraphViewChangeListener, addNodeContextMenuListener, addNodeView, addNodeView, addNodeView, addViewportChangeListener, createImage, disableEdgeSelection, disableNodeSelection, drawSnapshot, edgeCount, edgeSelectionEnabled, enableEdgeSelection, enableNodeSelection, fitContent, fitSelected, getAllEdgePropertyData, getAllNodePropertyData, getAnchorSelectedPaint, getAnchorSize, getAnchorUnselectedPaint, getArrowShapes, getBackgroundPaint, getCanvas, getCanvas, getCenter, getComponent, getContextMethods, getContextMethods, getEdgeBooleanProperty, getEdgeDoubleProperty, getEdgeFloatProperty, getEdgeIntProperty, getEdgeObjectProperty, getEdgeView, getEdgeView, getEdgeViewCount, getEdgeViewsIterator, getEdgeViewsList, getEdgeViewsList, getEdgeViewsList, getExtents, getGraphLOD, getGraphPerspective, getIdentifier, getLock, getNodeBooleanProperty, getNodeDoubleProperty, getNodeFloatProperty, getNodeIntProperty, getNodeObjectProperty, getNodeShapes, getNodesIntersectingRectangle, getNodeView, getNodeView, getNodeViewCount, getNodeViewsIterator, getPickedEdgeView, getPickedNodeView, getRootGraph, getSelectedEdgeIndices, getSelectedEdges, getSelectedNodeIndices, getSelectedNodes, getZoom, hideGraphObject, hideGraphObjects, nodeCount, nodeSelectionEnabled, print, queryDrawnEdges, removeContentChangeListener, removeEdgeContextMenuListener, removeEdgeView, removeEdgeView, removeEdgeView, removeGraphViewChangeListener, removeNodeContextMenuListener, removeNodeView, removeNodeView, removeNodeView, removeViewportChangeListener, setAllEdgePropertyData, setAllNodePropertyData, setBackgroundPaint, setCenter, setEdgeBooleanProperty, setEdgeDoubleProperty, setEdgeFloatProperty, setEdgeIntProperty, setEdgeObjectProperty, setGraphLOD, setIdentifier, setNodeBooleanProperty, setNodeDoubleProperty, setNodeFloatProperty, setNodeIntProperty, setNodeObjectProperty, setPrintingTextAsShape, setViewportChanged, setZoom, showGraphObject, showGraphObjects, updateView, xformComponentToNodeCoords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cytoscape.view.CyNetworkView
addEdgeContextMenuListener, addNodeContextMenuListener, removeEdgeContextMenuListener, removeNodeContextMenuListener
 
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

NESTED_NETWORK_SNAPSHOT_SIZE_PROP

public static final String NESTED_NETWORK_SNAPSHOT_SIZE_PROP
A string used to specify the number of pixels wide and high the nested network image should be.

See Also:
Constant Field Values
Constructor Detail

DingNetworkView

public DingNetworkView(CyNetwork network,
                       String title)
Creates a new DingNetworkView object.

Parameters:
network - DOCUMENT ME!
title - DOCUMENT ME!
Method Detail

setVisualStyle

public void setVisualStyle(String vsName)
DOCUMENT ME!

Specified by:
setVisualStyle in interface CyNetworkView
Parameters:
vsName - DOCUMENT ME!

getVisualStyle

public VisualStyle getVisualStyle()
DOCUMENT ME!

Specified by:
getVisualStyle in interface CyNetworkView
Returns:
DOCUMENT ME!

getNetwork

public CyNetwork getNetwork()
DOCUMENT ME!

Specified by:
getNetwork in interface CyNetworkView
Returns:
DOCUMENT ME!

setTitle

public void setTitle(String title)
DOCUMENT ME!

Specified by:
setTitle in interface CyNetworkView
Parameters:
title - DOCUMENT ME!

getTitle

public String getTitle()
DOCUMENT ME!

Specified by:
getTitle in interface CyNetworkView
Returns:
DOCUMENT ME!

redrawGraph

public void redrawGraph(boolean layout,
                        boolean vizmap)
Apply visual style and redraw graph.

Specified by:
redrawGraph in interface CyNetworkView
Parameters:
layout - Always ignored!
vizmap - Always ignored!

getView

public CyNetworkView getView()
DOCUMENT ME!

Specified by:
getView in interface CyNetworkView
Returns:
DOCUMENT ME!

getVizMapManager

public VisualMappingManager getVizMapManager()
DOCUMENT ME!

Specified by:
getVizMapManager in interface CyNetworkView
Returns:
DOCUMENT ME!

toggleVisualMapperEnabled

public void toggleVisualMapperEnabled()
DOCUMENT ME!

Specified by:
toggleVisualMapperEnabled in interface CyNetworkView

setVisualMapperEnabled

public void setVisualMapperEnabled(boolean state)
DOCUMENT ME!

Specified by:
setVisualMapperEnabled in interface CyNetworkView
Parameters:
state - DOCUMENT ME!

getVisualMapperEnabled

public boolean getVisualMapperEnabled()
DOCUMENT ME!

Specified by:
getVisualMapperEnabled in interface CyNetworkView
Returns:
DOCUMENT ME!

putClientData

public void putClientData(String data_name,
                          Object data)
DOCUMENT ME!

Specified by:
putClientData in interface CyNetworkView
Parameters:
data_name - DOCUMENT ME!
data - DOCUMENT ME!

getClientDataNames

public Collection getClientDataNames()
DOCUMENT ME!

Specified by:
getClientDataNames in interface CyNetworkView
Returns:
DOCUMENT ME!

getClientData

public Object getClientData(String data_name)
DOCUMENT ME!

Specified by:
getClientData in interface CyNetworkView
Parameters:
data_name - DOCUMENT ME!
Returns:
DOCUMENT ME!

setSelected

public boolean setSelected(CyNode[] nodes)
DOCUMENT ME!

Specified by:
setSelected in interface CyNetworkView
Parameters:
nodes - DOCUMENT ME!
Returns:
DOCUMENT ME!

setSelected

public boolean setSelected(NodeView[] node_views)
DOCUMENT ME!

Specified by:
setSelected in interface CyNetworkView
Parameters:
node_views - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(CyEdge edge)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
edge - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(EdgeView edge_view)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
edge_view - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(CyNode node)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
node - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(NodeView node_view)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
node_view - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(CyEdge edge,
                           VisualStyle style)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
edge - DOCUMENT ME!
style - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(EdgeView edge_view,
                           VisualStyle style)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
edge_view - DOCUMENT ME!
style - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(CyNode node,
                           VisualStyle style)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
node - DOCUMENT ME!
style - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizMap

public boolean applyVizMap(NodeView node_view,
                           VisualStyle style)
DOCUMENT ME!

Specified by:
applyVizMap in interface CyNetworkView
Parameters:
node_view - DOCUMENT ME!
style - DOCUMENT ME!
Returns:
DOCUMENT ME!

setSelected

public boolean setSelected(CyEdge[] edges)
DOCUMENT ME!

Specified by:
setSelected in interface CyNetworkView
Parameters:
edges - DOCUMENT ME!
Returns:
DOCUMENT ME!

setSelected

public boolean setSelected(EdgeView[] edge_views)
DOCUMENT ME!

Specified by:
setSelected in interface CyNetworkView
Parameters:
edge_views - DOCUMENT ME!
Returns:
DOCUMENT ME!

applyVizmapper

public void applyVizmapper(VisualStyle style)
DOCUMENT ME!

Specified by:
applyVizmapper in interface CyNetworkView
Parameters:
style - DOCUMENT ME!

applyLayout

public void applyLayout(CyLayoutAlgorithm layout)
DOCUMENT ME!

Specified by:
applyLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!

applyLockedLayout

public void applyLockedLayout(CyLayoutAlgorithm layout,
                              CyNode[] nodes,
                              CyEdge[] edges)
DOCUMENT ME!

Specified by:
applyLockedLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

applyLayout

public void applyLayout(CyLayoutAlgorithm layout,
                        CyNode[] nodes,
                        CyEdge[] edges)
DOCUMENT ME!

Specified by:
applyLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

getNodeViewsList

public List getNodeViewsList()
DOCUMENT ME!

Returns:
DOCUMENT ME!

applyLockedLayout

public void applyLockedLayout(CyLayoutAlgorithm layout,
                              CyNodeView[] nodes,
                              CyEdgeView[] edges)
DOCUMENT ME!

Specified by:
applyLockedLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

applyLayout

public void applyLayout(CyLayoutAlgorithm layout,
                        CyNodeView[] nodes,
                        CyEdgeView[] edges)
DOCUMENT ME!

Specified by:
applyLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

applyLockedLayout

public void applyLockedLayout(CyLayoutAlgorithm layout,
                              int[] nodes,
                              int[] edges)
DOCUMENT ME!

Specified by:
applyLockedLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

applyLayout

public void applyLayout(CyLayoutAlgorithm layout,
                        int[] nodes,
                        int[] edges)
DOCUMENT ME!

Specified by:
applyLayout in interface CyNetworkView
Parameters:
layout - DOCUMENT ME!
nodes - DOCUMENT ME!
edges - DOCUMENT ME!

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.