|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(java.lang.String class_name,
java.lang.String method_class_name,
java.lang.String method_name,
java.lang.Object[] args,
java.lang.ClassLoader loader)
Context Menu Support |
EdgeView |
addEdgeView(int edge_index)
|
EdgeView |
addEdgeView(java.lang.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(java.lang.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 |
java.lang.Object[] |
getAllEdgePropertyData(int edge_index)
|
java.lang.Object[] |
getAllNodePropertyData(int node_index)
|
java.awt.Paint |
getBackgroundPaint()
|
java.awt.Component |
getComponent()
|
java.lang.Object[] |
getContextMethods(java.lang.String class_name,
boolean plus_superclass)
Context Menu Support |
java.lang.Object[] |
getContextMethods(java.lang.String class_name,
java.lang.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)
|
java.lang.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()
|
java.util.Iterator |
getEdgeViewsIterator()
Return all of the EdgeViews in this GraphView |
java.util.List |
getEdgeViewsList()
Return all of the EdgeViews in this GraphView |
java.util.List |
getEdgeViewsList(int from_node_index,
int to_node_index,
boolean include_undirected_edges)
|
java.util.List |
getEdgeViewsList(Node oneNode,
Node otherNode)
Note that this will return a list of Edge objects, the other one will return indices |
GraphPerspective |
getGraphPerspective()
|
java.lang.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)
|
java.lang.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()
|
java.util.Iterator |
getNodeViewsIterator()
nodeViewsIterator only returns the NodeViews that are explicitly associated with this GraphView |
RootGraph |
getRootGraph()
|
int[] |
getSelectedEdgeIndices()
|
java.util.List |
getSelectedEdges()
|
int[] |
getSelectedNodeIndices()
|
java.util.List |
getSelectedNodes()
|
double |
getZoom()
|
boolean |
hideGraphObject(java.lang.Object object)
use this to hide a node or edge |
boolean |
hideGraphObjects(java.util.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,
java.lang.Object[] data)
Set All Data For an Edge Big Bold Faced Warning Talk to rowan before using. |
void |
setAllNodePropertyData(int node_index,
java.lang.Object[] data)
Set All Data For a NOde Big Bold Faced Warning Talk to rowan before using. |
void |
setBackgroundPaint(java.awt.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,
java.lang.Object value)
|
void |
setIdentifier(java.lang.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,
java.lang.Object value)
|
void |
setZoom(double zoom)
|
boolean |
showGraphObject(java.lang.Object object)
use this to show a node or edge |
boolean |
showGraphObjects(java.util.List objects)
Warning!!!!!!! Only to be used for homogenous groups!!!! |
void |
updateView()
Do a global redraw of the entire canvas |
Field Detail |
public static final int NODE_X_POSITION
public static final int NODE_Y_POSITION
public static final int NODE_SHAPE
public static final int NODE_PAINT
public static final int NODE_SELECTION_PAINT
public static final int NODE_BORDER_PAINT
public static final int NODE_BORDER_WIDTH
public static final int NODE_WIDTH
public static final int NODE_HEIGHT
public static final int NODE_LABEL
public static final int NODE_Z_POSITION
public static final int SOURCE_INDEX
public static final int TARGET_INDEX
public static final int EDGE_WIDTH
public static final int EDGE_LINE_TYPE
public static final int EDGE_PAINT
public static final int EDGE_SELECTION_PAINT
public static final int EDGE_SOURCE_END_TYPE
public static final int EDGE_SOURCE_END_PAINT
public static final int EDGE_SOURCE_END_SELECTED_PAINT
public static final int EDGE_TARGET_END_TYPE
public static final int EDGE_TARGET_END_PAINT
public static final int EDGE_TARGET_END_SELECTED_PAINT
Method Detail |
public GraphPerspective getGraphPerspective()
public boolean nodeSelectionEnabled()
public boolean edgeSelectionEnabled()
public void enableNodeSelection()
public void disableNodeSelection()
public void enableEdgeSelection()
public void disableEdgeSelection()
public int[] getSelectedNodeIndices()
public java.util.List getSelectedNodes()
public int[] getSelectedEdgeIndices()
public java.util.List getSelectedEdges()
public void addGraphViewChangeListener(GraphViewChangeListener listener)
public void removeGraphViewChangeListener(GraphViewChangeListener listener)
public void setBackgroundPaint(java.awt.Paint paint)
public java.awt.Paint getBackgroundPaint()
public java.awt.Component getComponent()
public NodeView addNodeView(int node_index)
node_index
- the index of a node to have a view created for it
public EdgeView addEdgeView(int edge_index)
edge_index
- the index of an edge
public EdgeView addEdgeView(java.lang.String class_name, int edge_index)
class_name
- the name of the class that implements EdgeView and esnted PEdgeedge_index
- the index of the edgepublic NodeView addNodeView(java.lang.String class_name, int node_index)
class_name
- the name of the class that implements NodeView and esnted PNodenode_index
- the index of the nodepublic NodeView addNodeView(int node_index, NodeView node_view_replacement)
public NodeView removeNodeView(NodeView node_view)
public NodeView removeNodeView(Node node)
public NodeView removeNodeView(int node)
public EdgeView removeEdgeView(EdgeView edge_view)
public EdgeView removeEdgeView(Edge edge)
public EdgeView removeEdgeView(int edge)
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String new_identifier)
new_identifier
- The New Identifier for this GraphViewpublic double getZoom()
public void setZoom(double zoom)
zoom
- The New ZoomLevelpublic void fitContent()
public void updateView()
public RootGraph getRootGraph()
public java.util.Iterator getNodeViewsIterator()
public int getNodeViewCount()
public int getEdgeViewCount()
public NodeView getNodeView(Node node)
node
- The Node whose view is requested
public NodeView getNodeView(int index)
index
- the index of the node whose view is requested
public java.util.List getEdgeViewsList()
public java.util.List getEdgeViewsList(Node oneNode, Node otherNode)
public java.util.List getEdgeViewsList(int from_node_index, int to_node_index, boolean include_undirected_edges)
public EdgeView getEdgeView(int edge_index)
public java.util.Iterator getEdgeViewsIterator()
public EdgeView getEdgeView(Edge edge)
public int edgeCount()
public int nodeCount()
public boolean hideGraphObject(java.lang.Object object)
public boolean showGraphObject(java.lang.Object object)
public boolean hideGraphObjects(java.util.List objects)
public boolean showGraphObjects(java.util.List objects)
public java.lang.Object[] getContextMethods(java.lang.String class_name, boolean plus_superclass)
public java.lang.Object[] getContextMethods(java.lang.String class_name, java.lang.Object[] methods)
public boolean addContextMethod(java.lang.String class_name, java.lang.String method_class_name, java.lang.String method_name, java.lang.Object[] args, java.lang.ClassLoader loader)
public void setAllNodePropertyData(int node_index, java.lang.Object[] data)
public java.lang.Object[] getAllNodePropertyData(int node_index)
public void setAllEdgePropertyData(int edge_index, java.lang.Object[] data)
public java.lang.Object[] getAllEdgePropertyData(int edge_index)
public java.lang.Object getNodeObjectProperty(int node_index, int property)
node_index
- The Node Index to be queriedproperty
- the property to be accessedpublic boolean setNodeObjectProperty(int node_index, int property, java.lang.Object value)
property
- the property to be accessedvalue
- the new value for this propertypublic java.lang.Object getEdgeObjectProperty(int edge_index, int property)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedpublic boolean setEdgeObjectProperty(int edge_index, int property, java.lang.Object value)
edge_index
- The Edge Index to be queriedproperty
- the property to be accessedvalue
- the new value for this propertypublic double getNodeDoubleProperty(int node_index, int property)
node_index
- The Node Index to be queriedproperty
- the property to be accessedpublic boolean 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 propertypublic double getEdgeDoubleProperty(int edge_index, int property)
public 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 propertypublic float getNodeFloatProperty(int node_index, int property)
public 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 propertypublic float getEdgeFloatProperty(int edge_index, int property)
public 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 propertypublic boolean getNodeBooleanProperty(int node_index, int property)
public 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 propertypublic boolean getEdgeBooleanProperty(int edge_index, int property)
public 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 propertypublic int getNodeIntProperty(int node_index, int property)
public 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 propertypublic int getEdgeIntProperty(int edge_index, int property)
public 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |