|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.ui.vole.Component
jcontrol.ui.vole.meter.SevenSegmentMeter
public class SevenSegmentMeter
This class SevenSegmentMeter.class provides a seven-segment-based
lcd-style counter
with a variable number of digits. The digits of the SevenSegmentMeter
are freely scalable.
______________
| __ __ __ |
| |__||__||__| |
| |__||__||__| |
|______________|
(c) Copyright 2003-2005 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 | |
|---|---|
SevenSegmentMeter(int x,
int y,
int width,
int height,
int digits,
int decimals)
Creates a new SevenSegmentMeter. |
|
| Method Summary | |
|---|---|
void |
paint()
Repaints the SevenSegmentMeter. |
void |
setValue(int value)
Sets the value to display on the SevenSegmentMeter. |
boolean |
transferFocus()
The SevenSegmentMeter 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, notifyAll, wait |
| Constructor Detail |
|---|
public SevenSegmentMeter(int x,
int y,
int width,
int height,
int digits,
int decimals)
NOTE: The size of the seven-segment digits will depent on the number of desired digits and the size of the bounding box.
x - The x coordinate for the upper left of the bounding box.y - The y coordinate for the upper left of the bounding box.width - The width of the bounding box.height - The height of the bounding box.digits - The number of digits.| Method Detail |
|---|
public void paint()
paint in class Componentpublic void setValue(int value)
value - The value to display.public boolean transferFocus()
transferFocus in class Component
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||