public abstract class AcceptanceDockRelocatorMode extends Object implements DockRelocatorMode, DockAcceptance
NO_COMBINATION, NO_COMBINATION_MASK, SCREEN_MASK, SCREEN_ONLY| Constructor and Description |
|---|
AcceptanceDockRelocatorMode(int onmask,
int offmask)
Creates a new mode.
|
AcceptanceDockRelocatorMode(ModifierMask mask)
Creates a new mode.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, acceptpublic 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
modepublic void setMask(ModifierMask mask)
mask - the maskpublic ModifierMask getMask()
public void setActive(DockController controller, boolean active)
DockRelocatorModesetActive in interface DockRelocatorModecontroller - the controller for which this mode is usedactive - true if this mode should change
the behaviour, false otherwisepublic boolean shouldBeActive(DockController controller, int modifiers)
DockRelocatorModeMouseEvent.shouldBeActive in interface DockRelocatorModecontroller - the controller which might be affected by this modemodifiers - the state of the mouse, see MouseEvent.getModifiersEx()true if this mode should be activated, false
otherwiseCopyright © 2017 Docking Frames. All rights reserved.