|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eesgmbh.gimv.client.controls.DragImageControl
public class DragImageControl
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
ViewportDragInProgressEvent (the control changes the image position accordingly)
ViewportDragFinishedEvent (will trigger a SetDomainBoundsEvent and a LoadImageDataEvent )
SetDomainBoundsEvent (mandatory, won't work otherwise)
StateChangeEvent (must be set to move for the control to do something)
SetMaxDomainBoundsEvent (optional, if not received, there will be no restriction)
Fires the following events
ChangeImagePixelBoundsEvent fired on each ViewportDragInProgressEvent
SetDomainBoundsEvent fired after recieving ViewportDragFinishedEvent with the new domain bounds
LoadImageDataEvent fired after recieving ViewportDragFinishedEvent
| 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 |
|---|
public DragImageControl(HandlerManager handlerManager)
handlerManager - A HandlerManager| Method Detail |
|---|
public void setFireLoadImageDataEvent(boolean fireLoadImageDataEvent)
Specify whether a LoadImageDataEvent will be fired
after a drag is completed.
Default is true.
fireLoadImageDataEvent - fire it, or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||