com.levigo.jadice.swing.tool
Interface ModifierActivated

All Known Implementing Classes:
AreaSelectionTool, CrossHairTool, HoverLensTool, MouseGestureSupport, MouseWheelZoomTool, PanTool, TextSelectionTool

public interface ModifierActivated

An interface to be used for tools (and other components) which are activated using some combination of keyboard modifier(s) and/or mouse button(s).


Method Summary
 int getActivationModifiers()
          Get the mask of modifier keys (Shift, Control, Alt etc.) and mouse buttons (left, right etc.) to be used to activate this tool.
 void setActivationModifiers(int modifierAndButtonMask)
          Set the mask of modifier keys (Shift, Control, Alt etc.) and mouse buttons (left, right etc.) to be used to activate this tool.
 

Method Detail

setActivationModifiers

void setActivationModifiers(int modifierAndButtonMask)
Set the mask of modifier keys (Shift, Control, Alt etc.) and mouse buttons (left, right etc.) to be used to activate this tool. The modifier mask must be compatible with InputEvent.getModifiersEx(), i.e. it must use the InputEvent constants containing _DOWN_ in their name.

Parameters:
modifierAndButtonMask -
See Also:
InputEvent.ALT_DOWN_MASK, InputEvent.ALT_GRAPH_DOWN_MASK, InputEvent.CTRL_DOWN_MASK, InputEvent.SHIFT_DOWN_MASK, InputEvent.BUTTON1_DOWN_MASK, InputEvent.BUTTON2_DOWN_MASK, InputEvent.BUTTON3_DOWN_MASK

getActivationModifiers

int getActivationModifiers()
Get the mask of modifier keys (Shift, Control, Alt etc.) and mouse buttons (left, right etc.) to be used to activate this tool.

Returns:
the modifier and button mask
See Also:
setActivationModifiers(int)


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.