java.lang.Object
jcurses.widgets.Widget
jcurses.widgets.Label
- public class Label
- extends Widget
This class implements a label widget
| Methods inherited from class jcurses.widgets.Widget |
focus, getAbsoluteX, getAbsoluteY, getColors, getFocus, getParent, getRectangle, getShortCutsList, getSize, getVisible, getWindow, getX, getY, handleInput, hasFocus, isFocusable, isVisible, paint, repaint, setColors, setFocus, setParent, setSize, setVisible, setWindow, setX, setY, unfocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_label
private java.lang.String _label
__labelDefaultColors
private static jcurses.system.CharColor __labelDefaultColors
Label
public Label(java.lang.String label,
jcurses.system.CharColor colors)
- The constructor
Label
public Label(java.lang.String label)
- The constructor
getDefaultColors
public jcurses.system.CharColor getDefaultColors()
- Overrides:
getDefaultColors in class Widget
getPreferredSize
protected jcurses.util.Rectangle getPreferredSize()
- Description copied from class:
Widget
- This method gives the widget container the infomation about the
preferred size of this widget. Must be implemented by derived classes.
- Specified by:
getPreferredSize in class Widget
doPaint
protected void doPaint()
- Description copied from class:
Widget
- This method paints the widget. Will be called by
paint(),
only if the widget is visible. Must be implemented be derived classes.
- Specified by:
doPaint in class Widget
doRepaint
protected void doRepaint()
- Description copied from class:
Widget
- This method repaints the widget. Will be called by
paint(),
only if the widget is visible. Must be implemented be derived classes.
- Specified by:
doRepaint in class Widget