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