public class SCFInverseCosineLens extends FSInverseCosineLens implements TemporalLens
a, b, c
CONSTANT, LR1, LR2, SPEED_DEPENDENT_LINEAR
h, lensHeight, lensWidth, lx, ly, magnifiedGraphics, mbh, mbi, mbw, MM, MM_FLOOR, mSwitchThreshold, owningView, sh, sw, w
Constructor and Description |
---|
SCFInverseCosineLens()
create a lens with a maximum magnification factor of 2.0
|
SCFInverseCosineLens(float mm)
create a lens with a given maximum magnification factor
|
SCFInverseCosineLens(float mm,
int outerRadius,
int innerRadius)
create a lens with a given maximum magnification factor, inner and outer radii
|
SCFInverseCosineLens(float mm,
int outerRadius,
int innerRadius,
int x,
int y)
create a lens with a given maximum magnification factor, inner and outer radii
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
drawBoundary(Graphics2D g2d)
for internal use
|
float |
getActualMaximumMagnification() |
TemporalParamListener |
getTemporalParamListener() |
void |
gf(float x,
float y,
float[] g)
gain factor function
|
void |
setAbsolutePosition(int ax,
int ay,
long absTime)
set the position of the lens inside the view
|
void |
setCutoffFrequencyParameters(double a,
double b) |
void |
setDrawMaxFlatTop(boolean b)
allows to ask to draw the max flat top (not drawn by default)
|
void |
setMinMagFactor(float minMagFac)
set the minimum magnification factor (1.0 by default)
|
void |
setNoUpdateWhenMouseStill(boolean b) |
void |
setSpeedBlendRadii(boolean bft,
boolean bor)
allows to ask to draw the max flat top
|
void |
setSpeedCoupling(SpeedCoupling sc) |
void |
setTemporalParamListener(TemporalParamListener tpl)
To be notified about updates to MM due to speed-coupling.
|
void |
updateFrequency() |
void |
updateFrequency(long currentTime) |
void |
updateTimeBasedParams() |
void |
updateTimeBasedParams(int cx,
int cy) |
setInnerRadius, setMaximumMagnification, setMaximumMagnification, setMMandRadii, setMMandRadii, setOuterRadius, setRadii, setRadii
getActualRingRadius, getInnerRadius, getInnerRadiusColor, getOuterRadius, getOuterRadiusColor, getRadius, getVisibleRegionInFocus, moveLensBy, setAbsolutePosition, setFocusControlled, setFocusControlled, setInnerRadiusColor, setLensBuffer, setOuterRadiusColor
getBufferThreshold, getMagnificationGraphics, getMaximumMagnification, getOwningView, getVisibleRegion, getXfocusOffset, getYfocusOffset, isInitialized, resetMagnificationBuffer, setBufferThreshold, setMagRasterDimensions, setMagRasterDimensions, setXfocusOffset, setYfocusOffset, transform
public SCFInverseCosineLens()
public SCFInverseCosineLens(float mm)
mm
- maximum magnification factor, mm in [0,+inf[public SCFInverseCosineLens(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 SCFInverseCosineLens(float mm, int outerRadius, int innerRadius, int x, int y)
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)x
- horizontal coordinate of the lens' center (as an offset w.r.t the view's center coordinates)y
- vertical coordinate of the lens' center (as an offset w.r.t the view's center coordinates)public void setAbsolutePosition(int ax, int ay, long absTime)
setAbsolutePosition
in interface TemporalLens
ax
- 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)absTime
- time at which this event is occuring (in ms, as can be obtained e.g. by System.currentTimeMillis())public void updateFrequency()
public void updateFrequency(long currentTime)
public void updateTimeBasedParams(int cx, int cy)
updateTimeBasedParams
in interface TemporalLens
public void updateTimeBasedParams()
updateTimeBasedParams
in interface TemporalLens
public void setCutoffFrequencyParameters(double a, double b)
public void setSpeedCoupling(SpeedCoupling sc)
public void setNoUpdateWhenMouseStill(boolean b)
setNoUpdateWhenMouseStill
in interface TemporalLens
public void gf(float x, float y, float[] g)
Lens
gf
in class FSInverseCosineLens
public void setMinMagFactor(float minMagFac)
minMagFac
- minimum magnification factor, in [1.0,MaxMag]public void setDrawMaxFlatTop(boolean b)
b
- if true ask to draw the max flat toppublic void setSpeedBlendRadii(boolean bft, boolean bor)
bft
- if true speed blend the flat topbor
- if true speed blend the outer radiuspublic void drawBoundary(Graphics2D g2d)
drawBoundary
in class FixedSizeLens
public float getActualMaximumMagnification()
getActualMaximumMagnification
in class Lens
public void setTemporalParamListener(TemporalParamListener tpl)
setTemporalParamListener
in interface TemporalLens
public TemporalParamListener getTemporalParamListener()
getTemporalParamListener
in interface TemporalLens
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.