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 Description
ChartText The ChartText property controls the ChartText associated with this Value label. The default value is a ChartText instance.
Text The Text property specifies the text displayed inside the label. The default value is " " (empty string).
Value The Value property controls the position of a label in data space along a particular axis. The default value is 0.0.


Constructor Index

 o JCValueLabel()
Default constructor required for beans
 o JCValueLabel(double, String)
Internal constructor that creates a value label given a value and a string.
 o JCValueLabel(double, String, boolean, JCAxis)
A smart constructor that creates a ChartText from a generic object.

Method Index

 o getChartText()
Retrieves the ChartText associated with this JCValueLabel
 o getText()
Gets the value of the Text property.
 o getValue()
Gets the value of the Value property.
 o setText(String)
Sets the value of the Text property.
 o setValue(double)
Sets the value of the Value property.
 o toString()

Constructors

 o JCValueLabel
 public JCValueLabel()
Default constructor required for beans

 o JCValueLabel
 public JCValueLabel(double val,
                     String lbl,
                     boolean jcstring,
                     JCAxis axis)
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
axis - Axis on which the value label will appear.
See Also:
ChartText
 o 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

Methods

 o getChartText
 public ChartText getChartText()
Retrieves the ChartText associated with this JCValueLabel

Returns:
ChartText instance
 o 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.
 o 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
 o getText
 public String getText()
Gets the value of the Text property. The Text property specifies the text displayed inside the label.

Returns:
String representing the text inside the label. Could be an unparsed JCString.
 o setText
 public void setText(String t)
Sets the value of the Text property. The Text property specifies the text displayed inside the label.

Parameters:
t - String representing the text inside the label. Could be an unparsed JCString.
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index