|
||||||||||
| 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.LogWindow
public class LogWindow
Frame that shows the output from stdout and stderr.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static Color |
COLOR_STDERR
the Color of the style for stderr |
static Color |
COLOR_STDOUT
the color of the style for stdout |
static boolean |
DEBUG
whether we're debugging - enables output on stdout |
boolean |
m_UseWordwrap
whether the JTextPane has wordwrap or not |
static String |
STYLE_STDERR
the name of the style for stderr |
static String |
STYLE_STDOUT
the name of the style for stdout |
| 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 | |
|---|---|
LogWindow()
creates the frame |
|
| Method Summary | |
|---|---|
void |
caretUpdate(CaretEvent e)
Called when the caret position is updated. |
void |
clear()
clears the output |
void |
close()
closes the frame |
static void |
main(String[] args)
for testing only |
void |
setWordwrap(boolean wrap)
toggles the wordwrap override wordwrap from: http://forum.java.sun.com/thread.jspa?threadID=498535&messageID=2356174 |
void |
stateChanged(ChangeEvent e)
Invoked when the target of the listener has changed its state. |
void |
trim()
trims the JTextPane, if too big |
| 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 String STYLE_STDOUT
public static final String STYLE_STDERR
public static final Color COLOR_STDOUT
public static final Color COLOR_STDERR
public static final boolean DEBUG
public boolean m_UseWordwrap
| Constructor Detail |
|---|
public LogWindow()
| Method Detail |
|---|
public void clear()
public void close()
public void trim()
public void setWordwrap(boolean wrap)
public void caretUpdate(CaretEvent e)
caretUpdate in interface CaretListenerpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||