|
|||||||||
| 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.BarMeter
This class implements a bar graph, used for analog output in equalizers etc.
(C) DOMOLOGIC Home Automation GmbH 2003
| Field Summary | |
(package private) boolean |
border
|
static int |
FILL_LINE
Line style |
static int |
FILL_SOLID
Solid style |
static boolean |
HORIZONTAL
Horizontal bar graph |
(package private) int |
max
|
(package private) int |
min
|
(package private) boolean |
orientation
|
(package private) int |
style
|
(package private) int |
value
|
static boolean |
VERTICAL
Vertical bar graph |
| Fields inherited from class jcontrol.ui.vole.Component |
focusOwner, font, g, height, listener, parent, visible, width, x, y |
| Constructor Summary | |
BarMeter(int min,
int max,
int x,
int y,
int width,
int height,
boolean orientation,
boolean border)
Constructs a new bar graph. |
|
| Method Summary | |
void |
paint()
Repaints the BarMeter. |
void |
setBorder(boolean border)
Toggle whether a border is painted around the bar meter. |
void |
setInscription(java.lang.String min,
java.lang.String max)
Sets an inscription text which is displayed for the min and max value. |
void |
setStyle(int style)
Set the fill style of this BarMeter. |
void |
setValue(int value)
Sets the bar graph value. |
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 |
| Field Detail |
boolean border
public static final int FILL_LINE
public static final int FILL_SOLID
public static final boolean HORIZONTAL
int max
int min
boolean orientation
int style
int value
public static final boolean VERTICAL
| Constructor Detail |
public BarMeter(int min,
int max,
int x,
int y,
int width,
int height,
boolean orientation,
boolean border)
x - The upper left x-coordinate.y - The upper left y-coordinate.width - The width.height - The height.orientation - VERTICAL or HORIZONZTAL.min - The minimum value the BarMeter will be able to show.max - The maximum value the BarMeter will be able to show.border - When true, a border is painted around the BarMeter.| Method Detail |
public void paint()
paint in class Componentpublic void setBorder(boolean border)
border - When true, a border is painted around the BarMeter.
public void setInscription(java.lang.String min,
java.lang.String max)
min - Text to display at the right bottom (vertical bar meter)
or at the left bottom (horizontal bar meter).max - Text to display at the right top (vertical bar meter)
or at the right bottom (horizontal bar meter).public void setStyle(int style)
BarMeter.
style - FILL_LINE or FILL_SOLID.public void setValue(int value)
value - The new valuepublic boolean transferFocus()
transferFocus in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||