|
||||||||||
| 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.arffviewer.ArffViewer
public class ArffViewer
A little tool for viewing ARFF files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| 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 | |
|---|---|
ArffViewer()
initializes the object |
|
| Method Summary | |
|---|---|
boolean |
getConfirmExit()
returns the setting of whether to display a confirm messagebox or not on exit |
boolean |
getExitOnClose()
returns TRUE if a System.exit(0) is done on a close |
ArffViewerMainPanel |
getMainPanel()
returns the main panel |
static void |
main(String[] args)
shows the frame and it tries to load all the arff files that were provided as arguments. |
void |
refresh()
validates and repaints the frame |
void |
setCenteredLocation()
positions the window at the center of the screen |
void |
setConfirmExit(boolean confirm)
whether to present a MessageBox on Exit or not |
void |
setExitOnClose(boolean value)
whether to do a System.exit(0) on close |
String |
toString()
returns only the classname |
void |
windowActivated(WindowEvent e)
invoked when a window is activated |
void |
windowClosed(WindowEvent e)
invoked when a window is closed |
void |
windowClosing(WindowEvent e)
invoked when a window is in the process of closing |
void |
windowDeactivated(WindowEvent e)
invoked when a window is deactivated |
void |
windowDeiconified(WindowEvent e)
invoked when a window is deiconified |
void |
windowIconified(WindowEvent e)
invoked when a window is iconified |
void |
windowOpened(WindowEvent e)
invoked when a window is has been opened |
| 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 |
| Constructor Detail |
|---|
public ArffViewer()
| Method Detail |
|---|
public void setCenteredLocation()
public void setConfirmExit(boolean confirm)
confirm - whether a MessageBox pops up or not to confirm
exitpublic boolean getConfirmExit()
public void setExitOnClose(boolean value)
value - enables/disables the System.exit(0)public boolean getExitOnClose()
public ArffViewerMainPanel getMainPanel()
public void refresh()
public void windowActivated(WindowEvent e)
windowActivated in interface WindowListenere - the window eventpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenere - the window eventpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenere - the window eventpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenere - the window eventpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenere - the window eventpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenere - the window eventpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenere - the window eventpublic String toString()
toString in class Component
public static void main(String[] args)
throws Exception
args - the commandline parameters
Exception - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||