Package com.macrofocus.transform.zoom
Class CartesianFisheyeZoom
- java.lang.Object
-
- com.macrofocus.transform.zoom.CartesianFisheyeZoom
-
- All Implemented Interfaces:
ZoomStrategy
public class CartesianFisheyeZoom extends java.lang.Object implements ZoomStrategy
-
-
Constructor Summary
Constructors Constructor Description CartesianFisheyeZoom(BoundedInterval interval, boolean isDebug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddZoomListener(ZoomListener listener)booleanisDebug()doublenormalizedToZoomed(double x)voidremoveZoomListener(ZoomListener listener)voidsetLensNormalized(double position, double size)voidsetZoomFactor(double zoomFactor)java.lang.StringtoString()doublezoomedToNormalized(double x)
-
-
-
Constructor Detail
-
CartesianFisheyeZoom
public CartesianFisheyeZoom(BoundedInterval interval, boolean isDebug)
-
-
Method Detail
-
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
public void addZoomListener(ZoomListener listener)
- Specified by:
addZoomListenerin interfaceZoomStrategy
-
removeZoomListener
public void removeZoomListener(ZoomListener listener)
- Specified by:
removeZoomListenerin interfaceZoomStrategy
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-