public class IlvLogarithmicAxisTransformer extends IlvAxisTransformer
Note: Setting a logarithmic transformation on an axis does not change the
step labels displayed along the corresponding scale. If you want to change
scale labels according to the logarithmic transformation, use the method
IlvScale.setLogarithmic(double)
.
Constructor and Description |
---|
IlvLogarithmicAxisTransformer()
Creates a transformer with a logarithmic base of
10 . |
IlvLogarithmicAxisTransformer(double logBase)
Creates a transformer with the specified logarithmic base.
|
Modifier and Type | Method and Description |
---|---|
double |
apply(double value)
Applies the transformation to the specified value.
|
double |
getLogBase()
Returns the logarithmic base of this transformer.
|
double |
inverse(double value)
Applies the inverse transformation to the specified value.
|
boolean |
isRoundingToPowers()
Returns
true if this transformation attempts to produce intervals
that start and end at powers of the logarithmic base. |
void |
setLogBase(double logBase)
Modifies the logarithmic base of this transformer.
|
void |
setRoundingToPowers(boolean round)
Determines whether this transformation shall attempt to produce
intervals that start and end at powers of the logarithmic base.
|
boolean |
validateInterval(IlvDataInterval itv)
Modifies the specified interval so that it is consistent with
the definition domain of the transformation.
|
apply, apply, getAxis, inverse, inverse, transformerChanged
public IlvLogarithmicAxisTransformer()
10
.public IlvLogarithmicAxisTransformer(double logBase)
public final double getLogBase()
public void setLogBase(double logBase)
public boolean isRoundingToPowers()
true
if this transformation attempts to produce intervals
that start and end at powers of the logarithmic base.validateInterval(ilog.views.chart.IlvDataInterval)
public void setRoundingToPowers(boolean round)
public double apply(double value) throws IlvAxisTransformerException
apply
in class IlvAxisTransformer
value
- The considered value.IlvAxisTransformerException
- If the transformation of the
specified value could not be properly computed.inverse(double)
public double inverse(double value) throws IlvAxisTransformerException
inverse
in class IlvAxisTransformer
value
- The considered value.IlvAxisTransformerException
- If the inverse transformation of the
specified value could not be properly computed.public boolean validateInterval(IlvDataInterval itv)
validateInterval
in class IlvAxisTransformer
itv
- The interval to validate. This interval is modified by the
method accordingly.isRoundingToPowers()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.