|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.conversation.AbleCpGraphLoader
This takes a CpStateMachine and constructs an equivalent com.ibm.graph.Net object.
Used by AbleCpGraphViewer.
Constructor Summary | |
---|---|
AbleCpGraphLoader(CpStateMachine machine)
AbleCPGraphLoader constructor. |
Method Summary | |
---|---|
com.ibm.graph.Vertex |
findVertex(java.lang.String name)
Returns the vertex for the given name |
CpStateMachine |
getStateMachine()
Returns the state-machine associated with the graph loader |
java.util.Hashtable |
getVertexTable()
Returns the internal vertex table |
void |
initDrawable(com.ibm.graph.Edge edge,
int idx)
Creates & adds a drawable appropriate to the edge |
boolean |
isLayoutDone()
Returns if the graph has been laid out. |
java.awt.Dimension |
loadFromLayout(java.io.File file)
Loads the graph layout (vertex co-ordinates) from the disc file. |
void |
loadGraph(com.ibm.graph.Net graph)
Typically the function that defines the main point of entry into the class. |
void |
saveCurrentLayout(java.io.File file,
java.awt.Dimension frameSize,
java.lang.String policyName)
Saves the current layout (vertex co-ordinates) into the specified file |
void |
tuneEdgeLayout(com.ibm.graph.Net graph)
Fiddle with edges' layout parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbleCpGraphLoader(CpStateMachine machine)
machine
- a state machine descriptionMethod Detail |
public com.ibm.graph.Vertex findVertex(java.lang.String name)
name
- the name of the vertex
public java.util.Hashtable getVertexTable()
public void initDrawable(com.ibm.graph.Edge edge, int idx)
edge
- the edge to be initialized
idx
- integer index that counts which of the source's out-edges this is.public boolean isLayoutDone()
public CpStateMachine getStateMachine()
public void loadGraph(com.ibm.graph.Net graph)
graph
- the graph to load the state machine intopublic void tuneEdgeLayout(com.ibm.graph.Net graph)
graph
- the graph object that needd its edges to be tunedpublic java.awt.Dimension loadFromLayout(java.io.File file)
file
- the file object for the GLF (Graph Layout Format) file
public void saveCurrentLayout(java.io.File file, java.awt.Dimension frameSize, java.lang.String policyName)
file
- the file object for storing the layout
frameSize
- the size of the frame for displaying the saved layout. the frame
size is also stored into the file
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |