ilog.tgo.interactor
Class IltPanZoomedViewInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.tgo.interactor.IltPanZoomedViewInteractor
All Implemented Interfaces:
Serializable

public class IltPanZoomedViewInteractor
extends IlvManagerViewInteractor

A view interactor which displays a magnified portion of the current view in another view (of type IltPanZoomedView). The user can choose the midpoint and magnification by clicking with the mouse, and can move the selected area by dragging the mouse in the current view.

See Also:
IltPanZoomedView, Serialized Form

Constructor Summary
IltPanZoomedViewInteractor(IltPanZoomedView zoomView)
          Creates the interactor.
 
Method Summary
protected  void processMouseEvent(MouseEvent event)
          Processes the mouse events.
protected  void processMouseMotionEvent(MouseEvent event)
          Processes the mouse moved and mouse dragged events.
protected  double zoomFactor(int button)
          Returns the zoom factor to use for a particular button.
 
Methods inherited from class ilog.views.IlvManagerViewInteractor
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, attach, detach, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, 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

IltPanZoomedViewInteractor

public IltPanZoomedViewInteractor(IltPanZoomedView zoomView)
Creates the interactor.

Parameters:
zoomView - the view in which to display the zoomed contents
Method Detail

zoomFactor

protected double zoomFactor(int button)
Returns the zoom factor to use for a particular button.

The default implementation uses zoom factor 2, 4 and 8 for the buttons 1, 2 and 3, respectively.

Parameters:
button - 1, 2 or 3

processMouseEvent

protected void processMouseEvent(MouseEvent event)
Description copied from class: IlvManagerViewInteractor
Processes the mouse events. The method dispatches the event to the MouseListener registered with this interactor (if any).

Overrides:
processMouseEvent in class IlvManagerViewInteractor
Parameters:
event - The event.
See Also:
IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)

processMouseMotionEvent

protected void processMouseMotionEvent(MouseEvent event)
Description copied from class: IlvManagerViewInteractor
Processes the mouse moved and mouse dragged events. The method dispatches the event to the MouseMotionListener registered with this interactor (if any).

Overrides:
processMouseMotionEvent in class IlvManagerViewInteractor
Parameters:
event - The event.
See Also:
IlvManagerViewInteractor.addMouseMotionListener(java.awt.event.MouseMotionListener)


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