|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MouseManager
Defines a common abstraction for classes that handle mouse events.
It prescribes a stack mechanism for managing MouseHandler
s.
Method Summary | |
---|---|
void |
enableMouseHandler(MouseHandler mouseHandler)
The window will pass mouse events to only this MouseHandler ,
until the MouseHandler is changed or removed. |
MouseHandler |
getCurrentMouseHandler()
Returns the current MouseHandler or null if none. |
MouseHandler[] |
getFallbackMouseHandlers()
Returns an array of additional MouseHandler s to call for a given
MouseEvent , if the current mouse handler doesn't handle it. |
void |
pushMouseHandler(MouseHandler mouseHandler)
Enable the given MouseHandler , and push it on the stack
so that if another MouseHandler gets enabled, this one
will be reenabled when that MouseHandler is removed. |
void |
removeMouseHandler(MouseHandler mouseHandler)
Remove the given MouseHandler and reinstate the
MouseHandler at the top of the stack, if any. |
boolean |
replaceMouseHandler(MouseHandler existingHandler,
MouseHandler replacementHandler)
Replace a MouseHandler in the stack with another
MouseHandler . |
Method Detail |
---|
void enableMouseHandler(MouseHandler mouseHandler)
MouseHandler
,
until the MouseHandler
is changed or removed.
mouseHandler
- the current mouse handler.void pushMouseHandler(MouseHandler mouseHandler)
MouseHandler
, and push it on the stack
so that if another MouseHandler
gets enabled, this one
will be reenabled when that MouseHandler
is removed.
mouseHandler
- The MouseHandler
to enable and push.enableMouseHandler(org.opengis.go.display.event.MouseHandler)
void removeMouseHandler(MouseHandler mouseHandler)
MouseHandler
and reinstate the
MouseHandler
at the top of the stack, if any.
mouseHandler
- the MouseHandler
to disable and remove.boolean replaceMouseHandler(MouseHandler existingHandler, MouseHandler replacementHandler)
MouseHandler
in the stack with another
MouseHandler
.
existingHandler
- the MouseHandler
to be replaced.replacementHandler
- the MouseHandler
that is replacing
the existingHandler
.
true
if existingHandler
was found and replaced
by replacementHandler
.MouseHandler getCurrentMouseHandler()
MouseHandler
or null
if none.
MouseHandler
or null
if none.MouseHandler[] getFallbackMouseHandlers()
MouseHandler
s to call for a given
MouseEvent
, if the current mouse handler doesn't handle it. These
handlers will be called in ascending index order until the MouseEvent
is consumed.
MouseHandler
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |