|
|||||||||
| 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.SevenSegment
The class SevenSegment provides a graphical seven-segment
display.
| 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 |
public SevenSegment(int x,
int y,
int digits)
x - the x coordinate of the SevenSegment's upper lefty - the y coordinate of the SevenSegment's upper leftdigits - the number of digits to show.| Method Detail |
public void paint()
paint in class Componentpublic void setValue(int value)
public boolean transferFocus()
transferFocus in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||