All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.ChartDataViewSeries

java.lang.Object
   |
   +----jclass.chart.ChartDataViewSeries

public class ChartDataViewSeries
extends Object
implements JCSerializable
ChartDataViewSeries represents a single data series. Whereas ChartData View manages multiple data series, ChartDataViewSeries contains the data for a single data series. The data is stored as two arrays of x and y values. Note that if the x data array is null or empty, the x data array in ChartDataView is used. This interpretation used to be known as array format.

Properties

Name Method
FirstPoint The FirstPoint property controls the index of the first point displayed in the ChartDataSeries.
LastPoint The LastPoint property controls the index of the first point displayed in the ChartDataSeries.
Name The Name property represents the name of the data series. In JClass Chart, data series are named, and can be retrieved by name.
Style The Style property defines the rendering style for the data series.
DrawingOrder The DrawingOrder property determines the order of display of data series. When the DrawingOrder property is changed, ChartDataView will normalize the order properties of all the ChartDataViewSeries objects that it manages.
IsShowing The IsShowing property determines whether the data series is showing in the chart area. Note that data series that are not showing are still used in axis calculations. See the IsIncluded property for details on how to omit a data series from chart calculations.
IsShowingInLegend The IsShowingInLegend property determines whether or not this series will appear in the chart legend.
IsIncluded The IsIncluded property determines whether a data series is included in chart calculations (like axis bounds).
Label The Label property controls the text that appears next to the data series inside the legend. It can be an unparsed JCString.


Constructor Index

 o ChartDataViewSeries()

Method Index

 o editPoint(int, double)
Used to change the y-value of some point in the series.
 o getDrawingOrder()
Gets the value of the DrawingOrder property.
 o getFirstPoint()
Retrieves the index of the first point in the specified series.
 o getIsIncluded()
Gets the value of the IsIncluded property.
 o getIsShowing()
Gets the value of the IsShowing property.
 o getIsShowingInLegend()
Gets the IsShowingInLegend property.
 o getLabel()
Gets the Label property of the data series.
 o getLastPoint()
Retrieves the index of the last point in the specified series.
 o getLastPointIsDefault()
 o getName()
Gets the value of the Name property.
 o getStyle()
Gets the Style property for this ChartDataViewSeries, which defines the rendering style for the data series.
 o getX(double)
Returns the index that contains the value closest to the specified value
 o getX(int)
Returns the X value at the specified index
 o getY(double)
Returns the index that contains the value closest to the specified value
 o getY(int)
Returns the Y value at the specified index.
 o setDrawingOrder(int)
Sets the value of the DrawingOrder property.
 o setFirstPoint(int)
Sets the index of the first point in the specified series.
 o setIsIncluded(boolean)
Sets the value of the IsIncluded property.
 o setIsShowing(boolean)
Sets the value of the IsShowing property.
 o setIsShowingInLegend(boolean)
Sets the IsShowingInLegend property.
 o setLabel(String)
Sets the Label property of the data series.
 o setLastPoint(int)
Sets the index of the last point in the specified series.
 o setLastPointIsDefault(boolean)
 o setName(String)
Gets the value of the Name property.
 o setStyle(JCChartStyle)
Sets the Style property for this ChartDataViewSeries, which defines the rendering style for the data series.
 o toString()

Constructors

 o ChartDataViewSeries
 public ChartDataViewSeries()

Methods

 o editPoint
 public void editPoint(int index,
                       double newValue)
Used to change the y-value of some point in the series. Informs the ChartDataView, which in turn informs the external data object

 o getFirstPoint
 public int getFirstPoint()
Retrieves the index of the first point in the specified series. FirstPoint and LastPoint can be used to constrain the data that is displayed.

Returns:
Index of the first point of the series that will be displayed.
 o setFirstPoint
 public synchronized void setFirstPoint(int point)
Sets the index of the first point in the specified series. FirstPoint and LastPoint can be used to constrain the data that is displayed.

Parameters:
point - new first point number
Throws: IllegalArgumentException
If the provided index does not address a point in the data series.
 o getLastPoint
 public int getLastPoint()
Retrieves the index of the last point in the specified series. FirstPoint and LastPoint can be used to constrain the data that is displayed.

Returns:
Index of the last point in the series that will be displayed.
 o getLastPointIsDefault
 public boolean getLastPointIsDefault()
 o setLastPoint
 public synchronized void setLastPoint(int point)
