|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphView
Field Summary | |
---|---|
static int |
EDGE_LINE_TYPE
|
static int |
EDGE_PAINT
|
static int |
EDGE_SELECTION_PAINT
|
static int |
EDGE_SOURCE_END_PAINT
|
static int |
EDGE_SOURCE_END_SELECTED_PAINT
|
static int |
EDGE_SOURCE_END_TYPE
|
static int |
EDGE_TARGET_END_PAINT
|
static int |
EDGE_TARGET_END_SELECTED_PAINT
|
static int |
EDGE_TARGET_END_TYPE
|
static int |
EDGE_WIDTH
|
static int |
NODE_BORDER_PAINT
|
static int |
NODE_BORDER_WIDTH
|
static int |
NODE_HEIGHT
|
static int |
NODE_LABEL
|
static int |
NODE_PAINT
|
static int |
NODE_SELECTION_PAINT
|
static int |
NODE_SHAPE
|
static int |
NODE_WIDTH
|
static int |
NODE_X_POSITION
|
static int |
NODE_Y_POSITION
|
static int |
NODE_Z_POSITION
|
static int |
SOURCE_INDEX
|
static int |
TARGET_INDEX
|
Method Summary | |
---|---|
boolean |
addContextMethod(String class_name,
String method_class_name,
String method_name,
Object[] args,
ClassLoader loader)
Context Menu Support |
EdgeView |
addEdgeView(int edge_index)
|
EdgeView |
addEdgeView(String class_name,
int edge_index)
To facilitate adding Custome EdgeViews It is recomended that All Custom Edge Views follow the patterns outlined in PEdgeView and BasicPEdgeView. |
void |
addGraphViewChangeListener(GraphViewChangeListener listener)
Adds a new GraphViewChangeListener to this GraphViews list of listeners. |
NodeView |
addNodeView(int node_index)
|
NodeView |
addNodeView(int node_index,
NodeView node_view_replacement)
Add in a NodeView for a Node in the GraphPerspective. |
NodeView |
addNodeView(String class_name,
int node_index)
To facilitate adding Custome NodeViews It is recomended that All Custom Node Views follow the patterns outlined in PNodeView and BasicPNodeView. |
void |
disableEdgeSelection()
|
void |
disableNodeSelection()
|
int |
edgeCount()
|
boolean |
edgeSelectionEnabled()
|
void |
enableEdgeSelection()
|
void |
enableNodeSelection()
|
void |
fitContent()
Fits all Viewable elements onto the Graph |
Object[] |
getAllEdgePropertyData(int edge_index)
|
Object[] |
getAllNodePropertyData(int node_index)
|
Paint |
getBackgroundPaint()
|
Component |
getComponent()
|
Object[] |
getContextMethods(String class_name,
boolean plus_superclass)
Context Menu Support |
Object[] |
getContextMethods(String class_name,
Object[] methods)
Context Menu Support |
boolean |
getEdgeBooleanProperty(int edge_index,
int property)
|
double |
getEdgeDoubleProperty(int edge_index,
int property)
|
float |
getEdgeFloatProperty(int edge_index,
int property)
|
int |
getEdgeIntProperty(int edge_index,
int property)
|
Object |
getEdgeObjectProperty(int edge_index,
int property)
Return the stored value for the edge for the given property |
EdgeView |
getEdgeView(Edge edge)
|
EdgeView |
getEdgeView(int edge_index)
|
int |
getEdgeViewCount()
|
Iterator |
getEdgeViewsIterator()
Return all of the EdgeViews in this GraphView |
List |
getEdgeViewsList()
Return all of the EdgeViews in this GraphView |
List |
getEdgeViewsList(int from_node_index,
int to_node_index,
boolean include_undirected_edges)
|
List |
getEdgeViewsList(Node oneNode,
Node otherNode)
Note that this will return a list of Edge objects, the other one will return indices |
GraphPerspective |
getGraphPerspective()
|
String |
getIdentifier()
|
boolean |
getNodeBooleanProperty(int node_index,
int property)
|
double |
getNodeDoubleProperty(int node_index,
int property)
|
float |
getNodeFloatProperty(int node_index,
int property)
|
int |
getNodeIntProperty(int node_index,
int property)
|
Object |
getNodeObjectProperty(int node_index,
int property)
Return the stored value for the node for the given property |
NodeView |
getNodeView(int index)
|
NodeView |
getNodeView(Node node)
|
int |
getNodeViewCount()
|
Iterator |
getNodeViewsIterator()
nodeViewsIterator only returns the NodeViews that are explicitly associated with this GraphView |
RootGraph |
getRootGraph()
|
int[] |
getSelectedEdgeIndices()
|
List |
getSelectedEdges()
|
int[] |
getSelectedNodeIndices()
|
List |
getSelectedNodes()
|
double |
getZoom()
|
boolean |
hideGraphObject(Object object)
use this to hide a node or edge |
boolean |
hideGraphObjects(List objects)
Warning!!!!!!! Only to be used for homogenous groups!!!! |
int |
nodeCount()
|
boolean |
nodeSelectionEnabled()
|
EdgeView |
removeEdgeView(Edge edge)
This will entirely remove a NodeView/EdgeView from the GraphView. |
EdgeView |
removeEdgeView(EdgeView edge_view)
This will entirely remove a NodeView/EdgeView from the GraphView. |
EdgeView |
removeEdgeView(int edge)
This will entirely remove a NodeView/EdgeView from the GraphView. |
void |
removeGraphViewChangeListener(GraphViewChangeListener listener)
Removes a GraphViewChangeListener from this GraphViews list of listeners. |
NodeView |
removeNodeView(int node)
This will entirely remove a NodeView/EdgeView from the GraphView. |
NodeView |
removeNodeView(Node node)
This will entirely remove a NodeView/EdgeView from the GraphView. |
NodeView |
removeNodeView(NodeView node_view)
This will entirely remove a NodeView/EdgeView from the GraphView. |
void |
setAllEdgePropertyData(int edge_index,
Object[] data)
Set All Data For an Edge Big Bold Faced Warning Talk to rowan before using. |
void |
setAllNodePropertyData(int node_index,
Object[] data)
Set All Data For a NOde Big Bold Faced Warning Talk to rowan before using. |
void |
setBackgroundPaint(Paint paint)
|
boolean |
setEdgeBooleanProperty(int edge_index,
int property,
boolean value)
|
boolean |
setEdgeDoubleProperty(int edge_index,
int property,
double value)
|
boolean |
setEdgeFloatProperty(int edge_index,
int property,
float value)
|
boolean |
setEdgeIntProperty(int edge_index,
int property,
int value)
|
boolean |
setEdgeObjectProperty(int edge_index,
int property,
Object value)
|
void |
setIdentifier(String new_identifier)
|
boolean |
setNodeBooleanProperty(int node_index,
int property,
boolean value)
|
boolean |
setNodeDoubleProperty(int node_index,
int property,
double value)
|
boolean |
setNodeFloatProperty(int node_index,
int property,
float value)
|
boolean |
setNodeIntProperty(int node_index,
int property,
int value)
|
boolean |
setNodeObjectProperty(int node_index,
int property,
Object value)
|
void |
setZoom(double zoom)
|
boolean |
showGraphObject(Object object)
use this to show a node or edge |
boolean |
showGraphObjects(List objects)
Warning!!!!!!! Only to be used for homogenous groups!!!! |
void |
updateView()
Do a global redraw of the entire canvas |
Field Detail |
---|
static final int NODE_X_POSITION
static final int NODE_Y_POSITION
static final int NODE_SHAPE
static final int NODE_PAINT
static final int NODE_SELECTION_PAINT
static final int NODE_BORDER_PAINT
static final int NODE_BORDER_WIDTH
static final int NODE_WIDTH
static final int NODE_HEIGHT
static final int NODE_LABEL
static final int NODE_Z_POSITION
static final int SOURCE_INDEX
static final int TARGET_INDEX
static final int EDGE_WIDTH
static final int EDGE_LINE_TYPE
static final int EDGE_PAINT
static final int EDGE_SELECTION_PAINT
static final int EDGE_SOURCE_END_TYPE
static final int EDGE_SOURCE_END_PAINT
static final int EDGE_SOURCE_END_SELECTED_PAINT
static final int EDGE_TARGET_END_TYPE
static final int EDGE_TARGET_END_PAINT
static final int EDGE_TARGET_END_SELECTED_PAINT
Method Detail |
---|
GraphPerspective getGraphPerspective()
boolean nodeSelectionEnabled()
boolean edgeSelectionEnabled()
void enableNodeSelection()
void disableNodeSelection()
void enableEdgeSelection()
void disableEdgeSelection()
int[] getSelectedNodeIndices()
List getSelectedNodes()
int[] getSelectedEdgeIndices()
List getSelectedEdges()
void addGraphViewChangeListener(GraphViewChangeListener listener)
void removeGraphViewChangeListener(GraphViewChangeListener listener)
void setBackgroundPaint(Paint paint)
paint
- the new Paint for the backgroundPaint getBackgroundPaint()
Component getComponent()
NodeView addNodeView(int node_index)
node_index
- the index of a node to have a view created for it
EdgeView addEdgeView(int edge_index)
edge_index
- the index of an edge
EdgeView addEdgeView(String class_name, int edge_index)
class_name
- the name of the class that implements EdgeView and esnted PEdgeedge_index
- the index of the edgeNodeView addNodeView(String class_name, int node_index)
class_name
- the name of the class that implements NodeView and esnted PNodenode_index
- the index of the nodeNodeView addNodeView(int node_index, NodeView node_view_replacement)
NodeView removeNodeView(NodeView node_view)
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.
NodeView removeNodeView(Node node)
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.
NodeView removeNodeView(int node)
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.
EdgeView removeEdgeView(EdgeView edge_view)
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.
EdgeView removeEdgeView(Edge edge)
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.
EdgeView removeEdgeView(int edge)
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.
String getIdentifier()
void setIdentifier(String new_identifier)
new_identifier
- The New Identifier for this GraphViewdouble getZoom()
void setZoom(double zoom)
zoom
- The New ZoomLevelvoid fitContent()
void updateView()
RootGraph getRootGraph()
Iterator getNodeViewsIterator()
int getNodeViewCount()
int getEdgeViewCount()
NodeView getNodeView(Node node)
node
- The Node whose view is requested
NodeView getNodeView(int index)
index
- the index of the node whose view is requested
List getEdgeViewsList()
List getEdgeViewsList(Node oneNode, Node otherNode)
List getEdgeViewsList(int from_node_index, int to_node_index, boolean include_undirected_edges)
EdgeView getEdgeView(int edge_index)
Iterator getEdgeViewsIterator()
EdgeView getEdgeView(Edge edge)
int edgeCount()
int nodeCount()
boolean hideGraphObject(Object object)
boolean showGraphObject(Object object)
boolean hideGraphObjects(List objects)
boolean showGraphObjects(List objects)
Object[] getContextMethods(String class_name, boolean plus_superclass)
Object[] getContextMethods(String class_name, Object[] methods)
boolean addContextMethod(String class_name, String method_class_name, String method_name, Object[] args, ClassLoader loader)
void setAllNodePropertyData(int node_index, Object[] data)
Object[] getAllNodePropertyData(int node_index)
void setAllEdgePropertyData(int edge_index, Object[] data)
Object[] getAllEdgePropertyData(int edge_index)
Object getNodeObjectProperty(int node_index, int property)
node_index
- The Node Index to be queriedproperty
- the property to be accessedboolean setNodeObjectProperty(int node_index, int property, Object value)
node_index
- The Node Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyObject getEdgeObjectProperty(int edge_index, int property)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedboolean setEdgeObjectProperty(int edge_index, int property, Object value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertydouble getNodeDoubleProperty(int node_index, int property)
node_index
- The Node Index to be queriedproperty
- the property to be accessedboolean setNodeDoubleProperty(int node_index, int property, double value)
node_index
- The Node Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertydouble getEdgeDoubleProperty(int edge_index, int property)
boolean setEdgeDoubleProperty(int edge_index, int property, double value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyfloat getNodeFloatProperty(int node_index, int property)
boolean setNodeFloatProperty(int node_index, int property, float value)
node_index
- The Node Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyfloat getEdgeFloatProperty(int edge_index, int property)
boolean setEdgeFloatProperty(int edge_index, int property, float value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyboolean getNodeBooleanProperty(int node_index, int property)
boolean setNodeBooleanProperty(int node_index, int property, boolean value)
node_index
- The Node Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyboolean getEdgeBooleanProperty(int edge_index, int property)
boolean setEdgeBooleanProperty(int edge_index, int property, boolean value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyint getNodeIntProperty(int node_index, int property)
boolean setNodeIntProperty(int node_index, int property, int value)
node_index
- The Node Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertyint getEdgeIntProperty(int edge_index, int property)
boolean setEdgeIntProperty(int edge_index, int property, int value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this property
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |