gishur.awt
Class SymbolbarLabel

java.lang.Object
  |
  +--gishur.awt.SymbolbarElement
        |
        +--gishur.awt.SymbolbarLabel
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Direct Known Subclasses:
SymbolSpinCombo, SymbolSpinNumCombo

public class SymbolbarLabel
extends SymbolbarElement


Field Summary
 java.awt.Color back_color
          The background color.
 int border_hspace
          Horizontal space between box and border.
 int border_vspace
          Vertical space between box and border.
 java.awt.Font font
          Used Font.
 boolean leftaligned
          If true, text will be left aligned.
 java.awt.Color text_color
          The text color.
 int text_space
          The space between the border and the text.
 
Fields inherited from class gishur.awt.SymbolbarElement
_needs_repaint, command, label, width
 
Constructor Summary
SymbolbarLabel(java.lang.String text, java.lang.String label, int width, boolean leftaligned)
          Constructor.
SymbolbarLabel(java.lang.String text, java.lang.String label, java.lang.String command, int width, boolean leftaligned)
          Constructor.
 
Method Summary
 void setText(java.lang.String text)
           
 java.lang.String text()
           
 void update(java.awt.Graphics g, int height)
          Zeichnet das Element neu.
 
Methods inherited from class gishur.awt.SymbolbarElement
active, disable, enable, enabled, getCommand, getLabel, getParent, getPreferredHeight, getSize, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setActive, setCommand, setLabel, setParent, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leftaligned

public boolean leftaligned
If true, text will be left aligned.

font

public java.awt.Font font
Used Font.

text_color

public java.awt.Color text_color
The text color.

back_color

public java.awt.Color back_color
The background color.

text_space

public int text_space
The space between the border and the text.

border_hspace

public int border_hspace
Horizontal space between box and border.

border_vspace

public int border_vspace
Vertical space between box and border.
Constructor Detail

SymbolbarLabel

public SymbolbarLabel(java.lang.String text,
                      java.lang.String label,
                      int width,
                      boolean leftaligned)
Constructor.

SymbolbarLabel

public SymbolbarLabel(java.lang.String text,
                      java.lang.String label,
                      java.lang.String command,
                      int width,
                      boolean leftaligned)
Constructor.
Method Detail

update

public void update(java.awt.Graphics g,
                   int height)
Zeichnet das Element neu.
Overrides:
update in class SymbolbarElement
Parameters:
g - Graphics, auf das gezeichnet werden soll.
height - Höhe des zu zeichnenden Bereiches.

setText

public void setText(java.lang.String text)

text

public java.lang.String text()