Package com.macrofocus.transform.zoom
Class BifocalLensZoom
java.lang.Object
com.macrofocus.transform.zoom.BifocalLensZoom
- All Implemented Interfaces:
ZoomStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddZoomListener(ZoomListener listener) doubledoubledoublebooleanisDebug()doublenormalizedToZoomed(double x) voidremoveZoomListener(ZoomListener listener) voidsetLensNormalized(double position, double size) voidsetZoomFactor(double zoomFactor) toString()doublezoomedToNormalized(double x)
-
Constructor Details
-
BifocalLensZoom
public BifocalLensZoom()
-
-
Method Details
-
getFocusPositionNormalized
public double getFocusPositionNormalized() -
getFocusSizeNormalized
public double getFocusSizeNormalized() -
getZoomFactor
public double getZoomFactor() -
isDebug
public boolean isDebug() -
setZoomFactor
public void setZoomFactor(double zoomFactor) -
setLensNormalized
public void setLensNormalized(double position, double size) -
normalizedToZoomed
public double normalizedToZoomed(double x) - Specified by:
normalizedToZoomedin interfaceZoomStrategy
-
zoomedToNormalized
public double zoomedToNormalized(double x) - Specified by:
zoomedToNormalizedin interfaceZoomStrategy
-
addZoomListener
- Specified by:
addZoomListenerin interfaceZoomStrategy
-
removeZoomListener
- Specified by:
removeZoomListenerin interfaceZoomStrategy
-
toString
-