|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.fenyo.gnetwatch.GUI.AwtGUI
public class AwtGUI
This class creates JFrame instances outside of SWT, to allow use of Java2D API.
| Field Summary | |
|---|---|
private Config |
config
|
private java.util.List<javax.swing.JFrame> |
frame_list
|
private static Log |
log
|
private java.lang.Thread |
repaint_thread
|
| Constructor Summary | |
|---|---|
AwtGUI(Config config)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
_createFrame(javax.swing.JFrame frame,
BasicComponent component)
Adds a component to a frame and displays the frame. |
void |
createAwtGUI()
Creates a thread that will repaint each frame regularly. |
javax.swing.JFrame |
createFrame(java.lang.String name,
BasicComponent component)
Adds a component to a frame and displays the frame. |
private void |
createRepaintThread()
Creates a thread that will repaint each frame regularly. |
void |
dropFrame(javax.swing.JFrame frame)
Removes an AWT frame. |
void |
end()
Terminates the repaint thread and closes any frame. |
void |
run()
Refreshes the frames regularly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Log log
private final Config config
private java.lang.Thread repaint_thread
private java.util.List<javax.swing.JFrame> frame_list
| Constructor Detail |
|---|
public AwtGUI(Config config)
config - configuration.| Method Detail |
|---|
public void dropFrame(javax.swing.JFrame frame)
frame - frame to remove.public void createAwtGUI()
none. - private void createRepaintThread()
none. -
private void _createFrame(javax.swing.JFrame frame,
BasicComponent component)
frame - frame.component - component to add.
public javax.swing.JFrame createFrame(java.lang.String name,
BasicComponent component)
throws java.lang.InterruptedException,
java.lang.reflect.InvocationTargetException
frame - frame.component - component to add.
java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionpublic void run()
run in interface java.lang.Runnablenone. -
public void end()
throws java.lang.InterruptedException
none. -
java.lang.InterruptedException - exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||