|
||||||||
| 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.FanMeter
public class FanMeter
This class FanMeterimplements a simple animation
representing a fan. This component can be used e.g. for system
monitoring applications.
(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 | |
|---|---|
FanMeter(int x,
int y)
Create a FanMeter with the specified label and coordinates. |
|
| Method Summary | |
|---|---|
void |
animate()
Animate the fan. |
void |
paint()
Paint the fan. |
void |
setCaption(String caption)
Sets a caption text which is displayed for the min and max values at the bottom of the analog meter. |
void |
setNumericDisplay(int digits,
int decimals,
String unit)
Sets the parameters of the numeric value display. |
void |
setValue(int value)
Sets the fans value. |
boolean |
transferFocus()
Fan can't gain 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 FanMeter(int x,
int y)
label - x - y - | Method Detail |
|---|
public void animate()
animate in interface Animateablepublic void paint()
paint in class Componentpublic void setCaption(String caption)
captionMin - Text to display at the left bottom bordercaptionMax - Text to display at the right bottom border
public void setNumericDisplay(int digits,
int decimals,
String unit)
decimals - The number of decimals behind the comma ("-1" turns the display off).unit - A String representing the unit of the meter value.public void setValue(int value)
value - The valuepublic boolean transferFocus()
transferFocus in class Component
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||