gzz.view
Class FisheyeState
java.lang.Object
|
+--gzz.view.FisheyeState
- public class FisheyeState
- extends java.lang.Object
A class which encapsulates a fisheye transformation, zooming
and panning, adjustable
by dragging with the mouse.
Uses clicks and drags by mouse button 3.
Constructor Summary |
FisheyeState(float aspect,
float minmag,
float maxmag,
float minsize,
float maxsize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rcsid
public static final java.lang.String rcsid
- See Also:
- Constant Field Values
dbg
public static boolean dbg
aspect
public float aspect
minmag
public float minmag
maxmag
public float maxmag
minsize
public float minsize
maxsize
public float maxsize
cursize
public float cursize
curx
public float curx
cury
public float cury
curmag
public float curmag
curmin
public float curmin
FisheyeState
public FisheyeState(float aspect,
float minmag,
float maxmag,
float minsize,
float maxsize)
- Parameters:
aspect
- The aspect ratio (x/y) to be used; if >1, flat.
setCenter
public void setCenter(float x,
float y)
getCoordsys
public int getCoordsys(VobScene vs,
int into,
java.lang.Object key)
- Put the current fisheye coordinate system
into the given vobscene. This puts more than one coordinate
system, and only the first one uses the given key.
The returned one is not matched and should be added to
the matcher by the caller.
setCoordsysParams
public void setCoordsysParams()
event
public boolean event(java.awt.event.MouseEvent e)