|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.monitorenter.gui.chart.LabeledValue
public class LabeledValue
A double value along with it's label.
Very primitive class comparable to a c struct.
Field Summary | |
---|---|
protected boolean |
m_isMajorTick
The flag showing if this label is a major tick. |
protected java.lang.String |
m_label
The label. |
protected double |
m_value
The corresponding value scaled to a position between 0.0 and 1.0. |
Constructor Summary | |
---|---|
LabeledValue()
Internal defcon. |
Method Summary | |
---|---|
java.lang.String |
getLabel()
Returns the label String. |
double |
getValue()
Returns the value of this label which is scaled to lie between 0.0 and 1.0. |
boolean |
isMajorTick()
Returns true if this label is a major tick, false else. |
void |
setLabel(java.lang.String label)
Sets the label String. |
void |
setMajorTick(boolean isMajorTick)
Set this label as a major tick. |
void |
setValue(double value)
Sets the value. |
java.lang.String |
toString()
Returns the concatenation of the label string, ':' and the value's String representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean m_isMajorTick
protected java.lang.String m_label
protected double m_value
Constructor Detail |
---|
public LabeledValue()
Method Detail |
---|
public java.lang.String getLabel()
public double getValue()
public boolean isMajorTick()
AAxis.setMajorTickSpacing(double)
,
AAxis.setMinorTickSpacing(double)
public void setLabel(java.lang.String label)
label
- the label String.public void setMajorTick(boolean isMajorTick)
isMajorTick
- the major tick state to set.AAxis.setMajorTickSpacing(double)
,
AAxis.setMinorTickSpacing(double)
public final void setValue(double value)
value
- The value to set.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |