public class IlvMapZoomInteractor extends IlvDragRectangleInteractor implements IlvPermanentInteractorInterface
Constructor and Description |
---|
IlvMapZoomInteractor()
Constructs a IlvMapZoomInteractor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvManagerView v)
This method is called when the
interactor is attached to the manager view.
|
protected void |
detach()
Called when the interactor
is detached from the current manager view.
|
protected void |
fireRectangleDraggedEvent(IlvRect rectangle,
MouseEvent event)
This method is called when the user releases the dragged
rectangle.
|
int |
getZoomInKeyCode()
Retrieves the zoom in keycode.
|
int |
getZoomOutKeyCode()
Retrieves the zoom out keycode.
|
protected boolean |
handleButtonUp(MouseEvent event)
Processes the button up events.
|
boolean |
isPermanent()
Returns
true if the interactor operates in permanent mode;
false otherwise. |
void |
setPermanent(boolean set)
Changes the mode of the interactor.
|
void |
setZoomInKeyCode(int code)
Set the zoom in keycode.
|
void |
setZoomOutKeyCode(int code)
Set the zoom out keycode.
|
addRectangleDraggedListener, dragscroll, drawGhost, getCursor, getDraggedRectangle, getLineStyle, getRectangleAspectRatio, getStartDragModifier, getStartPoint, handleButtonDown, handleButtonDragged, isGridMode, isOpaqueMode, isRotationAllowed, isStartDragModifierDown, isXORGhost, processMouseEvent, processMouseMotionEvent, removeRectangleDraggedListener, setCursor, setGridMode, setLineStyle, setOpaqueMode, setRectangleAspectRatio, setRotationAllowed, setStartDragModifier
adjustPointIfOutsideView, doAutoScroll, getMaximumScrollDistance, getScrollTiming, isProgressiveScroll, setMaximumScrollDistance, setProgressiveScroll, setScrollTiming, startDraggingScrollTimer, stopDraggingScrollTimer
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvMapZoomInteractor()
protected void attach(IlvManagerView v)
attach
in class IlvDragRectangleInteractor
v
- the manager viewIlvManagerViewInteractor.detach()
protected void detach()
detach
in class IlvDragRectangleInteractor
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)
protected boolean handleButtonUp(MouseEvent event)
handleButtonUp
in class IlvDragRectangleInteractor
event
- The event.true
if the event has been processed,
false
otherwise.protected void fireRectangleDraggedEvent(IlvRect rectangle, MouseEvent event)
fireRectangleDraggedEvent
in class IlvDragRectangleInteractor
rectangle
- the rectangle to be zoomed in manager's coordinate system.event
- the MouseEvent that triggered this method.public final boolean isPermanent()
true
if the interactor operates in permanent mode;
false
otherwise.isPermanent
in interface IlvPermanentInteractorInterface
true
if permanent, false
otherwise.setPermanent(boolean)
public final void setPermanent(boolean set)
setPermanent
in interface IlvPermanentInteractorInterface
set
- the new mode.isPermanent()
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.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.