ilog.views.interactor
Class IlvZoomViewInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.views.interactor.IlvDragRectangleInteractor
          extended by ilog.views.interactor.IlvZoomViewInteractor
All Implemented Interfaces:
IlvPermanentInteractorInterface, Serializable

public class IlvZoomViewInteractor
extends IlvDragRectangleInteractor
implements IlvPermanentInteractorInterface

Interactor class that lets you drag a rectangle, and zoom in on the view on the selected rectangle.

See Also:
Serialized Form

Constructor Summary
IlvZoomViewInteractor()
          Creates a new instance of IlvZoomViewInteractor.
 
Method Summary
protected  void attach(IlvManagerView v)
          This method is called when the interactor is attached to the manager view.
protected  void fireRectangleDraggedEvent(IlvRect rectangle, MouseEvent event)
          This method is called when the user releases the dragged rectangle.
 boolean isPermanent()
          Returns true if the interactor operates in permanent mode; false otherwise.
 void setPermanent(boolean set)
          Changes the mode of the interactor.
 
Methods inherited from class ilog.views.interactor.IlvDragRectangleInteractor
addRectangleDraggedListener, detach, drawGhost, getCursor, getDraggedRectangle, getLineStyle, getRectangleAspectRatio, getStartDragModifier, getStartPoint, handleButtonDown, handleButtonDragged, handleButtonUp, isGridMode, isOpaqueMode, isRotationAllowed, isStartDragModifierDown, isXORGhost, processMouseEvent, processMouseMotionEvent, removeRectangleDraggedListener, setCursor, setGridMode, setLineStyle, setOpaqueMode, setRectangleAspectRatio, setRotationAllowed, setStartDragModifier
 
Methods inherited from class ilog.views.IlvManagerViewInteractor
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvZoomViewInteractor

public IlvZoomViewInteractor()
Creates a new instance of IlvZoomViewInteractor.

Method Detail

attach

protected void attach(IlvManagerView v)
This method is called when the interactor is attached to the manager view.

Overrides:
attach in class IlvDragRectangleInteractor
Parameters:
v - the manager view
See Also:
IlvManagerViewInteractor.detach()

fireRectangleDraggedEvent

protected void fireRectangleDraggedEvent(IlvRect rectangle,
                                         MouseEvent event)
This method is called when the user releases the dragged rectangle. It computes the new transformer to zoom the view.

Overrides:
fireRectangleDraggedEvent in class IlvDragRectangleInteractor
Parameters:
rectangle - the rectangle to be zoomed in manager's coordinate system.
event - the MouseEvent that triggered this method.

isPermanent

public final boolean isPermanent()
Returns true if the interactor operates in permanent mode; false otherwise.

Specified by:
isPermanent in interface IlvPermanentInteractorInterface
Since:
JViews 5.0
See Also:
setPermanent(boolean)

setPermanent

public final void setPermanent(boolean set)
Changes the mode of the interactor.

Specified by:
setPermanent in interface IlvPermanentInteractorInterface
Parameters:
set - the new mode.
Since:
JViews 5.0
See Also:
isPermanent()


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.