|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--GraphFrame
A frame to view animations of algorithms. Uses AnimationPanel's to produce the different algorithms.
AnimationPanel, Serialized Form| Inner classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
| Inner classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
| Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
| Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Window |
inputContext, OPENED, ownedWindowList, state, warningString, windowListener |
| Fields inherited from class java.awt.Container |
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
GraphFrame(URL codeBase,
String[] dataFiles)
Construct a new GraphFrame with the specified code base and data files. |
|
| Method Summary | |
void |
addAlgorithm(String prob,
String algname,
AnimationPanel panel,
String hfile,
boolean circles,
boolean dottedL)
Adds the specified algorithm to this GraphFrame. |
void |
Start()
This method must be called after all of the algorithms have been added to this GraphFrame. |
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Constructor Detail |
public GraphFrame(URL codeBase,
String[] dataFiles)
codebase - The URL for the directory where the algorithm files, help files,
and data files are located.dataFiles - An array of the names of the dataFiles.| Method Detail |
public void addAlgorithm(String prob,
String algname,
AnimationPanel panel,
String hfile,
boolean circles,
boolean dottedL)
Start method after all algorithms have been added.
Algorithms with the same prob argument will be in the
same sub menu.prob - The name of the problem that this algorithm implements.algname - The name of this algorithm.panel - The Animation panel for this algorithm.hfile - The name of the help file for this algorithm.circles - Boolean specifying whether this algorithm uses the
visualization of circles.dottedL - Boolean specifying whether this algorithm uses the
visualization of dotted lines.Visualizationpublic void Start()
addAlgorithm(java.lang.String, java.lang.String, AnimationPanel, java.lang.String, boolean, boolean)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||