public class IlvCategoryStepsDefinition extends IlvStepsDefinition
Constructor and Description |
---|
IlvCategoryStepsDefinition(boolean stepBetweenCategory)
Creates a new
IlvCategoryStepsDefinition . |
IlvCategoryStepsDefinition(boolean stepBetweenCategory,
IlvDataSet dataSet)
Creates a new
IlvCategoryStepsDefinition that will use the
data labels of the specified data set. |
IlvCategoryStepsDefinition(boolean stepBetweenCategory,
int dataSetIndex)
Creates a new
IlvCategoryStepsDefinition that will use the
data labels of the data set with the specified index. |
Modifier and Type | Method and Description |
---|---|
String |
computeLabel(double value)
Computes the label associated with the specified value.
|
IlvDataSet |
getLabelDataSet()
Returns the data set that is used for computing labels.
|
int |
getLabelDataSetIndex()
Returns the specified index of the labels data set in the chart's data
source.
|
boolean |
hasSubStep()
Returns
true if ticks and labels are positioned differently. |
double |
incrementStep(double v)
Returns the next step value.
|
double |
incrementSubStep(double v)
Returns the next substep value.
|
boolean |
isLabelBetweenCategory()
Indicates whether the labels are positioned between categories.
|
boolean |
isStepBetweenCategory()
Indicates whether major ticks are positioned between categories.
|
double |
previousStep(double v)
Returns the step value immediately before the specified value.
|
double |
previousSubStep(double v)
Returns the substep value immediately before the specified value.
|
void |
setLabelBetweenCategory(boolean labelBetweenCategory)
Specifies whether the labels are positioned between categories.
|
void |
setLabelDataSetIndex(int dataSetIndex)
Sets the index of the labels data set in the chart's data source.
|
void |
setStepBetweenCategory(boolean stepBetweenCategory)
Specifies whether major ticks are positioned between categories.
|
getLocale, getScale, getULocale, hasNext, localeChanged, nextStep, nextSubStep, update
public IlvCategoryStepsDefinition(boolean stepBetweenCategory)
IlvCategoryStepsDefinition
.
The category labels are supplied by the main data source of the
chart (see IlvChart.getDataSource()
).stepBetweenCategory
- If set to true
, steps are
positioned between categories, and substeps are positioned at each
category. If set to false
, steps are positioned at
each category.public IlvCategoryStepsDefinition(boolean stepBetweenCategory, IlvDataSet dataSet)
IlvCategoryStepsDefinition
that will use the
data labels of the specified data set.stepBetweenCategory
- If set to true
, steps will be
positioned between categories. Otherwise, steps will be positioned at
each category.dataSet
- The data set that will supply the category labels.public IlvCategoryStepsDefinition(boolean stepBetweenCategory, int dataSetIndex)
IlvCategoryStepsDefinition
that will use the
data labels of the data set with the specified index.stepBetweenCategory
- If set to true
, steps will be
positioned between categories. Otherwise, steps will be positioned at
each category.dataSetIndex
- The index of the data set that will supply the
category labels.public final int getLabelDataSetIndex()
public void setLabelDataSetIndex(int dataSetIndex)
Note: This method has no effect if the labels data set was already specified through a constructor argument.
public final boolean isStepBetweenCategory()
setStepBetweenCategory(boolean)
public void setStepBetweenCategory(boolean stepBetweenCategory)
stepBetweenCategory
- If set to true
, steps are
positioned between categories, and substeps are positioned at each
category. If set to false
, steps are positioned at
each category.isStepBetweenCategory()
public final boolean isLabelBetweenCategory()
setLabelBetweenCategory(boolean)
public void setLabelBetweenCategory(boolean labelBetweenCategory)
labelBetweenCategory
- If set to true
, labels are
positioned between categories. If set to false
, labels are
positioned at each category.isLabelBetweenCategory()
public boolean hasSubStep()
true
if ticks and labels are positioned differently.hasSubStep
in class IlvStepsDefinition
public double previousStep(double v)
previousStep
in class IlvStepsDefinition
public double incrementStep(double v)
incrementStep
in class IlvStepsDefinition
public double previousSubStep(double v)
previousSubStep
in class IlvStepsDefinition
IlvStepsDefinition.hasSubStep()
public double incrementSubStep(double v)
incrementSubStep
in class IlvStepsDefinition
IlvStepsDefinition.hasSubStep()
public IlvDataSet getLabelDataSet()
This implementation considers first the data set that was given as constructor argument, or the data set in the chart's data source with the index that was given as a constructor argument.
public String computeLabel(double value)
computeLabel
in class IlvStepsDefinition
value
- Numeric coordinate value.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.