|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.vole.Component jcontrol.ui.vole.meter.DigitalMeter
public class DigitalMeter
The class DigitalMeter
draws decimal values with
a specified font and a specified number of digits.
Several display parameters are user controllable.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Field Summary |
---|
Fields inherited from class jcontrol.ui.vole.Component |
---|
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
---|---|
DigitalMeter(int x,
int y,
int digits,
int decimals)
Creates a new DigitalMeter at the specified
x- and y-coordinates. |
Method Summary | |
---|---|
void |
paint()
Draws the digital meter outline and value. |
void |
setValue(int value)
Sets the value to display on the LCDMeter. |
boolean |
transferFocus()
DigitalMeter never gains the input focus. |
Methods inherited from class jcontrol.ui.vole.Component |
---|
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setParent, setVisible, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Constructor Detail |
---|
public DigitalMeter(int x, int y, int digits, int decimals)
DigitalMeter
at the specified
x- and y-coordinates. The font used for writing the current
meter value can be set by using the method setFont
.
The width and height of the DigitalMeter
are
calculated automatically and depend on the used font and the
number of digits.
x
- The x-coordinate for the upper left of the bounding box.y
- The y-coordinate for the upper left of the bounding box.digits
- The number of digits.Method Detail |
---|
public void setValue(int value)
value
- The value to show.public void paint()
paint
in class Component
public boolean transferFocus()
transferFocus
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |