|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eesgmbh.gimv.client.presenter.MousePointerPresenter
public class MousePointerPresenter
The presenter is used to display some form of visual clue at the current
mouse cursor position inside the Viewport, e.g. a vertical line in
the samples.
The underlying view is a GenericWidgetView. The shipped implementation
is GenericWidgetViewImpl.
After instantiating the presenter, it has to be configured how the view position will relate to the current mouse position. The view's position can either correspond to the mouse' x-coordinate, the y-coordinate or both.
Registers with the HandlerManager to receive the following events
ViewportMouseMoveEvent (mandatory, won't do anything otherwise)
ViewportMouseOutEvent (when received the view will be hidden)
SetDataAreaPixelBoundsEvent (optional, when received the view will be hidden
if it is not within these bounds )
ViewportDragInProgressEvent (optional, when received the view will remain hidden
until a ViewportDragFinishedEvent is received)
ViewportDragFinishedEvent (optional)
Fires no events.
| Constructor Summary | |
|---|---|
MousePointerPresenter(HandlerManager handlerManager,
GenericWidgetView view)
Instantiates the presenter. |
|
| Method Summary | |
|---|---|
void |
configure(boolean enableHorizontalPositioning,
boolean enableVerticalPositioning)
Configures the view to either correspond to the mouse' x-coordinate, the y-coordinate or both. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MousePointerPresenter(HandlerManager handlerManager,
GenericWidgetView view)
handlerManager - A HandlerManagerview - A GenericWidgetView implementation| Method Detail |
|---|
public void configure(boolean enableHorizontalPositioning,
boolean enableVerticalPositioning)
If e.g. true, false is passed in, the view will move from right to left, but not up or down.
enableHorizontalPositioning - If the x-position of the mouse should be set in the view.enableVerticalPositioning - If the y-position of the mouse should be set in the view.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||