public abstract class IlvStepsDefinition extends Object implements Serializable
IlvScale.setStepsDefinition(ilog.views.chart.IlvStepsDefinition)
method lets you associate an
IlvStepsDefinition
object with a scale.Modifier | Constructor and Description |
---|---|
protected |
IlvStepsDefinition()
Creates a new
IlvStepsDefinition . |
Modifier and Type | Method and Description |
---|---|
abstract String |
computeLabel(double value)
Computes the label associated with the specified value.
|
Locale |
getLocale()
Returns the current locale.
|
IlvScale |
getScale()
Returns the scale using this steps definition.
|
com.ibm.icu.util.ULocale |
getULocale()
Returns the current locale.
|
boolean |
hasNext(double value)
Indicates whether this object defines a step after the specified value.
|
boolean |
hasSubStep()
Indicates whether this object defines substeps.
|
abstract double |
incrementStep(double v)
Increments the specified step.
|
double |
incrementSubStep(double v)
Increments the specified substep.
|
void |
localeChanged()
This method is invoked when the current locale has changed.
|
double |
nextStep(double v)
Returns the step value immediately after the specified value.
|
double |
nextSubStep(double v)
Returns the substep value immediately after the specified value.
|
abstract 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 |
update()
Called by the scale before it computes the step values.
|
protected IlvStepsDefinition()
IlvStepsDefinition
.public final IlvScale getScale()
null
until the definition is connected
to a scale with the IlvScale.setStepsDefinition(ilog.views.chart.IlvStepsDefinition)
method.public void update()
public boolean hasNext(double value)
true
.value
- The considered value.true
if a step exists after value
,
and false
otherwise.public abstract double previousStep(double v)
public double nextStep(double v)
This method is equivalent to: incrementStep(previousStep(v))
.
incrementStep(double)
,
previousStep(double)
public abstract double incrementStep(double v)
public boolean hasSubStep()
false
. Subclasses can
override this method and provide implementation for
previousSubStep(double)
and incrementSubStep(double)
.public double previousSubStep(double v)
IlvStepsDefinition
does not define substeps by default,
this method simply returns the specified value.hasSubStep()
public double nextSubStep(double v)
This method is equivalent to: incrementSubStep(previousSubStep(v))
.
incrementSubStep(double)
,
previousSubStep(double)
public double incrementSubStep(double v)
As IlvStepsDefinition
does not define substeps by default,
this method simply returns the specified value.
hasSubStep()
public com.ibm.icu.util.ULocale getULocale()
public final Locale getLocale()
public void localeChanged()
public abstract String computeLabel(double value)
This method must take account of the current locale, that
you can determine with a getULocale()
or (@link #getLocale()}
call.
value
- Numeric coordinate value.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.