public class IlvContinuousZoomInteractor extends IlvManagerViewInteractor implements IlvPermanentInteractorInterface
Constructor and Description |
---|
IlvContinuousZoomInteractor()
Constructs a new
IlvContinuousZoomInteractor |
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvManagerView v)
Called when the interactor is attached to the manager view.
|
protected void |
detach()
Called when the interactor is detached from the view.
|
double |
getContinuousZoomFactor()
Return the zoom factor used in continuous mode.
|
double |
getInstantZoomFactor()
Get the zoom factor used in instant mode.
|
int |
getPeriod()
Retrieves the period between two zooms in continuous mode.
|
int |
getUnzoomButton()
Retrieves the button that is used to unzoom.
|
int |
getUnzoomKeyCode()
Retrieves the unzoom keycode modifier.
|
int |
getZoomButton()
Retrieves the button that is used to zoom.
|
int |
getZoomInKeyCode()
Retrieves the zoom in keycode.
|
int |
getZoomOutKeyCode()
Retrieves the zoom out keycode.
|
boolean |
isPermanent()
Returns
true if the interactor operates in permanent mode;
false otherwise. |
void |
setContinuousZoomFactor(double factor)
Sets the zoom factor used in continuous mode.
|
void |
setInstantZoomFactor(double factor)
Set the zoom factor used in instant mode.
|
void |
setPeriod(int period)
Sets the period between two zooms in continuous zoom mode.
|
void |
setPermanent(boolean set)
Changes the mode of the interactor.
|
void |
setUnzoomButton(int unzoomButton)
Sets the button that is used to unzoom.
|
void |
setUnzoomKeyCode(int code)
Set the unzoom keycode modifier.
|
void |
setZoomButton(int zoomButton)
Sets the button that is used to zoom.
|
void |
setZoomInKeyCode(int code)
Set the zoom in keycode.
|
void |
setZoomOutKeyCode(int code)
Set the zoom out keycode.
|
protected void |
zoomin(double fact)
Zooms in on the current point.
|
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvContinuousZoomInteractor()
IlvContinuousZoomInteractor
public int getUnzoomKeyCode()
KEY_CONTROL
public void setUnzoomKeyCode(int code)
code
- the zoomin keycode.public int getZoomInKeyCode()
KEY_UP
public void setZoomInKeyCode(int code)
code
- the zoomin keycode.public int getZoomOutKeyCode()
KEY_DOWN
public void setZoomOutKeyCode(int code)
code
- the zoomin keycode.protected void zoomin(double fact)
fact
- zoom multiplier.protected void attach(IlvManagerView v)
attach
in class IlvManagerViewInteractor
v
- The manager view.IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)
protected void detach()
detach
in class IlvManagerViewInteractor
IlvManagerViewInteractor.detach()
public boolean isPermanent()
true
if the interactor operates in permanent mode;
false
otherwise.isPermanent
in interface IlvPermanentInteractorInterface
public void setPermanent(boolean set)
setPermanent
in interface IlvPermanentInteractorInterface
set
- the new mode.public double getContinuousZoomFactor()
public void setContinuousZoomFactor(double factor)
factor
- The zoom factor used in continuous mode.public double getInstantZoomFactor()
public void setInstantZoomFactor(double factor)
factor
- The zoom factor used in instant mode.public int getPeriod()
public void setPeriod(int period)
period
- The period in milliseconds.public int getUnzoomButton()
public void setUnzoomButton(int unzoomButton)
unzoomButton
- the button that is used to unzoom.public int getZoomButton()
public void setZoomButton(int zoomButton)
zoomButton
- the button that is used to zoom.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.