|
||||||||||
| 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
weka.gui.Main
public class Main
Menu-based GUI for Weka, replacement for the GUIChooser. Valid options are:
-gui <MDI|SDI> Determines the layout of the GUI: MDI = MDI Layout SDI = SDI Layout (default: MDI)
| Nested Class Summary | |
|---|---|
static class |
Main.BackgroundDesktopPane
DesktopPane with background image. |
static class |
Main.ChildFrameMDI
Specialized JInternalFrame class. |
static class |
Main.ChildFrameSDI
Specialized JFrame class. |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static int |
GUI_MDI
displays the GUI as MDI. |
static int |
GUI_SDI
displays the GUI as SDI. |
static Tag[] |
TAGS_GUI
GUI tags. |
| Fields inherited from class javax.swing.JFrame |
|---|
EXIT_ON_CLOSE |
| 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 | |
|---|---|
Main()
default constructor. |
|
| Method Summary | |
|---|---|
void |
addChildFrame(Container c)
adds the given child frame to the list of frames. |
static void |
addStartupListener(StartUpListener s)
Add a listener to be notified when startup is complete. |
boolean |
containsWindow(Class windowClass)
checks, whether an instance of the given window class is already in the Window list. |
boolean |
containsWindow(String title)
checks, whether a window with the given title is already in the Window list. |
static void |
createSingleton(String[] args)
Create the singleton instance of the Main GUI. |
SelectedTag |
getGUIType()
Gets the currently set type of GUI to display. |
String[] |
getOptions()
returns the options of the current setup. |
static Main |
getSingleton()
Return the singleton instance of the Main GUI. |
Container |
getWindow(Class windowClass)
returns the first instance of the given window class, null if none can be found. |
Container |
getWindow(String title)
returns the first window with the given title, null if none can be found. |
Iterator |
getWindowList()
returns all currently open frames. |
Enumeration |
listOptions()
Gets an enumeration describing the available options. |
static void |
main(String[] args)
starts the application. |
void |
minimizeWindows()
minimizes all windows. |
boolean |
removeChildFrame(Container c)
tries to remove the child frame, it returns true if it could do such. |
void |
restoreWindows()
restores all windows. |
void |
setGUIType(SelectedTag value)
Sets the type of GUI to use. |
void |
setOptions(String[] options)
Parses the options for this object. |
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b. |
boolean |
showWindow(Class windowClass)
brings the first frame to the top that is of the specified window class. |
boolean |
showWindow(Container c)
brings child frame to the top. |
void |
windowListChanged()
is called when window list changed somehow (add or remove). |
| Methods inherited from class javax.swing.JFrame |
|---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final int GUI_MDI
public static final int GUI_SDI
public static final Tag[] TAGS_GUI
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public void addChildFrame(Container c)
c - the child frame to addpublic boolean removeChildFrame(Container c)
c - the child frame to remove
public boolean showWindow(Container c)
c - the frame to activate
public boolean showWindow(Class windowClass)
windowClass - the class to display the first child for
public Iterator getWindowList()
public Container getWindow(Class windowClass)
windowClass - the class to retrieve the first instance for
public Container getWindow(String title)
title - the title to look for
public boolean containsWindow(Class windowClass)
windowClass - the class to check for an instance in the current
window list
public boolean containsWindow(String title)
title - the title to check for in the current window list
public void minimizeWindows()
public void restoreWindows()
public void windowListChanged()
public void setVisible(boolean b)
setVisible in class Windowb - if true, shows this component; otherwise, hides this
componentpublic static void createSingleton(String[] args)
args - commandline optionspublic static Main getSingleton()
public static void addStartupListener(StartUpListener s)
s - a listener to addpublic Enumeration listOptions()
listOptions in interface OptionHandlerpublic String[] getOptions()
getOptions in interface OptionHandler
public void setOptions(String[] options)
throws Exception
-gui <MDI|SDI> Determines the layout of the GUI: MDI = MDI Layout SDI = SDI Layout (default: MDI)
setOptions in interface OptionHandleroptions - the options to use
Exception - if setting of options failspublic void setGUIType(SelectedTag value)
value - .the GUI typepublic SelectedTag getGUIType()
public static void main(String[] args)
args - the commandline arguments - ignored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||