|
|||||||||
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.FanMeter
public class FanMeter
This class FanMeter
implements a simple animation
representing a fan. This component can be used e.g. for system
monitoring applications.
(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 | |
---|---|
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, getClass, notifyAll, toString, wait |
Constructor Detail |
---|
public FanMeter(int x, int y)
label
- x
- y
- Method Detail |
---|
public void setCaption(String caption)
captionMin
- Text to display at the left bottom bordercaptionMax
- Text to display at the right bottom borderpublic 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 void paint()
paint
in class Component
public boolean transferFocus()
transferFocus
in class Component
public void animate()
animate
in interface Animateable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |