|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ding.view.DGraphView
public class DGraphView
DING implementation of the GINY view. Explain relationship to cytoscape. Throughout this code I am assuming that nodes or edges are never removed from the underlying RootGraph. This assumption was made in the old GraphView implementation. Removal from the RootGraph is the only thing that can affect m_drawPersp and m_structPersp that is beyond our control.
Nested Class Summary | |
---|---|
static class |
DGraphView.Canvas
Enum to identify ding canvases - used in getCanvas(Canvas canvasId) |
static class |
DGraphView.ShapeType
|
Field Summary |
---|
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
DGraphView(GraphPerspective perspective)
Creates a new DGraphView object. |
Method Summary | |
---|---|
void |
addContentChangeListener(ContentChangeListener l)
DOCUMENT ME! |
boolean |
addContextMethod(String className,
String methodClassName,
String methodName,
Object[] args,
ClassLoader loader)
DOCUMENT ME! |
void |
addEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
EdgeView |
addEdgeView(int edgeInx)
Adds EdgeView to the GraphView. |
EdgeView |
addEdgeView(String className,
int edgeInx)
Will thrown an UnsupportedOperationException. |
void |
addGraphViewChangeListener(GraphViewChangeListener l)
Add GraphViewChangeListener to linked list of GraphViewChangeListeners. |
void |
addNodeContextMenuListener(NodeContextMenuListener l)
DOCUMENT ME! |
NodeView |
addNodeView(int nodeInx)
Adds a NodeView object to the GraphView. |
NodeView |
addNodeView(int nodeInx,
NodeView replacement)
Will thrown an UnsupportedOperationException. |
NodeView |
addNodeView(String className,
int nodeInx)
Will thrown an UnsupportedOperationException. |
void |
addViewportChangeListener(ViewportChangeListener l)
DOCUMENT ME! |
Image |
createImage(int width,
int height,
double shrink)
Method to return a reference to an Image object, which represents the current network view. |
void |
disableEdgeSelection()
Disables the ability to select edges. |
void |
disableNodeSelection()
Disables the ability to select nodes. |
void |
drawSnapshot(Image img,
cytoscape.render.stateful.GraphLOD lod,
Paint bgPaint,
double xCenter,
double yCenter,
double scaleFactor)
DOCUMENT ME! |
int |
edgeCount()
DOCUMENT ME! |
boolean |
edgeSelectionEnabled()
Whether edge selection is enabled. |
void |
enableEdgeSelection()
Enables the ability to select edges. |
void |
enableNodeSelection()
Enabling the ability to select nodes. |
void |
fitContent()
DOCUMENT ME! |
void |
fitSelected()
DOCUMENT ME! |
Object[] |
getAllEdgePropertyData(int edgeInx)
DOCUMENT ME! |
Object[] |
getAllNodePropertyData(int nodeInx)
DOCUMENT ME! |
Paint |
getAnchorSelectedPaint()
DOCUMENT ME! |
float |
getAnchorSize()
DOCUMENT ME! |
Paint |
getAnchorUnselectedPaint()
DOCUMENT ME! |
static Map<Integer,Shape> |
getArrowShapes()
DOCUMENT ME! |
Paint |
getBackgroundPaint()
Returns the background color on the canvas. |
InnerCanvas |
getCanvas()
Method to return a reference to the network canvas. |
DingCanvas |
getCanvas(DGraphView.Canvas canvasId)
Method to return a reference to a DingCanvas object, given a canvas id. |
Point2D |
getCenter()
DOCUMENT ME! |
Component |
getComponent()
Returns the InnerCanvas object. |
Object[] |
getContextMethods(String className,
boolean plusSuperclass)
DOCUMENT ME! |
Object[] |
getContextMethods(String className,
Object[] methods)
DOCUMENT ME! |
boolean |
getEdgeBooleanProperty(int edgeInx,
int property)
DOCUMENT ME! |
double |
getEdgeDoubleProperty(int edgeInx,
int property)
DOCUMENT ME! |
float |
getEdgeFloatProperty(int edgeInx,
int property)
DOCUMENT ME! |
int |
getEdgeIntProperty(int edgeInx,
int property)
DOCUMENT ME! |
Object |
getEdgeObjectProperty(int edgeInx,
int property)
DOCUMENT ME! |
EdgeView |
getEdgeView(Edge edge)
DOCUMENT ME! |
EdgeView |
getEdgeView(int edgeInx)
DOCUMENT ME! |
int |
getEdgeViewCount()
DOCUMENT ME! |
Iterator |
getEdgeViewsIterator()
DOCUMENT ME! |
List |
getEdgeViewsList()
DOCUMENT ME! |
List |
getEdgeViewsList(int oneNodeInx,
int otherNodeInx,
boolean includeUndirected)
DOCUMENT ME! |
List |
getEdgeViewsList(Node oneNode,
Node otherNode)
DOCUMENT ME! |
boolean |
getExtents(double[] extentsBuff)
Extents of the nodes. |
cytoscape.render.stateful.GraphLOD |
getGraphLOD()
DOCUMENT ME! |
GraphPerspective |
getGraphPerspective()
Returns the graph model that this view was created for. |
String |
getIdentifier()
DOCUMENT ME! |
boolean |
getNodeBooleanProperty(int nodeInx,
int property)
DOCUMENT ME! |
double |
getNodeDoubleProperty(int nodeInx,
int property)
DOCUMENT ME! |
float |
getNodeFloatProperty(int nodeInx,
int property)
DOCUMENT ME! |
int |
getNodeIntProperty(int nodeInx,
int property)
DOCUMENT ME! |
Object |
getNodeObjectProperty(int nodeInx,
int property)
DOCUMENT ME! |
static Map<Integer,Shape> |
getNodeShapes()
This is inefficient, but there is no way to sync. giny type and renderer type. |
void |
getNodesIntersectingRectangle(double xMinimum,
double yMinimum,
double xMaximum,
double yMaximum,
boolean treatNodeShapesAsRectangle,
IntStack returnVal)
Efficiently computes the set of nodes intersecting an axis-aligned query rectangle; the query rectangle is specified in the node coordinate system, not the component coordinate system. |
NodeView |
getNodeView(int nodeInx)
DOCUMENT ME! |
NodeView |
getNodeView(Node node)
DOCUMENT ME! |
int |
getNodeViewCount()
DOCUMENT ME! |
Iterator |
getNodeViewsIterator()
DOCUMENT ME! |
EdgeView |
getPickedEdgeView(Point2D pt)
DOCUMENT ME! |
NodeView |
getPickedNodeView(Point2D pt)
utility that returns the nodeView that is located at input point |
RootGraph |
getRootGraph()
DOCUMENT ME! |
int[] |
getSelectedEdgeIndices()
Returns an array of selected edge indices. |
List |
getSelectedEdges()
Returns a list of selected edge objects. |
int[] |
getSelectedNodeIndices()
Returns an array of selected node indices. |
List |
getSelectedNodes()
Returns a list of selected node objects. |
double |
getZoom()
DOCUMENT ME! |
boolean |
hideGraphObject(Object obj)
DOCUMENT ME! |
boolean |
hideGraphObjects(List objects)
DOCUMENT ME! |
int |
nodeCount()
DOCUMENT ME! |
boolean |
nodeSelectionEnabled()
Whether node selection is enabled. |
int |
print(Graphics g,
PageFormat pageFormat,
int page)
DOCUMENT ME! |
void |
queryDrawnEdges(int xMin,
int yMin,
int xMax,
int yMax,
IntStack returnVal)
DOCUMENT ME! |
void |
removeContentChangeListener(ContentChangeListener l)
DOCUMENT ME! |
void |
removeEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
EdgeView |
removeEdgeView(Edge edge)
Removes an EdgeView based on an Edge. |
EdgeView |
removeEdgeView(EdgeView edgeView)
Removes an EdgeView based on an EdgeView. |
EdgeView |
removeEdgeView(int edgeInx)
Removes an EdgeView based on an EdgeIndex. |
void |
removeGraphViewChangeListener(GraphViewChangeListener l)
Remove GraphViewChangeListener from linked list of GraphViewChangeListeners. |
void |
removeNodeContextMenuListener(NodeContextMenuListener l)
DOCUMENT ME! |
NodeView |
removeNodeView(int nodeInx)
Removes a NodeView based on a specified index. |
NodeView |
removeNodeView(Node node)
Removes a NodeView based on specified Node. |
NodeView |
removeNodeView(NodeView nodeView)
Removes a NodeView based on specified NodeView. |
void |
removeViewportChangeListener(ViewportChangeListener l)
DOCUMENT ME! |
void |
setAllEdgePropertyData(int edgeInx,
Object[] data)
DOCUMENT ME! |
void |
setAllNodePropertyData(int nodeInx,
Object[] data)
DOCUMENT ME! |
void |
setBackgroundPaint(Paint paint)
Sets the background color on the canvas. |
void |
setCenter(double x,
double y)
DOCUMENT ME! |
boolean |
setEdgeBooleanProperty(int edgeInx,
int property,
boolean val)
DOCUMENT ME! |
boolean |
setEdgeDoubleProperty(int edgeInx,
int property,
double val)
DOCUMENT ME! |
boolean |
setEdgeFloatProperty(int edgeInx,
int property,
float value)
DOCUMENT ME! |
boolean |
setEdgeIntProperty(int edgeInx,
int property,
int value)
DOCUMENT ME! |
boolean |
setEdgeObjectProperty(int edgeInx,
int property,
Object value)
DOCUMENT ME! |
void |
setGraphLOD(cytoscape.render.stateful.GraphLOD lod)
DOCUMENT ME! |
void |
setIdentifier(String id)
DOCUMENT ME! |
boolean |
setNodeBooleanProperty(int nodeInx,
int property,
boolean val)
DOCUMENT ME! |
boolean |
setNodeDoubleProperty(int nodeInx,
int property,
double val)
DOCUMENT ME! |
boolean |
setNodeFloatProperty(int nodeInx,
int property,
float value)
DOCUMENT ME! |
boolean |
setNodeIntProperty(int nodeInx,
int property,
int value)
DOCUMENT ME! |
boolean |
setNodeObjectProperty(int nodeInx,
int property,
Object value)
DOCUMENT ME! |
void |
setPrintingTextAsShape(boolean textAsShape)
DOCUMENT ME! |
void |
setZoom(double zoom)
DOCUMENT ME! |
boolean |
showGraphObject(Object obj)
DOCUMENT ME! |
boolean |
showGraphObjects(List objects)
DOCUMENT ME! |
void |
updateView()
DOCUMENT ME! |
void |
xformComponentToNodeCoords(double[] coords)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DGraphView(GraphPerspective perspective)
perspective
- The graph model that we'll be creating a view for.Method Detail |
---|
public GraphPerspective getGraphPerspective()
getGraphPerspective
in interface GraphView
public boolean nodeSelectionEnabled()
nodeSelectionEnabled
in interface GraphView
public boolean edgeSelectionEnabled()
edgeSelectionEnabled
in interface GraphView
public void enableNodeSelection()
enableNodeSelection
in interface GraphView
public void disableNodeSelection()
disableNodeSelection
in interface GraphView
public void enableEdgeSelection()
enableEdgeSelection
in interface GraphView
public void disableEdgeSelection()
disableEdgeSelection
in interface GraphView
public int[] getSelectedNodeIndices()
getSelectedNodeIndices
in interface GraphView
public List getSelectedNodes()
getSelectedNodes
in interface GraphView
public int[] getSelectedEdgeIndices()
getSelectedEdgeIndices
in interface GraphView
public List getSelectedEdges()
getSelectedEdges
in interface GraphView
public void addGraphViewChangeListener(GraphViewChangeListener l)
addGraphViewChangeListener
in interface GraphView
l
- GraphViewChangeListener to be added to the list.public void removeGraphViewChangeListener(GraphViewChangeListener l)
removeGraphViewChangeListener
in interface GraphView
l
- GraphViewChangeListener to be removed from the list.public void setBackgroundPaint(Paint paint)
setBackgroundPaint
in interface GraphView
paint
- The Paint (color) to apply to the background.public Paint getBackgroundPaint()
getBackgroundPaint
in interface GraphView
public Component getComponent()
getComponent
in interface GraphView
public NodeView addNodeView(int nodeInx)
addNodeView
in interface GraphView
nodeInx
- The index of the NodeView object to be added.
public EdgeView addEdgeView(int edgeInx)
addEdgeView
in interface GraphView
edgeInx
- The index of EdgeView to be added.
public EdgeView addEdgeView(String className, int edgeInx)
addEdgeView
in interface GraphView
className
- ???edgeInx
- ???
public NodeView addNodeView(String className, int nodeInx)
addNodeView
in interface GraphView
className
- ???nodeInx
- ???
public NodeView addNodeView(int nodeInx, NodeView replacement)
addNodeView
in interface GraphView
nodeInx
- ??replacement
- ??
public NodeView removeNodeView(NodeView nodeView)
removeNodeView
in interface GraphView
nodeView
- The NodeView object to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public NodeView removeNodeView(Node node)
removeNodeView
in interface GraphView
node
- The Node object connected to the NodeView to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public NodeView removeNodeView(int nodeInx)
removeNodeView
in interface GraphView
nodeInx
- The index of the NodeView to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public EdgeView removeEdgeView(EdgeView edgeView)
removeEdgeView
in interface GraphView
edgeView
- The EdgeView to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public EdgeView removeEdgeView(Edge edge)
removeEdgeView
in interface GraphView
edge
- The Edge of the EdgeView to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public EdgeView removeEdgeView(int edgeInx)
removeEdgeView
in interface GraphView
edgeInx
- The edge index of the EdgeView to be removed.
as that method simply stops showing the node/edge. This method
will destroy the object. It will be returned though, so that a reference can be kept
for undo purposes.
public String getIdentifier()
getIdentifier
in interface GraphView
public void setIdentifier(String id)
setIdentifier
in interface GraphView
id
- DOCUMENT ME!public double getZoom()
getZoom
in interface GraphView
public void setZoom(double zoom)
setZoom
in interface GraphView
zoom
- DOCUMENT ME!public void fitContent()
fitContent
in interface GraphView
public void updateView()
updateView
in interface GraphView
public RootGraph getRootGraph()
getRootGraph
in interface GraphView
public Iterator getNodeViewsIterator()
getNodeViewsIterator
in interface GraphView
public int getNodeViewCount()
getNodeViewCount
in interface GraphView
public int getEdgeViewCount()
getEdgeViewCount
in interface GraphView
public NodeView getNodeView(Node node)
getNodeView
in interface GraphView
node
- DOCUMENT ME!
public NodeView getNodeView(int nodeInx)
getNodeView
in interface GraphView
nodeInx
- DOCUMENT ME!
public List getEdgeViewsList()
getEdgeViewsList
in interface GraphView
public List getEdgeViewsList(Node oneNode, Node otherNode)
getEdgeViewsList
in interface GraphView
oneNode
- DOCUMENT ME!otherNode
- DOCUMENT ME!
public List getEdgeViewsList(int oneNodeInx, int otherNodeInx, boolean includeUndirected)
getEdgeViewsList
in interface GraphView
oneNodeInx
- DOCUMENT ME!otherNodeInx
- DOCUMENT ME!includeUndirected
- DOCUMENT ME!
public EdgeView getEdgeView(int edgeInx)
getEdgeView
in interface GraphView
edgeInx
- DOCUMENT ME!
public Iterator getEdgeViewsIterator()
getEdgeViewsIterator
in interface GraphView
public EdgeView getEdgeView(Edge edge)
getEdgeView
in interface GraphView
edge
- DOCUMENT ME!
public int edgeCount()
edgeCount
in interface GraphView
public int nodeCount()
nodeCount
in interface GraphView
public boolean hideGraphObject(Object obj)
hideGraphObject
in interface GraphView
obj
- DOCUMENT ME!
public boolean showGraphObject(Object obj)
showGraphObject
in interface GraphView
obj
- DOCUMENT ME!
public boolean hideGraphObjects(List objects)
hideGraphObjects
in interface GraphView
objects
- DOCUMENT ME!
public boolean showGraphObjects(List objects)
showGraphObjects
in interface GraphView
objects
- DOCUMENT ME!
public Object[] getContextMethods(String className, boolean plusSuperclass)
getContextMethods
in interface GraphView
className
- DOCUMENT ME!plusSuperclass
- DOCUMENT ME!
public Object[] getContextMethods(String className, Object[] methods)
getContextMethods
in interface GraphView
className
- DOCUMENT ME!methods
- DOCUMENT ME!
public boolean addContextMethod(String className, String methodClassName, String methodName, Object[] args, ClassLoader loader)
addContextMethod
in interface GraphView
className
- DOCUMENT ME!methodClassName
- DOCUMENT ME!methodName
- DOCUMENT ME!args
- DOCUMENT ME!loader
- DOCUMENT ME!
public void setAllNodePropertyData(int nodeInx, Object[] data)
setAllNodePropertyData
in interface GraphView
nodeInx
- DOCUMENT ME!data
- DOCUMENT ME!public Object[] getAllNodePropertyData(int nodeInx)
getAllNodePropertyData
in interface GraphView
nodeInx
- DOCUMENT ME!
public void setAllEdgePropertyData(int edgeInx, Object[] data)
setAllEdgePropertyData
in interface GraphView
edgeInx
- DOCUMENT ME!data
- DOCUMENT ME!public Object[] getAllEdgePropertyData(int edgeInx)
getAllEdgePropertyData
in interface GraphView
edgeInx
- DOCUMENT ME!
public Object getNodeObjectProperty(int nodeInx, int property)
getNodeObjectProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setNodeObjectProperty(int nodeInx, int property, Object value)
setNodeObjectProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public Object getEdgeObjectProperty(int edgeInx, int property)
getEdgeObjectProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setEdgeObjectProperty(int edgeInx, int property, Object value)
setEdgeObjectProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public double getNodeDoubleProperty(int nodeInx, int property)
getNodeDoubleProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setNodeDoubleProperty(int nodeInx, int property, double val)
setNodeDoubleProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!val
- DOCUMENT ME!
public double getEdgeDoubleProperty(int edgeInx, int property)
getEdgeDoubleProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setEdgeDoubleProperty(int edgeInx, int property, double val)
setEdgeDoubleProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!val
- DOCUMENT ME!
public float getNodeFloatProperty(int nodeInx, int property)
getNodeFloatProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setNodeFloatProperty(int nodeInx, int property, float value)
setNodeFloatProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public float getEdgeFloatProperty(int edgeInx, int property)
getEdgeFloatProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setEdgeFloatProperty(int edgeInx, int property, float value)
setEdgeFloatProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public boolean getNodeBooleanProperty(int nodeInx, int property)
getNodeBooleanProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setNodeBooleanProperty(int nodeInx, int property, boolean val)
setNodeBooleanProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!val
- DOCUMENT ME!
public boolean getEdgeBooleanProperty(int edgeInx, int property)
getEdgeBooleanProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setEdgeBooleanProperty(int edgeInx, int property, boolean val)
setEdgeBooleanProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!val
- DOCUMENT ME!
public int getNodeIntProperty(int nodeInx, int property)
getNodeIntProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setNodeIntProperty(int nodeInx, int property, int value)
setNodeIntProperty
in interface GraphView
nodeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public int getEdgeIntProperty(int edgeInx, int property)
getEdgeIntProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!
public boolean setEdgeIntProperty(int edgeInx, int property, int value)
setEdgeIntProperty
in interface GraphView
edgeInx
- DOCUMENT ME!property
- DOCUMENT ME!value
- DOCUMENT ME!
public void setCenter(double x, double y)
x
- DOCUMENT ME!y
- DOCUMENT ME!public Point2D getCenter()
public void fitSelected()
public void setGraphLOD(cytoscape.render.stateful.GraphLOD lod)
lod
- DOCUMENT ME!public cytoscape.render.stateful.GraphLOD getGraphLOD()
public void setPrintingTextAsShape(boolean textAsShape)
textAsShape
- DOCUMENT ME!public void getNodesIntersectingRectangle(double xMinimum, double yMinimum, double xMaximum, double yMaximum, boolean treatNodeShapesAsRectangle, IntStack returnVal)
NOTE: The order of elements placed on the stack follows the rendering order of nodes; the element waiting to be popped off the stack is the node that is rendered last, and thus is "on top of" other nodes potentially beneath it.
HINT: To perform a point query simply set xMin equal to xMax and yMin equal to yMax.
xMinimum
- a boundary of the query rectangle: the minimum X coordinate.yMinimum
- a boundary of the query rectangle: the minimum Y coordinate.xMaximum
- a boundary of the query rectangle: the maximum X coordinate.yMaximum
- a boundary of the query rectangle: the maximum Y coordinate.treatNodeShapesAsRectangle
- if true, nodes are treated as rectangles for purposes of the
query computation; if false, true node shapes are respected,
at the expense of slowing down the query by a constant factor.returnVal
- RootGraph indices of nodes intersecting the query rectangle
will be placed onto this stack; the stack is not emptied by
this method initially.public void queryDrawnEdges(int xMin, int yMin, int xMax, int yMax, IntStack returnVal)
xMin
- DOCUMENT ME!yMin
- DOCUMENT ME!xMax
- DOCUMENT ME!yMax
- DOCUMENT ME!returnVal
- DOCUMENT ME!public boolean getExtents(double[] extentsBuff)
public void xformComponentToNodeCoords(double[] coords)
coords
- DOCUMENT ME!public void drawSnapshot(Image img, cytoscape.render.stateful.GraphLOD lod, Paint bgPaint, double xCenter, double yCenter, double scaleFactor)
img
- DOCUMENT ME!lod
- DOCUMENT ME!bgPaint
- DOCUMENT ME!xCenter
- DOCUMENT ME!yCenter
- DOCUMENT ME!scaleFactor
- DOCUMENT ME!public void addContentChangeListener(ContentChangeListener l)
l
- DOCUMENT ME!public void removeContentChangeListener(ContentChangeListener l)
l
- DOCUMENT ME!public void addViewportChangeListener(ViewportChangeListener l)
l
- DOCUMENT ME!public void removeViewportChangeListener(ViewportChangeListener l)
l
- DOCUMENT ME!public int print(Graphics g, PageFormat pageFormat, int page)
print
in interface Printable
g
- DOCUMENT ME!pageFormat
- DOCUMENT ME!page
- DOCUMENT ME!
public InnerCanvas getCanvas()
public DingCanvas getCanvas(DGraphView.Canvas canvasId)
canvasId
- Canvas
public Image createImage(int width, int height, double shrink)
width
- Width of desired image.height
- Height of desired image.shrink
- Percent to shrink the network shown in the image.
This doesn't shrink the image, just the network shown, as if the user zoomed out.
Can be between 0 and 1, if not it will default to 1.
IllegalArgumentException
public NodeView getPickedNodeView(Point2D pt)
pt
- public EdgeView getPickedEdgeView(Point2D pt)
pt
- DOCUMENT ME!
public void addNodeContextMenuListener(NodeContextMenuListener l)
l
- DOCUMENT ME!public void removeNodeContextMenuListener(NodeContextMenuListener l)
l
- DOCUMENT ME!public void addEdgeContextMenuListener(EdgeContextMenuListener l)
l
- DOCUMENT ME!public void removeEdgeContextMenuListener(EdgeContextMenuListener l)
l
- DOCUMENT ME!public final float getAnchorSize()
public final Paint getAnchorSelectedPaint()
public final Paint getAnchorUnselectedPaint()
public static Map<Integer,Shape> getNodeShapes()
public static Map<Integer,Shape> getArrowShapes()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |