All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.JCValueLabel
java.lang.Object
|
+----jclass.chart.JCValueLabel
- public class JCValueLabel
- extends Object
- implements JCSerializable
A JCValueLabel is an association between
a floating-point axis value and a ChartText.
JCValueLabels are used to implement the
VALUE_LABELS annotation method, in
which axis labels are determined by the
axis values the user indicates should be
labelled.
Properties
Name |
Method |
Value
|
The Value property controls the position of a label in
data space along a particular axis. The default value is 0.0.
|
Text
|
The Text property
controls the text displayed inside the title. The default value is " " (empty string).
|
-
JCValueLabel()
- Default constructor required for beans
-
JCValueLabel(double, String)
- Internal constructor that creates a value label given a value
and a string.
-
JCValueLabel(double, String, boolean)
- A smart constructor that creates a ChartText from a generic object.
-
getChartText()
- Retrieves the ChartText associated with this JCValueLabel
-
getText()
- Gets the value of the Text property.
-
getValue()
- Gets the value of the Value property.
-
setText(String)
- Sets the value of the Text property.
-
setValue(double)
- Sets the value of the Value property.
-
toString()
-
JCValueLabel
public JCValueLabel()
- Default constructor required for beans
JCValueLabel
public JCValueLabel(double val,
String lbl,
boolean jcstring)
- A smart constructor that creates a ChartText from a generic object.
- Parameters:
- val - floating-point axis value
- lbl - string to use as the value label
- jcstring - if true, the string is a JCString
- See Also:
- ChartText
JCValueLabel
public JCValueLabel(double val,
String lbl)
- Internal constructor that creates a value label given a value
and a string.
- Parameters:
- val - floating-point axis value
- lbl - string to use as the value label
getChartText
public ChartText getChartText()
- Retrieves the ChartText associated with this JCValueLabel
- Returns:
- ChartText instance
getValue
public double getValue()
- Gets the value of the Value property.
The Value property controls the position of a label in
data space along a particular axis.
- Returns:
- data-space value.
setValue
public void setValue(double nv)
- Sets the value of the Value property.
The Value property controls the position of a label in
data space along a particular axis.
- Parameters:
- nv - data-space value
getText
public String getText()
- Gets the value of the Text property.
The Text property
controls the text displayed inside the title.
- Returns:
- String representing the text inside the label. Could
be an unparsed JCString.
setText
public void setText(String t)
- Sets the value of the Text property.
The Text property
controls the text displayed inside the title.
- Parameters:
- t - String representing the text inside the label. Could
be an unparsed JCString.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index