|
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.ChartDataSupport | +--com.klg.jclass.chart.data.BaseDataSource | +--com.klg.jclass.chart.data.JCDefaultDataSource
JCDefaultDataSource
extends BaseDataSource
to create
a more useful default container for JClass Chart data.
(Formerly VectorDataSource
).
Field Summary | |
protected static double[][] |
defaultY
Default data used in Beans. |
protected boolean |
suppressMultipleGeneration
Used to suppress generation of x series data in all cases. |
Fields inherited from class com.klg.jclass.chart.data.BaseDataSource |
cloneArrays, clusterImageMapInfo, holeValue, legendImageMapInfo, name, pointImageMapInfo, pointLabels, seriesImageMapInfo, seriesLabels, xvalues, yvalues |
Fields inherited from class com.klg.jclass.chart.ChartDataSupport |
source |
Fields inherited from interface com.klg.jclass.chart.ChartDataModel |
ALL |
Constructor Summary | |
JCDefaultDataSource()
The default constructor. |
|
JCDefaultDataSource(com.klg.jclass.chart.data.BaseDataSource baseDataSource)
Creates a JCDefaultDataSource from a BaseDataSource. |
|
JCDefaultDataSource(double[][] xvalues,
double[][] yvalues,
String[] pointLabels,
String[] seriesLabels,
String dataSourceName)
Creates a data source using the provided data. |
|
JCDefaultDataSource(double[][] xvalues,
double[][] yvalues,
String[] pointLabels,
String[] seriesLabels,
String dataSourceName,
com.klg.jclass.util.ImageMapInfo[][] pointImageMapInfo,
com.klg.jclass.util.ImageMapInfo[] clusterImageMapInfo,
com.klg.jclass.util.ImageMapInfo[] seriesImageMapInfo,
com.klg.jclass.util.ImageMapInfo[] legendImageMapInfo)
Creates a data source using the provided data. |
|
JCDefaultDataSource(double[][] xvalues,
double[][] yvalues,
String[] pointLabels,
String[] seriesLabels,
String dataSourceName,
String[][] pointURLs,
String[][] pointExtras,
String[] clusterURLs,
String[] clusterExtras,
String[] seriesURLs,
String[] seriesExtras,
String[] legendURLs,
String[] legendExtras)
Creates a data source using the provided data and image map information. |
|
JCDefaultDataSource(Locale locale)
The default constructor with specified locale. |
Method Summary | |
String |
buildDataSourceString()
Converts the current data source into a String form. |
protected void |
check()
Checks the supplied data to see if x data has been provided. |
protected void |
generateLabels()
Generates and sets the data source name, series labels, and point labels from the existing y values. |
protected void |
generateLabels(Locale locale)
Generates and sets the data source name, series labels, and point labels from the existing y values for the specified locale. |
void |
setClusterImageMapInfo(com.klg.jclass.util.ImageMapInfo[] clusterImageMapInfo)
Sets an array of image map information, one for each point cluster. |
void |
setClusterImageMapInfo(String[] URLs,
String[] extras)
Sets an array of image map information, one for each point cluster. |
void |
setData(double[][] xvalues,
double[][] yvalues)
Sets the x and y data contained by this data source. |
void |
setLegendImageMapInfo(com.klg.jclass.util.ImageMapInfo[] legendImageMapInfo)
Sets an array of legend image map information, one for each series. |
void |
setLegendImageMapInfo(String[] URLs,
String[] extras)
Sets an array of legend image map information, one for each series. |
void |
setName(String s)
Sets the value of the Name property. |
void |
setPointImageMapInfo(com.klg.jclass.util.ImageMapInfo[][] pointImageMapInfo)
Sets an array of image map information indexed by series and point. |
void |
setPointImageMapInfo(int seriesIndex,
com.klg.jclass.util.ImageMapInfo[] pointImageMapInfo)
Sets an array of image map information for a given series. |
void |
setPointImageMapInfo(int seriesIndex,
String[] URLs,
String[] extras)
Sets an array of image map information for a given series. |
void |
setPointImageMapInfo(String[][] URLs,
String[][] extras)
Sets an array of image map information indexed by series and point. |
void |
setPointLabels(String[] ps)
Sets the value of the pointLabels property. |
void |
setSeriesImageMapInfo(com.klg.jclass.util.ImageMapInfo[] seriesImageMapInfo)
Sets an array of image map information, one for each series. |
void |
setSeriesImageMapInfo(String[] URLs,
String[] extras)
Sets an array of image map information, one for each series. |
void |
setSeriesLabels(String[] ss)
Sets the seriesLabel properties. |
void |
setXSeries(int index,
double[] xvalues)
Sets the specified x-value series. |
void |
setYSeries(int index,
double[] yvalues)
Sets the specified y-value series. |
protected void |
updateChart(int type,
int seriesIndex,
int pointIndex)
Internal method to inform the listeners when the chart data has changed. |
Methods inherited from class com.klg.jclass.chart.data.BaseDataSource |
cloneCheck, cloneCheck, cloneCheck, getChartDataManager, getCloneArrays, getClusterImageMapInfo, getDataSourceName, getHoleValue, getLegendImageMapInfo, getNumSeries, getPointImageMapInfo, getPointLabels, getSeriesImageMapInfo, getSeriesLabels, getXSeries, getYSeries, setCloneArrays |
Methods inherited from class com.klg.jclass.chart.ChartDataSupport |
addChartDataListener, fireChartDataEvent, fireChartDataEvent, removeChartDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean suppressMultipleGeneration
protected static double[][] defaultY
Constructor Detail |
public JCDefaultDataSource()
DataSourceEditor
.
public JCDefaultDataSource(Locale locale)
public JCDefaultDataSource(double[][] xvalues, double[][] yvalues, String[] pointLabels, String[] seriesLabels, String dataSourceName)
xvalues
- X series arrays; can be nullyvalues
- Y series arrays; can be nullpointLabels
- array of point labels; can be nullseriesLabels
- array of series labels; can be nulldataSourceName
- name to be applied to this data sourcepublic JCDefaultDataSource(double[][] xvalues, double[][] yvalues, String[] pointLabels, String[] seriesLabels, String dataSourceName, String[][] pointURLs, String[][] pointExtras, String[] clusterURLs, String[] clusterExtras, String[] seriesURLs, String[] seriesExtras, String[] legendURLs, String[] legendExtras)
xvalues
- X series arrays; can be null.yvalues
- Y series arrays; can be null.pointLabels
- array of point labels; can be null.seriesLabels
- array of series labels; can be null.dataSourceName
- name to be applied to this data source.pointURLs
- An array of URLs, indexed by series and point.pointExtras
- An array of extra URL information, indexed by series and
point.clusterURLs
- An array of URLs, one for each point cluster.clusterExtras
- An array of extra URL information, one for each point
cluster.seriesURLs
- An array of URLs, one for each series.seriesExtras
- An array of extra URL information, one for each series.legendURLs
- An array of legend URLs, one for each series.legendExtras
- An array of extra legend URL information, one for each
series.public JCDefaultDataSource(double[][] xvalues, double[][] yvalues, String[] pointLabels, String[] seriesLabels, String dataSourceName, com.klg.jclass.util.ImageMapInfo[][] pointImageMapInfo, com.klg.jclass.util.ImageMapInfo[] clusterImageMapInfo, com.klg.jclass.util.ImageMapInfo[] seriesImageMapInfo, com.klg.jclass.util.ImageMapInfo[] legendImageMapInfo)
xvalues
- X series arrays; can be nullyvalues
- Y series arrays; can be nullpointLabels
- array of point labels; can be nullseriesLabels
- array of series labels; can be nulldataSourceName
- name to be applied to this data sourcepointImageMapInfo
- An array of image map information, indexed by
series and point.clusterImageMapInfo
- An array of image map information, one for each
point cluster.seriesImageMapInfo
- An array of image map information, one for each
series.legendImageMapInfo
- An array of legend image map information, one for
each series.public JCDefaultDataSource(com.klg.jclass.chart.data.BaseDataSource baseDataSource)
baseDataSource
- The BaseDataSource from which this object is derived.Method Detail |
protected void check()
protected void generateLabels()
protected void generateLabels(Locale locale)
protected void updateChart(int type, int seriesIndex, int pointIndex)
type
- data change type to pass to the viewsseriesIndex
- index of series affected by the changepointIndex
- index of point affected by the changepublic void setData(double[][] xvalues, double[][] yvalues)
xvalues
- X series arrays; can be nullyvalues
- Y series arrays; can be nullpublic void setXSeries(int index, double[] xvalues)
NumSeries
will not be adjusted automatically.
index
- data series indexxvalues
- array of x valuespublic void setYSeries(int index, double[] yvalues)
NumSeries
will not be adjusted automatically.
index
- data series indexyvalues
- array of y valuespublic void setPointLabels(String[] ps)
pointLabels
property. The
pointLabels
property is an indexed property that contains a list
of point labels provided by the data source.
ps
- the array of point label Stringspublic void setSeriesLabels(String[] ss)
seriesLabel
properties. The seriesLabel
property defines the label that is associated with a data
series.
ss
- the array of series label Stringspublic void setName(String s)
Name
property. The Name
property defines the name of the data object.
s
- the name Stringpublic void setPointImageMapInfo(com.klg.jclass.util.ImageMapInfo[][] pointImageMapInfo)
pointImageMapInfo
- The new point image map information array.public void setPointImageMapInfo(String[][] URLs, String[][] extras)
URLs
- An array of URLs, indexed by series and point.extras
- An array of extra URL information, indexed by series and point.public void setPointImageMapInfo(int seriesIndex, com.klg.jclass.util.ImageMapInfo[] pointImageMapInfo)
seriesIndex
- The index of the series.pointImageMapInfo
- The new point image map information array.public void setPointImageMapInfo(int seriesIndex, String[] URLs, String[] extras)
seriesIndex
- The index of the series.URLs
- An array of URLs.extras
- An array of extra URL information.public void setClusterImageMapInfo(com.klg.jclass.util.ImageMapInfo[] clusterImageMapInfo)
clusterImageMapInfo
- The new cluster image map information array.public void setClusterImageMapInfo(String[] URLs, String[] extras)
URLs
- An array of URLs, one for each point cluster.extras
- An array of extra URL information, one for each point cluster.public void setSeriesImageMapInfo(com.klg.jclass.util.ImageMapInfo[] seriesImageMapInfo)
seriesImageMapInfo
- The new series image map information array.public void setSeriesImageMapInfo(String[] URLs, String[] extras)
URLs
- An array of URLs, one for each series.extras
- An array of extra URL information, one for each series.public void setLegendImageMapInfo(com.klg.jclass.util.ImageMapInfo[] legendImageMapInfo)
legendImageMapInfo
- The new legend image map information array.public void setLegendImageMapInfo(String[] URLs, String[] extras)
URLs
- An array of URLs, one for each series.extras
- An array of extra URL information, one for each series.public String buildDataSourceString()
ChartDataSourceUtil
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |