|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.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 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 | |
|---|---|
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(String label)
Sets the label String. |
void |
setMajorTick(boolean isMajorTick)
Set this label as a major tick. |
void |
setValue(double value)
Sets the value. |
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 String m_label
protected double m_value
| Constructor Detail |
|---|
public LabeledValue()
| Method Detail |
|---|
public String getLabel()
public double getValue()
public boolean isMajorTick()
AAxis.setMajorTickSpacing(double),
AAxis.setMinorTickSpacing(double)public void setLabel(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 String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||