Sets the index of the last point in the specified series. FirstPoint and LastPoint can be used to constrain the data that is displayed.

Parameters:
point - new last point index
Throws: IllegalArgumentException
If the provided index does not address a point in the data series.
 o setLastPointIsDefault
 public synchronized void setLastPointIsDefault(boolean b)
 o getName
 public String getName()
Gets the value of the Name property. The Name property represents the name of the data series. In JClass Chart, data series are named, and can be retrieved by name.

Returns:
Series name.
See Also:
ChartDataView
 o setName
 public synchronized void setName(String nm)
Gets the value of the Name property. The Name property represents the name of the data series. In JClass Chart, data series are named, and can be retrieved by name.

Returns:
Series name.
See Also:
ChartDataView
 o getStyle
 public JCChartStyle getStyle()
Gets the Style property for this ChartDataViewSeries, which defines the rendering style for the data series.

Returns:
JCChartStyle instance that specifies how to render the data series.
 o setStyle
 public synchronized void setStyle(JCChartStyle st)
Sets the Style property for this ChartDataViewSeries, which defines the rendering style for the data series.

Parameters:
st - JCChartStyle instance that specifies how to render the data series
 o getDrawingOrder
 public int getDrawingOrder()
Gets the value of the DrawingOrder property. The DrawingOrder property determines the order of display of data series. When the DrawingOrder property is changed, ChartDataView will normalize the order properties of all the ChartDataViewSeries objects that it manages.

Returns:
DrawingOrder for this ChartDataViewSeries item.
 o setDrawingOrder
 public synchronized void setDrawingOrder(int neword)
Sets the value of the DrawingOrder property. The DrawingOrder property determines the order of display of data series. When the DrawingOrder property is changed, ChartDataView will normalize the order properties of all the ChartDataViewSeries objects that it manages.

Parameters:
neworder - DrawingOrder for this ChartDataViewSeries item
Throws: IllegalArgumentException
If the order value provided does not address a data series.
 o getIsShowing
 public boolean getIsShowing()
Gets the value of the IsShowing property. The IsShowing property determines whether the data series is showing in the chart area. Note that data series that are not showing are still used in axis calculations. See the IsIncluded property for details on how to omit a data series from chart calculations.

Returns:
"true" if the data series is showing, false otherwise.
 o setIsShowing
 public synchronized void setIsShowing(boolean shn)
Sets the value of the IsShowing property. The IsShowing property determines whether the data series is showing in the chart area. Note that data series that are not showing are still used in axis calculations. See the IsIncluded property for details on how to omit a data series from chart calculations.

Parameters:
shn - "true" if the data series is showing, false otherwise
 o getIsShowingInLegend
 public boolean getIsShowingInLegend()
Gets the IsShowingInLegend property. This property determines whether or not this series will appear in the chart legend.

Returns:
"true" if the series will appear in the legend
 o setIsShowingInLegend
 public synchronized void setIsShowingInLegend(boolean shn)
Sets the IsShowingInLegend property. This property determines whether or not this series will appear in the chart legend.

 o getIsIncluded
 public boolean getIsIncluded()
Gets the value of the IsIncluded property. The IsIncluded property determines whether a data series is included in chart calculations (like axis bounds).

Returns:
true if the data series is included, false otherwise.
 o setIsIncluded
 public synchronized void setIsIncluded(boolean inc)
Sets the value of the IsIncluded property. The IsIncluded property determines whether a data series is included in chart calculations (like axis bounds).

Parameters:
inc - true if the data series is included, false otherwise
 o setLabel
 public synchronized void setLabel(String lab)
Sets the Label property of the data series. The Label property controls the text that appears next to the data series inside the legend. It can be unparsed JCString text.

Returns:
Label information.
 o getLabel
 public String getLabel()
Gets the Label property of the data series. The Label property controls the text that appears next to the data series inside the legend. It can be unparsed JCString text.

Returns:
Label information.
 o toString
 public String toString()
Overrides:
toString in class Object
 o getX
 public double getX(int i)
Returns the X value at the specified index

 o getY
 public double getY(int i)
Returns the Y value at the specified index.

 o getX
 public int getX(double x)
Returns the index that contains the value closest to the specified value

 o getY
 public int getY(double y)
Returns the index that contains the value closest to the specified value


All Packages  Class Hierarchy  This Package  Previous  Next  Index