|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.zvtm.lens.Lens
fr.inria.zvtm.lens.FixedSizeLens
public abstract class FixedSizeLens
Parent class of all lenses which have a fixed size (i.e. whose radius does not depend on the view's size)
| Field Summary | |
|---|---|
static short |
CONSTANT
|
protected int |
LR1
|
protected int |
LR2
|
static short |
SPEED_DEPENDENT_LINEAR
|
| Fields inherited from class fr.inria.zvtm.lens.Lens |
|---|
h, lensHeight, lensWidth, lx, ly, magnifiedGraphics, mbh, mbi, mbw, MM, MM_FLOOR, mSwitchThreshold, owningView, sh, sw, w |
| Constructor Summary | |
|---|---|
FixedSizeLens()
|
|
| Method Summary | |
|---|---|
void |
drawBoundary(Graphics2D g2d)
for internal use |
float |
getActualRingRadius()
|
int |
getInnerRadius()
get the lens' inner radius (beyond which maximum magnification is applied - inward) |
Color |
getInnerRadiusColor()
Get the color used to draw the lens' inner radius. |
int |
getOuterRadius()
get the lens' outer radius (beyond which no magnification is applied - outward) |
Color |
getOuterRadiusColor()
Get the color used to draw the lens' outer radius. |
int |
getRadius()
outer radius |
long[] |
getVisibleRegionInFocus(Camera c,
long[] res)
returns bounds of rectangle representing virtual space's region seen through focus of lens and camera c [west,north,east,south] |
void |
moveLensBy(int dx,
int dy,
long currentTime)
|
void |
setAbsolutePosition(int ax,
int ay)
set the position of the lens inside the view |
void |
setFocusControlled(boolean isFocusControlled)
|
void |
setFocusControlled(boolean isFocusControlled,
short speedBehavior)
|
void |
setInnerRadius(int r)
set the lens' inner radius (beyond which maximum magnification is applied - inward) |
void |
setInnerRadiusColor(Color c)
Set the color used to draw the lens' inner radius (default is black). |
void |
setLensBuffer(ViewPanel p)
Should not be called directly ; used to update buffer image caracteristics when lens outer radius changes |
void |
setMMandRadii(float mm,
int outerRadius,
int innerRadius)
set the lens' radii and maximum magnification |
void |
setMMandRadii(float mm,
int outerRadius,
int innerRadius,
boolean forceRaster)
set the lens' radii and maximum magnification |
void |
setOuterRadius(int r)
set the lens' outer radius (beyond which no magnification is applied - outward) |
void |
setOuterRadiusColor(Color c)
Set the color used to draw the lens' outer radius (default is black). |
void |
setRadii(int outerRadius,
int innerRadius)
set the lens' radii |
void |
setRadii(int outerRadius,
int innerRadius,
boolean forceRaster)
set the lens' radii |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int LR1
protected int LR2
public static short CONSTANT
public static short SPEED_DEPENDENT_LINEAR
| Constructor Detail |
|---|
public FixedSizeLens()
| Method Detail |
|---|
public void setOuterRadius(int r)
r - radius in pixelspublic void setInnerRadius(int r)
r - radius in pixels
public void setRadii(int outerRadius,
int innerRadius)
outerRadius - outer radius (beyond which no magnification is applied - outward)innerRadius - inner radius (beyond which maximum magnification is applied - inward)
public void setRadii(int outerRadius,
int innerRadius,
boolean forceRaster)
outerRadius - outer radius (beyond which no magnification is applied - outward)innerRadius - inner radius (beyond which maximum magnification is applied - inward)forceRaster - true if the magnification raster size should be updated according to the new maximum magnification factor (default is true)
public void setMMandRadii(float mm,
int outerRadius,
int innerRadius)
mm - maximum magnification factor, mm in [0,+inf[outerRadius - outer radius (beyond which no magnification is applied - outward)innerRadius - inner radius (beyond which maximum magnification is applied - inward)
public void setMMandRadii(float mm,
int outerRadius,
int innerRadius,
boolean forceRaster)
mm - maximum magnification factor, mm in [0,+inf[outerRadius - outer radius (beyond which no magnification is applied - outward)innerRadius - inner radius (beyond which maximum magnification is applied - inward)forceRaster - true if the magnification raster size should be updated according to the new maximum magnification factor (default is true)public int getOuterRadius()
public int getRadius()
Lens
getRadius in class Lenspublic int getInnerRadius()
public float getActualRingRadius()
public void setLensBuffer(ViewPanel p)
setLensBuffer in class Lens
public void setAbsolutePosition(int ax,
int ay)
setAbsolutePosition in class Lensax - lens's center horizontal coordinate expressed as an absolute position within the view (JPanel coordinate system)ay - lens's center vertical coordinate expressed as an absolute position within the view (JPanel coordinate system)
public void setFocusControlled(boolean isFocusControlled,
short speedBehavior)
setFocusControlled in class Lenspublic void setFocusControlled(boolean isFocusControlled)
setFocusControlled in class Lens
public void moveLensBy(int dx,
int dy,
long currentTime)
moveLensBy in class Lenspublic void setInnerRadiusColor(Color c)
c - color of the boundary (set to null if you do not want to draw that border)public void setOuterRadiusColor(Color c)
c - color of the boundary (set to null if you do not want to draw that border)public Color getInnerRadiusColor()
public Color getOuterRadiusColor()
public void drawBoundary(Graphics2D g2d)
drawBoundary in class Lens
public long[] getVisibleRegionInFocus(Camera c,
long[] res)
c - camerares - array which will contain the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||