jcontrol.ui.vole.meter
Class SevenSegment

java.lang.Object
  |
  +--jcontrol.ui.vole.Component
        |
        +--jcontrol.ui.vole.meter.SevenSegment

public class SevenSegment
extends Component

The class SevenSegment provides a graphical seven-segment display.

(C) DOMOLOGIC Home Automation GmbH 2003

Author:
Marcus Timmermann, Wolfgang Klingauf, Andreas Wesseler

Field Summary
 
Fields inherited from class jcontrol.ui.vole.Component
focusOwner, font, g, height, listener, parent, visible, width, x, y
 
Constructor Summary
SevenSegment(int x, int y, int digits)
          Constructs a new SevenSegment display.
 
Method Summary
 void paint()
          Redraw the SevenSegment.
 void setValue(int value)
          Set the value to show.
 boolean transferFocus()
          We never gain the input focus.
 
Methods inherited from class jcontrol.ui.vole.Component
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setLocation, setParent, setVisible, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, notifyAll, wait
 

Constructor Detail

SevenSegment

public SevenSegment(int x,
                    int y,
                    int digits)
Constructs a new SevenSegment display.

Parameters:
x - the x coordinate of the SevenSegment's upper left
y - the y coordinate of the SevenSegment's upper left
digits - the number of digits to show.
Method Detail

paint

public void paint()
Redraw the SevenSegment.

Overrides:
paint in class Component

setValue

public void setValue(int value)
Set the value to show.


transferFocus

public boolean transferFocus()
We never gain the input focus.

Overrides:
transferFocus in class Component
Returns:
true, if the focus was transferred successfully.