public class IlvDataSetProperty extends Object
XTimeSeries
: Describes that the x-series of a data set is a time series. YTimeSeries
: Describes that the y-series of a data set is a time series. category
: Describes the category of a data set. This is the
normal or minimal distance between consecutive x values.index
: Corresponds to the index of the data set in its main data source. CSSclass
: Corresponds to the CSS classes of the data set.CSSpseudoClass
: Corresponds to the CSS pseudo-classes of the data set.
To set these properties use the IlvDataSet.putProperty(java.lang.Object, java.lang.Object, boolean)
method. There is no property change notification,
except for the CSSClass
and CSSpseudoClass
properties.
Modifier and Type | Method and Description |
---|---|
static void |
addPseudoClass(IlvDataSet dataSet,
String pseudoClass)
Adds a pseudo-class to the specified data set.
|
static Double |
getCategory(IlvDataSet dataSet)
Returns the value of the
Category property for the specified data set. |
static String |
getCSSClasses(IlvDataSet dataSet)
Returns the CSS classes of the specified data set.
|
static IlvDataSource |
getDataSource(IlvDataSet dataSet)
Returns the main data source of the specified data set.
|
static int |
getIndex(IlvDataSet dataSet)
Deprecated.
Since JViews 8.7, this method is deprecated. Better use the
method
IlvChartRenderer.getDataSetMainIndex(IlvDataSet) . |
static String[] |
getPseudoClasses(IlvDataSet dataSet)
Returns the pseudo-classes of the specified data set.
|
static boolean |
isXTimeSeries(IlvDataSet dataSet)
Returns the value of the
XTimeSeries property for the specified data set. |
static boolean |
isYTimeSeries(IlvDataSet dataSet)
Returns the value of the
YTimeSeries property for the specified data set. |
static void |
removePseudoClass(IlvDataSet dataSet,
String pseudoClass)
Removes a pseudo-class from the specified data set.
|
static void |
setCategory(IlvDataSet dataSet,
Double category)
Sets the value of the
category property on the specified
data set to the given value. |
static void |
setCSSClasses(IlvDataSet dataSet,
String CSSclasses)
Sets the CSS classes of the specified data set.
|
static void |
setDataSource(IlvDataSet dataSet,
IlvDataSource dataSource)
Sets the main data source of the specified data set.
|
static void |
setPseudoClasses(IlvDataSet dataSet,
String[] classes)
Sets the pseudo-classes of the specified data set.
|
static void |
setXTimeSeries(IlvDataSet dataSet,
boolean time)
Sets the value of the
XTimeSeries property on the specified data set
to the given value. |
static void |
setYTimeSeries(IlvDataSet dataSet,
boolean time)
Sets the value of the
YTimeSeries property on the specified data set
to the given value. |
public static boolean isXTimeSeries(IlvDataSet dataSet)
XTimeSeries
property for the specified data set.public static void setXTimeSeries(IlvDataSet dataSet, boolean time)
XTimeSeries
property on the specified data set
to the given value.IllegalArgumentException
- The specified data set is null
.public static boolean isYTimeSeries(IlvDataSet dataSet)
YTimeSeries
property for the specified data set.public static void setYTimeSeries(IlvDataSet dataSet, boolean time)
YTimeSeries
property on the specified data set
to the given value.IllegalArgumentException
- The specified data set is null
.public static Double getCategory(IlvDataSet dataSet)
Category
property for the specified data set.
May return null
if the data set does not have a category.public static void setCategory(IlvDataSet dataSet, Double category)
category
property on the specified
data set to the given value. The category
property is the
normal or minimal distance between consecutive x values.IllegalArgumentException
- The specified data set is null
.public static IlvDataSource getDataSource(IlvDataSet dataSet)
dataSet
- The data set.setDataSource(ilog.views.chart.data.IlvDataSet, ilog.views.chart.data.IlvDataSource)
public static void setDataSource(IlvDataSet dataSet, IlvDataSource dataSource)
IlvAbstractDataSource
.
You should use it only to implement the IlvDataSource
interface directly.dataSet
- The data set.dataSource
- The data source that owns the data set.getDataSource(ilog.views.chart.data.IlvDataSet)
,
getIndex(ilog.views.chart.data.IlvDataSet)
@Deprecated public static int getIndex(IlvDataSet dataSet)
IlvChartRenderer.getDataSetMainIndex(IlvDataSet)
.
Note: This method returns a result that depends more on the history
of this data set that on its position in the chart in which is it
currently used. Better use the method
IlvChartRenderer.getDataSetMainIndex(IlvDataSet)
.
dataSet
- The data set.-1
if it does not
belong to a data source.getDataSource(ilog.views.chart.data.IlvDataSet)
,
IlvChartRenderer.getDataSetMainIndex(IlvDataSet)
public static String getCSSClasses(IlvDataSet dataSet)
CSSclass
.dataSet
- The data set.null
if no CSS class is defined.setCSSClasses(ilog.views.chart.data.IlvDataSet, java.lang.String)
public static void setCSSClasses(IlvDataSet dataSet, String CSSclasses)
CSSclass
.dataSet
- The data set.CSSclasses
- The string representing the CSS classes, separated by ' '.getCSSClasses(ilog.views.chart.data.IlvDataSet)
public static String[] getPseudoClasses(IlvDataSet dataSet)
CSSpseudoClass
.dataSet
- A data set.addPseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
removePseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
IlvChart.getPseudoClasses(IlvDataSet)
public static void setPseudoClasses(IlvDataSet dataSet, String[] classes)
dataSet
- The data set whose pseudo-classes are to be set.classes
- An array of strings that identify the pseudo-classes
to associate with the data set.addPseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
removePseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
IlvChart.setPseudoClasses(IlvDataSet, String[])
public static void addPseudoClass(IlvDataSet dataSet, String pseudoClass)
series:selected { color1: red; }This rule will be applied when adding the
selected
pseudo-class to a data set:
IlvDataSetProperty.addPseudoClass(dataSet, "selected");
dataSet
- The data set.pseudoClass
- A string that identifies a pseudo-class
to add to the classes already associated with the data set.removePseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
getPseudoClasses(ilog.views.chart.data.IlvDataSet)
,
IlvChart.addPseudoClass(IlvDataSet, String)
public static void removePseudoClass(IlvDataSet dataSet, String pseudoClass)
dataSet
- The data set.pseudoClass
- A string that identifies a pseudo-class
to remove from the classes associated with the data set.addPseudoClass(ilog.views.chart.data.IlvDataSet, java.lang.String)
,
getPseudoClasses(ilog.views.chart.data.IlvDataSet)
,
IlvChart.removePseudoClass(IlvDataSet, String)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.