Package com.macrofocus.transform.zoom
Class BifocalLensZoom
- java.lang.Object
-
- com.macrofocus.transform.zoom.BifocalLensZoom
-
- All Implemented Interfaces:
ZoomStrategy
public class BifocalLensZoom extends java.lang.Object implements ZoomStrategy
-
-
Constructor Summary
Constructors Constructor Description BifocalLensZoom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addZoomListener(ZoomListener listener)
double
getFocusPositionNormalized()
double
getFocusSizeNormalized()
double
getZoomFactor()
boolean
isDebug()
double
normalizedToZoomed(double x)
void
removeZoomListener(ZoomListener listener)
void
setLensNormalized(double position, double size)
void
setZoomFactor(double zoomFactor)
java.lang.String
toString()
double
zoomedToNormalized(double x)
-
-
-
Method Detail
-
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:
normalizedToZoomed
in interfaceZoomStrategy
-
zoomedToNormalized
public double zoomedToNormalized(double x)
- Specified by:
zoomedToNormalized
in interfaceZoomStrategy
-
addZoomListener
public void addZoomListener(ZoomListener listener)
- Specified by:
addZoomListener
in interfaceZoomStrategy
-
removeZoomListener
public void removeZoomListener(ZoomListener listener)
- Specified by:
removeZoomListener
in interfaceZoomStrategy
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-