org.eesgmbh.gimv.client.controls
Class DragImageControl

java.lang.Object
  extended by org.eesgmbh.gimv.client.controls.DragImageControl

public class DragImageControl
extends Object

This control will change the image position within the viewport when the user moves the mouse over the viewport with the left mouse button down (dragging).

After the user stopped dragging, new image data with the new domain bounds is requested.

This control must be activated or deactivated with a StateChangeEvent. The reason behind the mandatory activation is, that dragging can both mean zooming or moving the image. Only this control or the ZoomBoxPresenter can be active at the same time.

Registers with the HandlerManager to receive the following events

Fires the following events


Constructor Summary
DragImageControl(HandlerManager handlerManager)
          Registers with the handlerManager to receive all required events.
 
Method Summary
 void setFireLoadImageDataEvent(boolean fireLoadImageDataEvent)
          Specify whether a LoadImageDataEvent will be fired after a drag is completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragImageControl

public DragImageControl(HandlerManager handlerManager)
Registers with the handlerManager to receive all required events.

Parameters:
handlerManager - A HandlerManager
Method Detail

setFireLoadImageDataEvent

public void setFireLoadImageDataEvent(boolean fireLoadImageDataEvent)

Specify whether a LoadImageDataEvent will be fired after a drag is completed.

Default is true.

Parameters:
fireLoadImageDataEvent - fire it, or not


Copyright © 2010 - EES GmbH