|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.chart.ChartDataViewSeries
Class representing a single data series. While
ChartDataView 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:
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).
| Field Summary | |
protected static int |
dataViewSeriesNum
|
protected int |
drawingOrder
|
protected int |
firstPoint
|
protected boolean |
included
|
protected String |
label
|
protected com.klg.jclass.chart.DerivedInt |
lastPoint
|
protected com.klg.jclass.util.ImageMapInfo |
legendImageMapInfo
|
protected Locale |
locale
|
protected String |
name
|
protected com.klg.jclass.chart.ChartDataView |
parent
|
protected com.klg.jclass.util.ImageMapInfo[] |
pointImageMapInfo
|
protected com.klg.jclass.util.ImageMapInfo |
seriesImageMapInfo
|
protected boolean |
visible
|
protected boolean |
visibleInLegend
|
| Constructor Summary | |
ChartDataViewSeries()
Basic constructor. |
|
| Method Summary | |
protected void |
calcStep(com.klg.jclass.chart.ChartDataView cdv)
|
void |
editPoint(int index,
double newValue)
Used to change the Y value of some point in the series. |
int |
getDrawingOrder()
Gets the value of the DrawingOrder property. |
int |
getFirstPoint()
Retrieves the index of the first point in the specified series. |
String |
getLabel()
Gets the Label property of the data series. |
int |
getLastPoint()
Retrieves the index of the last point in the specified series. |
boolean |
getLastPointIsDefault()
Gets the LastPointIsDefault property of
ChartDataViewSeries. |
com.klg.jclass.util.ImageMapInfo |
getLegendImageMapInfo()
Gets the legend image map information for this series. |
protected Locale |
getLocale()
Retrieve the local for this axis. |
String |
getName()
Gets the value of the Name property. |
com.klg.jclass.chart.ChartDataView |
getParent()
Gets the value of the Parent property. |
protected int |
getPoint(double v,
double[] arr)
Finds the closest match to a value in an array. |
com.klg.jclass.util.ImageMapInfo[] |
getPointImageMapInfo()
Retrieves an array of image map information, one for each point in the series. |
com.klg.jclass.util.ImageMapInfo |
getSeriesImageMapInfo()
Gets the image map information for this series. |
com.klg.jclass.chart.JCChartStyle |
getStyle()
Gets the Style property for this
ChartDataViewSeries, which defines the rendering style for the
data series. |
protected double[] |
getX()
|
int |
getX(double x)
Returns the index that contains the value closest to the specified X value. |
double |
getX(int i)
Returns the X value at the specified index. |
double[] |
getXArrayCopy()
Gets a copy of the X values array in this data series. |
protected void |
getXMinMax(com.klg.jclass.chart.MinMax x)
|
protected double[] |
getY()
|
int |
getY(double y)
Returns the index that contains the value closest to the specified Y value. |
double |
getY(int i)
Returns the Y value at the specified index. |
double[] |
getYArrayCopy()
Gets a copy of the Y values array in this data series. |
protected void |
getYMinMax(com.klg.jclass.chart.MinMax y)
|
boolean |
isIncluded()
Gets the value of the IsIncluded property. |
boolean |
isVisible()
Gets the value of the Visible property. |
boolean |
isVisibleInLegend()
Gets the VisibleInLegend property. |
int |
maxIndex()
Gets the maximum of the X and Y indices. |
int |
maxXIndex()
Gets the maximum X index. |
int |
maxYIndex()
Gets the maximum Y index. |
void |
setDrawingOrder(int neword)
Sets the value of the DrawingOrder property. |
void |
setFirstPoint(int point)
Sets the index of the first point in the specified series. |
void |
setIncluded(boolean inc)
Sets the value of the IsIncluded property. |
void |
setLabel(String lab)
Sets the Label property of the data series. |
void |
setLastPoint(int point)
Sets the index of the last point in the specified series. |
void |
setLastPointIsDefault(boolean b)
Sets the LastPointIsDefault property of
ChartDataViewSeries. |
void |
setLegendImageMapInfo(com.klg.jclass.util.ImageMapInfo legendImageMapInfo)
Sets the legend image map information for this series. |
protected void |
setLocale(Locale locale)
Set the locale for this axis. |
void |
setName(String nm)
Sets the value of the Name property. |
void |
setPointImageMapInfo(com.klg.jclass.util.ImageMapInfo[] pointImageMapInfo)
Sets an array of image map information, one for each point in the series. |
void |
setSeriesImageMapInfo(com.klg.jclass.util.ImageMapInfo seriesImageMapInfo)
Sets the image map information for this series. |
void |
setStyle(com.klg.jclass.chart.JCChartStyle st)
Sets the Style property for this
ChartDataViewSeries, which defines the rendering style for the
data series. |
void |
setVisible(boolean shn)
Sets the value of the Visible property. |
void |
setVisibleInLegend(boolean vil)
Sets the VisibleInLegend property. |
protected void |
setX(double[] x)
|
protected void |
setY(double[] y)
|
String |
toString()
Returns a String representation of this series. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.chart.ChartDataView parent
protected int firstPoint
protected com.klg.jclass.chart.DerivedInt lastPoint
protected String name
protected int drawingOrder
protected boolean visible
protected boolean visibleInLegend
protected boolean included
protected String label
protected com.klg.jclass.util.ImageMapInfo[] pointImageMapInfo
protected com.klg.jclass.util.ImageMapInfo seriesImageMapInfo
protected com.klg.jclass.util.ImageMapInfo legendImageMapInfo
protected Locale locale
protected static int dataViewSeriesNum
| Constructor Detail |
public ChartDataViewSeries()
| Method Detail |
protected void setLocale(Locale locale)
protected Locale getLocale()
public void editPoint(int index,
double newValue)
ChartDataView, which in turn informs the external data object.
index - the index with the Y arraynewValue - the new edited Y valuepublic int getFirstPoint()
FirstPoint and LastPoint can be used to
constrain the data that is displayed.
public void setFirstPoint(int point)
FirstPoint and LastPoint can be used to
constrain the data that is displayed.
point - new first point number
IllegalArgumentException - If the provided index does not
address a point in the data series.public int getLastPoint()
FirstPoint and LastPoint can be used to
constrain the data that is displayed.
public boolean getLastPointIsDefault()
LastPointIsDefault property of
ChartDataViewSeries. This property determines whether chart is
responsible for calculating the LastPoint property itself or if
the current value of the LastPoint property should be used.
LastPointIsDefault property; default is
truepublic void setLastPoint(int point)
FirstPoint and LastPoint can be used to
constrain the data that is displayed.
point - new last point index
IllegalArgumentException - If the provided index does not
address a point in the data series.public void setLastPointIsDefault(boolean b)
LastPointIsDefault property of
ChartDataViewSeries. It determines whether chart is responsible
for calculating the LastPoint property itself or if the current
value of the LastPoint property should be used.
b - if true, calculates the LastPoint
property; if false, uses the current value of the
LastPoint propertypublic String getName()
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.
getName in interface com.klg.jclass.util.JCNameChartDataViewpublic void setName(String nm)
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.
setName in interface com.klg.jclass.util.JCNamenm - the new nameChartDataViewpublic com.klg.jclass.chart.ChartDataView getParent()
Parent property.
The Parent property points to the containing
ChartDataView for this ChartDataView series.
ChartDataView parentpublic com.klg.jclass.chart.JCChartStyle getStyle()
Style property for this
ChartDataViewSeries, which defines the rendering style for the
data series.
JCChartStyle instance that specifies how to render
the data seriespublic void setStyle(com.klg.jclass.chart.JCChartStyle st)
Style property for this
ChartDataViewSeries, which defines the rendering style for the
data series.
st - JCChartStyle instance that specifies how to render
the data seriespublic int getDrawingOrder()
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 of the
ChartDataViewSeries objects that it manages.
public void setDrawingOrder(int neword)
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.
neword - DrawingOrder for this
ChartDataViewSeries item
IllegalArgumentException - If the order value provided
does not address a data series.public boolean isVisible()
Visible property. The
Visible property determines whether the data series is showing
in the chart area. IsIncluded property
for details on how to omit a data series from chart calculations.
true if the data series is showing; false
otherwisepublic void setVisible(boolean shn)
Visible property. The
Visible property determines whether the data series is showing
in the chart area. IsIncluded property
for details on how to omit a data series from chart calculations.
shn - true if the data series is showing;
false otherwisepublic boolean isVisibleInLegend()
VisibleInLegend property. This property determines
whether or not this series will appear in the chart legend.
true if the series will appear in the legendpublic void setVisibleInLegend(boolean vil)
VisibleInLegend property. This property determines
whether or not this series will appear in the chart legend.
vil - the new value of VisibleInLegendpublic boolean isIncluded()
IsIncluded property. The
IsIncluded property determines whether a data series is included
in chart calculations (like axis bounds).
true if the data series is included; false
otherwisepublic void setIncluded(boolean inc)
IsIncluded property. The
IsIncluded property determines whether a data series is included
in chart calculations (like axis bounds).
inc - true if the data series is included;
false otherwisepublic void setLabel(String lab)
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 HTML text.
lab - the new labelpublic String getLabel()
Label property of the data series. The
Label property controls the text that appears next to the data
series inside the legend.
public com.klg.jclass.util.ImageMapInfo[] getPointImageMapInfo()
public void setPointImageMapInfo(com.klg.jclass.util.ImageMapInfo[] pointImageMapInfo)
pointImageMapInfo - The new point image map information array.public com.klg.jclass.util.ImageMapInfo getSeriesImageMapInfo()
public void setSeriesImageMapInfo(com.klg.jclass.util.ImageMapInfo seriesImageMapInfo)
seriesImageMapInfo - The new image map information for this series.public com.klg.jclass.util.ImageMapInfo getLegendImageMapInfo()
public void setLegendImageMapInfo(com.klg.jclass.util.ImageMapInfo legendImageMapInfo)
legendImageMapInfo - The new legend image map information for this
series.public String toString()
toString in class Objectpublic int maxXIndex()
public int maxYIndex()
public int maxIndex()
protected void getXMinMax(com.klg.jclass.chart.MinMax x)
protected void calcStep(com.klg.jclass.chart.ChartDataView cdv)
protected void getYMinMax(com.klg.jclass.chart.MinMax y)
public double getX(int i)
i - the index of the value wanted
public double getY(int i)
i - the index of the value wanted
protected double[] getX()
protected double[] getY()
public double[] getXArrayCopy()
public double[] getYArrayCopy()
protected void setX(double[] x)
protected void setY(double[] y)
public int getX(double x)
x - the value to check against
public int getY(double y)
y - the value to check against
protected int getPoint(double v,
double[] arr)
v - the value to checkarr - the array to check against
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||