|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvManagerViewInteractor
ilog.views.maps.interactor.IlvContinuousZoomInteractor
public class IlvContinuousZoomInteractor
Interactor that performs continuous zoom/unzoom on button pressed or zoom/unzoom on mouse wheel action.
| Constructor Summary | |
|---|---|
IlvContinuousZoomInteractor()
Constructs a new IlvContinuousZoomInteractor |
|
| Method Summary | |
|---|---|
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 zoom keycode. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvContinuousZoomInteractor()
IlvContinuousZoomInteractor
| Method Detail |
|---|
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 IlvManagerViewInteractorv - The manager view.IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)protected void detach()
detach in class IlvManagerViewInteractorIlvManagerViewInteractor.detach()public boolean isPermanent()
true if the interactor operates in permanent mode;
false otherwise.
isPermanent in interface IlvPermanentInteractorInterfacepublic void setPermanent(boolean set)
setPermanent in interface IlvPermanentInteractorInterfaceset - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||