public abstract class IlvAxisTransformer extends Object implements Serializable
IlvAxis.setTransformer(ilog.views.chart.IlvAxisTransformer)
method lets you associate
a transformer with an axis.Modifier | Constructor and Description |
---|---|
protected |
IlvAxisTransformer()
Creates a new
IlvAxisTransformer object. |
Modifier and Type | Method and Description |
---|---|
abstract double |
apply(double value)
Applies the transformation to the specified value.
|
double[] |
apply(double[] values,
int count)
Applies the transformation to the specified values.
|
IlvDataInterval |
apply(IlvDataInterval itv)
Applies the transformation to a data interval.
|
IlvAxis |
getAxis()
Returns the axis to which this transformer is associated.
|
abstract double |
inverse(double value)
Applies the inverse transformation to the specified value.
|
double[] |
inverse(double[] values,
int count)
Applies the inverse transformation to the specified values.
|
IlvDataInterval |
inverse(IlvDataInterval itv)
Applies the inverse transformation to a data interval.
|
protected void |
transformerChanged()
Notifies the axis that the transformer has changed.
|
boolean |
validateInterval(IlvDataInterval itv)
Modifies the specified interval so that it is consistent with
the definition domain of the transformation.
|
protected IlvAxisTransformer()
IlvAxisTransformer
object.public IlvAxis getAxis()
public abstract double apply(double value) throws IlvAxisTransformerException
value
- The considered value.IlvAxisTransformerException
- If the transformation of the
specified value could not be properly computed.inverse(double)
public double[] apply(double[] values, int count) throws IlvAxisTransformerException
apply(double)
for each value.
It can be overridden to provide a more efficient implementation.values
- The considered values. The method modifies the
contents of this array and returns it.count
- The number of values that must be transformed.IlvAxisTransformerException
public abstract double inverse(double value) throws IlvAxisTransformerException
value
- The considered value.IlvAxisTransformerException
public double[] inverse(double[] values, int count) throws IlvAxisTransformerException
inverse(double)
for each value.
It can be overridden to provide a more efficient implementation.values
- The considered values. The method modifies the
content of this array and returns it.count
- The number of values that must be transformed.IlvAxisTransformerException
public IlvDataInterval apply(IlvDataInterval itv) throws IlvAxisTransformerException
itv
- The considered interval. The method modifies this
interval and returns it.IlvAxisTransformerException
apply(double)
public IlvDataInterval inverse(IlvDataInterval itv) throws IlvAxisTransformerException
itv
- The considered interval. The method modifies this
interval and returns it.IlvAxisTransformerException
inverse(double)
public boolean validateInterval(IlvDataInterval itv)
itv
- The interval to validate. This interval is modified by the
method accordingly.protected void transformerChanged()
AxisChangeEvent.TRANSFORMER_CHANGE
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.