|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.components.gauger.ValueLabel
public class ValueLabel
/** Value label displays value of gauger in textual form.
| Constructor Summary | |
|---|---|
ValueLabel(Gauger gauger)
Constructor for ValueLabel. |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g)
Renders this component. |
java.awt.Rectangle |
getBounds()
Returns bounds of this label. |
java.lang.String |
getFormat()
Returns format used by this label. |
java.lang.String |
getUnits()
Returns units symbol to append to text. |
boolean |
isChangeSignificant()
Returns whether the change is signifficant. |
boolean |
isUnitsVisible()
Returns true if units are visible. |
void |
setFormat(java.lang.String newFormat)
Sets format for this label. |
void |
setPosition(int x,
int y)
Sets center position of this component. |
void |
setUnits(java.lang.String newUnits)
Sets units to append to text. |
void |
setUnitsVisible(boolean b)
Sets the units visibility. |
void |
setValue(double value)
Sets new value to display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueLabel(Gauger gauger)
gauger - Gauger on which this value will display.| Method Detail |
|---|
public java.awt.Rectangle getBounds()
public java.lang.String getFormat()
public java.lang.String getUnits()
public void setValue(double value)
value - New value to display.public boolean isChangeSignificant()
public void draw(java.awt.Graphics2D g)
g - Context to render to.
public void setPosition(int x,
int y)
x - coordinate of label center.y - coordinate of label center.public void setFormat(java.lang.String newFormat)
newFormat - C-Style format.setValue()public void setUnits(java.lang.String newUnits)
newUnits - Units symbol.setValue()public void setUnitsVisible(boolean b)
b - public boolean isUnitsVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||