Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jcurses.widgets
Class Label  view Label download Label.java

java.lang.Object
  extended byjcurses.widgets.Widget
      extended byjcurses.widgets.Label

public class Label
extends Widget

This class implements a label widget


Field Summary
private static jcurses.system.CharColor __labelDefaultColors
           
private  java.lang.String _label
           
 
Fields inherited from class jcurses.widgets.Widget
_parent, _window
 
Constructor Summary
Label(java.lang.String label)
          The constructor
Label(java.lang.String label, jcurses.system.CharColor colors)
          The constructor
 
Method Summary
protected  void doPaint()
          This method paints the widget.
protected  void doRepaint()
          This method repaints the widget.
 jcurses.system.CharColor getDefaultColors()
           
protected  jcurses.util.Rectangle getPreferredSize()
          This method gives the widget container the infomation about the preferred size of this 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
 

Field Detail

_label

private java.lang.String _label

__labelDefaultColors

private static jcurses.system.CharColor __labelDefaultColors
Constructor Detail

Label

public Label(java.lang.String label,
             jcurses.system.CharColor colors)
The constructor


Label

public Label(java.lang.String label)
The constructor

Method Detail

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