|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
cz.cuni.jagrlib.gui.MainWindow
public class MainWindow
Main window of the SKEL application.
Nested Class Summary | |
---|---|
class |
MainWindow.JMenuItemFrame
|
protected static class |
MainWindow.RunningWorker
Class holding information about one running worker thread. |
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
JButton |
btLoad
|
protected Dimension |
buttonDimension
Size of toolbar-buttons. |
protected static int |
COUNTER_KILL
Number of mild tries (to stop MainWindow.RunningWorker ) before a hard one
will be performed. |
static MainWindow |
mainWindow
MainWindow singleton. |
protected Map<Thread,MainWindow.RunningWorker> |
running
Actual running worker threads. |
protected Dimension |
runningDimension
|
static StatusBar |
statusBar
Actual status-bar (docked or floating). |
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, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
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 | |
---|---|
MainWindow()
Default constructor - creates MainWindow. |
Method Summary | |
---|---|
void |
addFrame(JInternalFrame _f)
Adds new frame with composition. |
static void |
adjustScreenPosition(int[] pos)
Adjust origin of the new window according to the actual screen size. |
void |
miLoad_actionPerformed(ActionEvent e)
Loads composition to actual frame. |
void |
removeFrame(JInternalFrame _f)
Remove frame with composition. |
protected void |
removeRunning(MainWindow.RunningWorker w)
Must be called in synchronized section. |
void |
runningDec(Thread t)
Removes one running composition thread. |
void |
runningInc(Thread t,
Breakable br,
InfoGroup comp)
Adds new running composition thread. |
protected void |
setRunningText()
Changes text of the "Running:" button. |
void |
stopRunningWorkers()
Stops any running composition thread. |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static MainWindow mainWindow
public static StatusBar statusBar
protected Dimension buttonDimension
protected Dimension runningDimension
public JButton btLoad
protected static final int COUNTER_KILL
MainWindow.RunningWorker
) before a hard one
will be performed.
protected Map<Thread,MainWindow.RunningWorker> running
Constructor Detail |
---|
public MainWindow()
Method Detail |
---|
public static void adjustScreenPosition(int[] pos)
protected void setRunningText()
synchronized
section only.
public void runningInc(Thread t, Breakable br, InfoGroup comp)
protected void removeRunning(MainWindow.RunningWorker w)
synchronized
section.
public void runningDec(Thread t)
public void stopRunningWorkers()
public void addFrame(JInternalFrame _f)
_f
- Frame with composition.public void removeFrame(JInternalFrame _f)
_f
- Frame with composition.public void miLoad_actionPerformed(ActionEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |