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.


Field Summary
 float aspect
           
 float curmag
           
 float curmin
           
 float cursize
           
 float curx
           
 float cury
           
static boolean dbg
           
 float maxmag
           
 float maxsize
           
 float minmag
           
 float minsize
           
static java.lang.String rcsid
           
 
Constructor Summary
FisheyeState(float aspect, float minmag, float maxmag, float minsize, float maxsize)
           
 
Method Summary
 boolean event(java.awt.event.MouseEvent e)
           
 int getCoordsys(VobScene vs, int into, java.lang.Object key)
          Put the current fisheye coordinate system into the given vobscene.
 void setCenter(float x, float y)
           
 void setCoordsysParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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)