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 void
addZoomListener(ZoomListener listener)
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)
-
-
-
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:
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
-
-