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.


Constructor Index

 o PrintGraph(JeditPanel)
This constructor instantiates PrintGraph with newPanel as its target.

Method Index

 o actionPerformed(ActionEvent)
This method is used for internal event handling.
 o printGraph()
This method creates the "Graph Encoding" Frame.
 o readGraph(JavaGraph)
This method reads the new encoding in the "Graph Encoding" Frame and changes the target JeditPanel to conform to the new encoding.
 o toString()
This method returns a single string representation of the graph encoding.
 o windowActivated(WindowEvent)
This method is used for internal event handling.
 o windowClosed(WindowEvent)
This method is used for internal event handling.
 o windowClosing(WindowEvent)
This method is used for internal event handling.
 o windowDeactivated(WindowEvent)
This method is used for internal event handling.
 o windowDeiconified(WindowEvent)
This method is used for internal event handling.
 o windowIconified(WindowEvent)
This method is used for internal event handling.
 o windowOpened(WindowEvent)
This method is used for internal event handling.

Constructors

 o PrintGraph
 public PrintGraph(JeditPanel newPanel)
This constructor instantiates PrintGraph with newPanel as its target.

Methods

 o toString
 public String toString()
This method returns a single string representation of the graph encoding.

Overrides:
toString in class Object
 o 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.

 o 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.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
This method is used for internal event handling.

 o windowActivated
 public void windowActivated(WindowEvent e)
This method is used for internal event handling.

 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
This method is used for internal event handling.

 o windowOpened
 public void windowOpened(WindowEvent e)
This method is used for internal event handling.

 o windowIconified
 public void windowIconified(WindowEvent e)
This method is used for internal event handling.

 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
This method is used for internal event handling.

 o windowClosing
 public void windowClosing(WindowEvent e)
This method is used for internal event handling.

 o windowClosed
 public void windowClosed(WindowEvent e)
This method is used for internal event handling.