| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--CSLib.ClosableFrame
|
+--CSLib.OutputBox
OutputBox is a closable frame that holds textual output.
It mimics Java's java.lang.System.out, which is
a java.io.PrintStream.
| Fields inherited from class java.awt.Frame |
DEFAULT_CURSOR, CROSSHAIR_CURSOR, TEXT_CURSOR, WAIT_CURSOR, SW_RESIZE_CURSOR, SE_RESIZE_CURSOR, NW_RESIZE_CURSOR, NE_RESIZE_CURSOR, N_RESIZE_CURSOR, S_RESIZE_CURSOR, W_RESIZE_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, NORMAL, ICONIFIED |
| Fields inherited from class java.awt.Component |
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT |
| Constructor Summary | |
OutputBox()Constructs an OutputBox with a default title. | |
OutputBox(String title)Constructs an OutputBox with a specific title. | |
| Method Summary | |
void | clear()Erases the text in the OutputBox. |
void | print(String text)Prints a string. |
void | print(int number)Prints an integer. |
void | print(float number)Prints a floating-point number. |
void | print(double number)Prints a double-precision floating-point number. |
void | print(boolean b)Prints a boolean value. |
void | print(char c)Prints a character. |
void | print(long number)Prints a long integer. |
void | print(StringBuffer strBuf)Prints a string buffer. |
void | println()Terminates the current line by writing a carriage return character followed by a newline character. |
void | println(String text)Prints a String and then terminates the line. |
void | println(int number)Prints an integer and then terminates the line. |
void | println(float number)Prints a float and then terminates the line. |
void | println(double number)Prints a double and then terminates the line. |
void | println(boolean b)Prints a boolean and then terminates the line. |
void | println(char c)Print a character and then terminate the line. |
void | println(long number)Prints a long and then terminates the line. |
void | println(StringBuffer strBuf)Prints a string buffer and then terminates the line. |
void | setFont(Font font)Changes the font for subsequent printing. |
| Methods inherited from class CSLib.ClosableFrame |
windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.awt.Frame |
addNotify, getTitle, setTitle, getIconImage, setIconImage, getMenuBar, setMenuBar, isResizable, setResizable, setState, getState, remove, removeNotify, setCursor, getCursorType, getFrames, getAccessibleContext |
| Methods inherited from class java.awt.Window |
pack, show, hide, dispose, toFront, toBack, getToolkit, getWarningString, getLocale, getInputContext, setCursor, getOwner, getOwnedWindows, addWindowListener, removeWindowListener, getListeners, getFocusOwner, postEvent, isShowing, applyResourceBundle, applyResourceBundle, getGraphicsConfiguration |
| Methods inherited from class java.awt.Container |
getComponentCount, countComponents, getComponent, getComponents, getInsets, insets, add, add, add, add, add, remove, remove, removeAll, getLayout, setLayout, doLayout, layout, invalidate, validate, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, update, print, paintComponents, printComponents, addContainerListener, removeContainerListener, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, isAncestorOf, list, list |
| Methods inherited from class java.awt.Component |
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getTreeLock, isValid, isDisplayable, isVisible, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, getForeground, setForeground, getBackground, setBackground, getFont, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, getGraphics, getFontMetrics, getCursor, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, dispatchEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, toString, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, setComponentOrientation, getComponentOrientation |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OutputBox()
public OutputBox(String title)
String to use as the title| Method Detail |
public void clear()
public void print(String text)
java.lang.System.out.print(String).String to be printedpublic void print(int number)
java.lang.System.out.print(int).int to be printedpublic void print(float number)
java.lang.System.out.print(float).float to be printedpublic void print(double number)
java.lang.System.out.print(double).double to be printedpublic void print(boolean b)
java.lang.System.out.print(boolean).boolean to be printedpublic void print(char c)
java.lang.System.out.print(char).char to be printedpublic void print(long number)
java.lang.System.out.print(long).long to be printedpublic void print(StringBuffer strBuf)
java.lang.System.out.print(StringBuffer).StringBuffer to be printedpublic void println()
public void println(String text)
print(String) and then println().String to be printed.public void println(int number)
print(int) and then
println().int to be printed.public void println(float number)
print(float) and then
println().float to be printed.public void println(double number)
print(double) and then
println().double to be printed.public void println(boolean b)
print(boolean) and then
println().boolean to be printedpublic void println(char c)
print(char) and then
println().char to be printed.public void println(long number)
print(long) and then
println().long to be printed.public void println(StringBuffer strBuf)
print(StringBuffer) and then
println().StringBuffer to be printedpublic void setFont(Font font)
Font to change to.| Association Links |
to Class java.awt.Font
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||