public class IlvLocalZoomAxisTransformer extends IlvAxisTransformer
The following picture shows the effect of an IlvLocalZoomAxisTransformer
set on the x-axis:
Constructor and Description |
---|
IlvLocalZoomAxisTransformer(double zoomWindowMin,
double zoomWindowMax,
double zoomFactor,
boolean continuous)
Creates a new local zoom transformer with the specified zoom window,
zoom factor, and continuous property.
|
IlvLocalZoomAxisTransformer(IlvDataInterval zoomRange,
double zoomFactor,
boolean continuous)
Creates a new local zoom transformer with the specified zoom window,
zoom factor, and continuous property.
|
Modifier and Type | Method and Description |
---|---|
double |
apply(double v)
Applies the transformation to the specified value.
|
double[] |
apply(double[] values,
int count)
Applies the transformation to the specified values.
|
IlvDataInterval |
getTransformedRange()
Returns the transformed zoom range.
|
double |
getZoomFactor()
Returns the zoom factor.
|
IlvDataInterval |
getZoomRange()
Returns the zoom range.
|
double |
inverse(double v)
Applies the inverse transformation to the specified value.
|
boolean |
isContinuous()
Indicates whether the local zoom is continuous.
|
void |
setContinuous(boolean continuous)
Modifies the continuity of the local zoom.
|
boolean |
setZoomFactor(double zoomFactor)
Sets the zoom factor.
|
boolean |
setZoomRange(double start,
double end)
Sets the zoom range.
|
boolean |
validateInterval(IlvDataInterval itv)
Modifies the specified interval so that it is consistent with
the definition domain of the transformation.
|
apply, getAxis, inverse, inverse, transformerChanged
public IlvLocalZoomAxisTransformer(IlvDataInterval zoomRange, double zoomFactor, boolean continuous)
public IlvLocalZoomAxisTransformer(double zoomWindowMin, double zoomWindowMax, double zoomFactor, boolean continuous)
public final IlvDataInterval getZoomRange()
public boolean setZoomRange(double start, double end)
public final double getZoomFactor()
public boolean setZoomFactor(double zoomFactor)
public final boolean isContinuous()
public void setContinuous(boolean continuous)
public IlvDataInterval getTransformedRange()
public double apply(double v) throws IlvAxisTransformerException
apply
in class IlvAxisTransformer
v
- 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.apply
in class IlvAxisTransformer
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 double inverse(double v) throws IlvAxisTransformerException
inverse
in class IlvAxisTransformer
v
- 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 so
that it contains the zoom window.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.