Class PrintGraph
java.lang.Object
|
+----PrintGraph
- public class PrintGraph
- extends Object
- implements ActionListener, WindowListener
PrintGraph.java
by Aaron Nall
Sun 07-05-1998
This class creates a textual encoding for a target
JeditPanel and
JavaGraph.
It can also accept a user-defined encoding and change it's
target to conform to the changes. This makes it possible
for users to save graphs by saving the encodings. Graphs
can then be reused by reusing the encoding.
-
PrintGraph(JeditPanel)
- This constructor instantiates PrintGraph with newPanel
as its target.
-
actionPerformed(ActionEvent)
- This method is used for internal event handling.
-
printGraph()
- This method creates the "Graph Encoding" Frame.
-
readGraph(JavaGraph)
- This method reads the new encoding in the "Graph
Encoding" Frame and changes the target JeditPanel
to conform to the new encoding.
-
toString()
- This method returns a single string representation of the
graph encoding.
-
windowActivated(WindowEvent)
- This method is used for internal event handling.
-
windowClosed(WindowEvent)
- This method is used for internal event handling.
-
windowClosing(WindowEvent)
- This method is used for internal event handling.
-
windowDeactivated(WindowEvent)
- This method is used for internal event handling.
-
windowDeiconified(WindowEvent)
- This method is used for internal event handling.
-
windowIconified(WindowEvent)
- This method is used for internal event handling.
-
windowOpened(WindowEvent)
- This method is used for internal event handling.
PrintGraph
public PrintGraph(JeditPanel newPanel)
- This constructor instantiates PrintGraph with newPanel
as its target.
toString
public String toString()
- This method returns a single string representation of the
graph encoding.
- Overrides:
- toString in class Object
printGraph
public void printGraph()
- This method creates the "Graph Encoding" Frame. The
user can make changes to the encoding in this frame to
effect the target JeditPanel.
readGraph
public void readGraph(JavaGraph graph)
- This method reads the new encoding in the "Graph
Encoding" Frame and changes the target JeditPanel
to conform to the new encoding.
actionPerformed
public void actionPerformed(ActionEvent e)
- This method is used for internal event handling.
windowActivated
public void windowActivated(WindowEvent e)
- This method is used for internal event handling.
windowDeactivated
public void windowDeactivated(WindowEvent e)
- This method is used for internal event handling.
windowOpened
public void windowOpened(WindowEvent e)
- This method is used for internal event handling.
windowIconified
public void windowIconified(WindowEvent e)
- This method is used for internal event handling.
windowDeiconified
public void windowDeiconified(WindowEvent e)
- This method is used for internal event handling.
windowClosing
public void windowClosing(WindowEvent e)
- This method is used for internal event handling.
windowClosed
public void windowClosed(WindowEvent e)
- This method is used for internal event handling.