|
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.Objectding.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 GraphViewpublic boolean nodeSelectionEnabled()
nodeSelectionEnabled in interface GraphViewpublic boolean edgeSelectionEnabled()
edgeSelectionEnabled in interface GraphViewpublic void enableNodeSelection()
enableNodeSelection in interface GraphViewpublic void disableNodeSelection()
disableNodeSelection in interface GraphViewpublic void enableEdgeSelection()
enableEdgeSelection in interface GraphViewpublic void disableEdgeSelection()
disableEdgeSelection in interface GraphViewpublic int[] getSelectedNodeIndices()
getSelectedNodeIndices in interface GraphViewpublic List getSelectedNodes()
getSelectedNodes in interface GraphViewpublic int[] getSelectedEdgeIndices()
getSelectedEdgeIndices in interface GraphViewpublic List getSelectedEdges()
getSelectedEdges in interface GraphViewpublic void addGraphViewChangeListener(GraphViewChangeListener l)
addGraphViewChangeListener in interface GraphViewl - GraphViewChangeListener to be added to the list.public void removeGraphViewChangeListener(GraphViewChangeListener l)
removeGraphViewChangeListener in interface GraphViewl - GraphViewChangeListener to be removed from the list.public void setBackgroundPaint(Paint paint)
setBackgroundPaint in interface GraphViewpaint - The Paint (color) to apply to the background.public Paint getBackgroundPaint()
getBackgroundPaint in interface GraphViewpublic Component getComponent()
getComponent in interface GraphViewpublic NodeView addNodeView(int nodeInx)
addNodeView in interface GraphViewnodeInx - The index of the NodeView object to be added.
public EdgeView addEdgeView(int edgeInx)
addEdgeView in interface GraphViewedgeInx - The index of EdgeView to be added.
public EdgeView addEdgeView(String className,
int edgeInx)
addEdgeView in interface GraphViewclassName - ???edgeInx - ???
public NodeView addNodeView(String className,
int nodeInx)
addNodeView in interface GraphViewclassName - ???nodeInx - ???
public NodeView addNodeView(int nodeInx,
NodeView replacement)
addNodeView in interface GraphViewnodeInx - ??replacement - ??
public NodeView removeNodeView(NodeView nodeView)
removeNodeView in interface GraphViewnodeView - 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 GraphViewnode - 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 GraphViewnodeInx - 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 GraphViewedgeView - 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 GraphViewedge - 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 GraphViewedgeInx - 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 GraphViewpublic void setIdentifier(String id)
setIdentifier in interface GraphViewid - DOCUMENT ME!public double getZoom()
getZoom in interface GraphViewpublic void setZoom(double zoom)
setZoom in interface GraphViewzoom - DOCUMENT ME!public void fitContent()
fitContent in interface GraphViewpublic void updateView()
updateView in interface GraphViewpublic RootGraph getRootGraph()
getRootGraph in interface GraphViewpublic Iterator getNodeViewsIterator()
getNodeViewsIterator in interface GraphViewpublic int getNodeViewCount()
getNodeViewCount in interface GraphViewpublic int getEdgeViewCount()
getEdgeViewCount in interface GraphViewpublic NodeView getNodeView(Node node)
getNodeView in interface GraphViewnode - DOCUMENT ME!
public NodeView getNodeView(int nodeInx)
getNodeView in interface GraphViewnodeInx - DOCUMENT ME!
public List getEdgeViewsList()
getEdgeViewsList in interface GraphView
public List getEdgeViewsList(Node oneNode,
Node otherNode)
getEdgeViewsList in interface GraphViewoneNode - DOCUMENT ME!otherNode - DOCUMENT ME!
public List getEdgeViewsList(int oneNodeInx,
int otherNodeInx,
boolean includeUndirected)
getEdgeViewsList in interface GraphViewoneNodeInx - DOCUMENT ME!otherNodeInx - DOCUMENT ME!includeUndirected - DOCUMENT ME!
public EdgeView getEdgeView(int edgeInx)
getEdgeView in interface GraphViewedgeInx - DOCUMENT ME!
public Iterator getEdgeViewsIterator()
getEdgeViewsIterator in interface GraphViewpublic EdgeView getEdgeView(Edge edge)
getEdgeView in interface GraphViewedge - DOCUMENT ME!
public int edgeCount()
edgeCount in interface GraphViewpublic int nodeCount()
nodeCount in interface GraphViewpublic boolean hideGraphObject(Object obj)
hideGraphObject in interface GraphViewobj - DOCUMENT ME!
public boolean showGraphObject(Object obj)
showGraphObject in interface GraphViewobj - DOCUMENT ME!
public boolean hideGraphObjects(List objects)
hideGraphObjects in interface GraphViewobjects - DOCUMENT ME!
public boolean showGraphObjects(List objects)
showGraphObjects in interface GraphViewobjects - DOCUMENT ME!
public Object[] getContextMethods(String className,
boolean plusSuperclass)
getContextMethods in interface GraphViewclassName - DOCUMENT ME!plusSuperclass - DOCUMENT ME!
public Object[] getContextMethods(String className,
Object[] methods)
getContextMethods in interface GraphViewclassName - DOCUMENT ME!methods - DOCUMENT ME!
public boolean addContextMethod(String className,
String methodClassName,
String methodName,
Object[] args,
ClassLoader loader)
addContextMethod in interface GraphViewclassName - DOCUMENT ME!methodClassName - DOCUMENT ME!methodName - DOCUMENT ME!args - DOCUMENT ME!loader - DOCUMENT ME!
public void setAllNodePropertyData(int nodeInx,
Object[] data)
setAllNodePropertyData in interface GraphViewnodeInx - DOCUMENT ME!data - DOCUMENT ME!public Object[] getAllNodePropertyData(int nodeInx)
getAllNodePropertyData in interface GraphViewnodeInx - DOCUMENT ME!
public void setAllEdgePropertyData(int edgeInx,
Object[] data)
setAllEdgePropertyData in interface GraphViewedgeInx - DOCUMENT ME!data - DOCUMENT ME!public Object[] getAllEdgePropertyData(int edgeInx)
getAllEdgePropertyData in interface GraphViewedgeInx - DOCUMENT ME!
public Object getNodeObjectProperty(int nodeInx,
int property)
getNodeObjectProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setNodeObjectProperty(int nodeInx,
int property,
Object value)
setNodeObjectProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!value - DOCUMENT ME!
public Object getEdgeObjectProperty(int edgeInx,
int property)
getEdgeObjectProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setEdgeObjectProperty(int edgeInx,
int property,
Object value)
setEdgeObjectProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!value - DOCUMENT ME!
public double getNodeDoubleProperty(int nodeInx,
int property)
getNodeDoubleProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setNodeDoubleProperty(int nodeInx,
int property,
double val)
setNodeDoubleProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!val - DOCUMENT ME!
public double getEdgeDoubleProperty(int edgeInx,
int property)
getEdgeDoubleProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setEdgeDoubleProperty(int edgeInx,
int property,
double val)
setEdgeDoubleProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!val - DOCUMENT ME!
public float getNodeFloatProperty(int nodeInx,
int property)
getNodeFloatProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setNodeFloatProperty(int nodeInx,
int property,
float value)
setNodeFloatProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!value - DOCUMENT ME!
public float getEdgeFloatProperty(int edgeInx,
int property)
getEdgeFloatProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setEdgeFloatProperty(int edgeInx,
int property,
float value)
setEdgeFloatProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!value - DOCUMENT ME!
public boolean getNodeBooleanProperty(int nodeInx,
int property)
getNodeBooleanProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setNodeBooleanProperty(int nodeInx,
int property,
boolean val)
setNodeBooleanProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!val - DOCUMENT ME!
public boolean getEdgeBooleanProperty(int edgeInx,
int property)
getEdgeBooleanProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setEdgeBooleanProperty(int edgeInx,
int property,
boolean val)
setEdgeBooleanProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!val - DOCUMENT ME!
public int getNodeIntProperty(int nodeInx,
int property)
getNodeIntProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setNodeIntProperty(int nodeInx,
int property,
int value)
setNodeIntProperty in interface GraphViewnodeInx - DOCUMENT ME!property - DOCUMENT ME!value - DOCUMENT ME!
public int getEdgeIntProperty(int edgeInx,
int property)
getEdgeIntProperty in interface GraphViewedgeInx - DOCUMENT ME!property - DOCUMENT ME!
public boolean setEdgeIntProperty(int edgeInx,
int property,
int value)
setEdgeIntProperty in interface GraphViewedgeInx - 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 Printableg - 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.
IllegalArgumentExceptionpublic 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 | ||||||||