|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.conversation.AbleCpGraphViewer
This provides graphical display of a CpStateMachine.
Shows a single state machine's graph in its own frame. It supports highlighting of the conversation's current state and a popup window showing details of selected states & transitions. States may be dragged around on the screen. The graph's layout (i.e., positions of states) can be read from or written to file.
Typical usage:
| Constructor Summary | |
|---|---|
AbleCpGraphViewer(java.lang.String frameName)
Constructor for AbleCpGraphViewer. |
|
AbleCpGraphViewer(java.lang.String frameName,
java.lang.String viewerName)
Constructor for AbleCpGraphViewer. |
|
| Method Summary | |
|---|---|
protected void |
changeCurrentState(java.lang.String oldValue,
java.lang.String newValue)
|
void |
fixDisplay()
This tweaks the graph's display in misc ways. |
AbleCpGraphLoader |
getCPGraphLoader()
Returns the associated graph loader object. |
javax.swing.JFrame |
getFrame()
Returns the bounding frame. |
java.awt.Graphics |
getGraphics()
Returns the graphics object associated with the canvas. |
javax.swing.JComponent |
getGraphPane()
Returns the Swing component on which the graph is displayed. |
java.awt.Point |
getLocation()
Returns the location where the viewer is set to be displayed. |
java.lang.String |
getName()
Returns the name of the frame. |
boolean |
isVisible()
Returns true if the frame displaying the CP is visible, false if not. |
void |
loadFrame()
Displays the (state-machine) graph object on a frame and displays the menu. |
void |
loadFromLayout(java.io.File f)
Loads the layout from the file represented by the file object. |
void |
loadGraph(AbleCpGraphLoader graphLoader)
Loads the state-machine into the graph using a AbleCPGraphLoader. |
static void |
main(java.lang.String[] args)
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Listens to changes in the active state property of the CPH. |
void |
saveCurrentLayout(java.io.File f)
Saves the current layout into the file represented by the file object. |
void |
setLocation(java.awt.Point p)
Sets the location for displaying the viewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbleCpGraphViewer(java.lang.String frameName)
frameName - name to be assigned to the displaying frame
public AbleCpGraphViewer(java.lang.String frameName,
java.lang.String viewerName)
frameName - name to be assigned to the displaying frameviewerName - string identifier for the viewer| Method Detail |
public javax.swing.JFrame getFrame()
public java.awt.Graphics getGraphics()
public java.lang.String getName()
public void fixDisplay()
(1) Moves the graph over & down a bit
(2) Fixes size of the canvas.
public javax.swing.JComponent getGraphPane()
public void loadGraph(AbleCpGraphLoader graphLoader)
graphLoader - AbleCPGraphLoader object used to load the state-machinepublic AbleCpGraphLoader getCPGraphLoader()
public void saveCurrentLayout(java.io.File f)
f - the file object for storing the current layout.public void loadFromLayout(java.io.File f)
f - the file object for loading the layout from.public void loadFrame()
public boolean isVisible()
public void setLocation(java.awt.Point p)
p - the point to display the viewer atpublic java.awt.Point getLocation()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListener
protected void changeCurrentState(java.lang.String oldValue,
java.lang.String newValue)
public static void main(java.lang.String[] args)
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||