|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.control.AcceptanceDockRelocatorMode
public abstract class AcceptanceDockRelocatorMode
A DockRelocatorMode
that adds itself as a DockAcceptance
to the DockController
when activated.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.control.DockRelocatorMode |
---|
NO_COMBINATION, NO_COMBINATION_MASK, SCREEN_MASK, SCREEN_ONLY |
Constructor Summary | |
---|---|
AcceptanceDockRelocatorMode(int onmask,
int offmask)
Creates a new mode. |
|
AcceptanceDockRelocatorMode(ModifierMask mask)
Creates a new mode. |
Method Summary | |
---|---|
ModifierMask |
getMask()
Gets the mask for this mode. |
void |
setActive(DockController controller,
boolean active)
Tells this mode whether it should have an influence of the behaviour or not. |
void |
setMask(ModifierMask mask)
Sets the keys that must be pressed in order to activate this mode. |
boolean |
shouldBeActive(DockController controller,
int modifiers)
Tells whether this mode should be activated because of the state of the controller and the last MouseEvent . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.accept.DockAcceptance |
---|
accept, accept |
Constructor Detail |
---|
public AcceptanceDockRelocatorMode(int onmask, int offmask)
InputEvent
.
onmask
- the keys that must be pressed to activate this modeoffmask
- the keys that must not be pressed to activate this modepublic AcceptanceDockRelocatorMode(ModifierMask mask)
mask
- the pattern of keys that must be pressed to activate this
modeMethod Detail |
---|
public void setMask(ModifierMask mask)
mask
- the maskpublic ModifierMask getMask()
public void setActive(DockController controller, boolean active)
DockRelocatorMode
setActive
in interface DockRelocatorMode
controller
- the controller for which this mode is usedactive
- true
if this mode should change
the behaviour, false
otherwisepublic boolean shouldBeActive(DockController controller, int modifiers)
DockRelocatorMode
MouseEvent
.
shouldBeActive
in interface DockRelocatorMode
controller
- the controller which might be affected by this modemodifiers
- the state of the mouse, see InputEvent.getModifiersEx()
true
if this mode should be activated, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |