|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 | +--fdda.dialog.swing.MainFrame
This is the main window of fdda. It controls functions, presents menu bar, button bar and property editor.
Nested Class Summary | |
(package private) class |
MainFrame.MaximizeListener
Workaround for Java lack: no resize-Event is fired if a frame is maximized. |
(package private) class |
MainFrame.SystemFrameListener
Internal listener for changes of the windows. |
Field Summary | |
static int |
LAST_PROJECT
action at start: load the last used project |
static int |
NEW_PROJECT
action at start: open a new project |
static int |
NOTHING
action at start: do nothing |
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.Window |
|
Fields inherited from class java.awt.Container |
|
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 | |
MainFrame()
The constructor. |
Method Summary | |
void |
cascade()
cascades the windows |
void |
chooseAlgorithm()
Shows the algorithm selection dialog. |
void |
closeProject()
Closes the current project |
void |
deleteSelection()
Deletes the selected component(s). |
void |
help(int page)
Shows help pages. |
void |
newProject()
Creates a new project |
void |
openProject(String location)
Opens a project |
void |
pauseDemonstration()
Pauses or continues the demonstration. |
void |
performStartAction()
Performs the first action after starting the application. |
void |
quit()
Quits the application. |
void |
refreshMDI()
Repaints all windows |
void |
saveJPEG()
Saves current modelling window to a jpeg file |
void |
saveProject(boolean newName)
Saves the current project. |
void |
selectAll()
Selects all movable components |
void |
showGrid(boolean visible)
Sets the visibility of the grid. |
void |
showInfo()
Shows the about dialog |
void |
showObjectInspector(boolean visible)
Shows or hides the property editor |
void |
showOptionsDialog()
Shows the options dialog |
void |
showStatistics()
Shows the statistics dialog. |
void |
startDemonstration()
Starts the demonstration. |
void |
stopDemonstration()
Stops the demonstration. |
void |
tile()
tiles the windows |
void |
tryToolSwitch()
Tries to revert to the default tool. |
void |
useTool(int tool,
boolean sticky)
Selects a modelling tool |
void |
zoomIn()
Zooms in. |
void |
zoomOut()
Zooms out |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
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 |
Field Detail |
public static final int NOTHING
public static final int LAST_PROJECT
public static final int NEW_PROJECT
Constructor Detail |
public MainFrame()
Method Detail |
public void performStartAction()
public void refreshMDI()
public void newProject()
public void openProject(String location)
location
- the location of the projectpublic void saveProject(boolean newName)
newName
- whether 'save as' is requestedpublic void closeProject()
public void quit()
public void zoomIn()
public void zoomOut()
public void selectAll()
public void showObjectInspector(boolean visible)
visible
- whether it shall be shownpublic void useTool(int tool, boolean sticky)
tool
- the toolsticky
- whether the selection shall be 'sticky'public void tryToolSwitch()
public void deleteSelection()
public void chooseAlgorithm()
public void startDemonstration()
public void stopDemonstration()
public void pauseDemonstration()
public void showStatistics()
public void showGrid(boolean visible)
visible
- whether the grid shall be visiblepublic void showOptionsDialog()
public void showInfo()
public void tile()
public void cascade()
public void help(int page)
page
- code for the page to be shownpublic void saveJPEG()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |