jfig.utils
Class MouseMapper

java.lang.Object
  extended byjfig.utils.MouseMapper

public class MouseMapper
extends java.lang.Object


Field Summary
(package private) static boolean controlClickIsRightClick
           
(package private) static boolean doubleClickIsMiddleClick
           
(package private) static boolean remap
           
(package private) static boolean shiftClickIsMiddleClick
           
 
Constructor Summary
MouseMapper()
           
 
Method Summary
static boolean checkDoubleClickIsMiddleClick(java.awt.event.MouseEvent evt)
          check whether doubleClicIsMiddleClick is enabled; if so, return this method should really be called checkDoubleLeftClickIsMiddleClick...
static boolean checkShiftClickIsMiddleClick(java.awt.event.MouseEvent evt)
           
static boolean isAltDown(java.awt.event.InputEvent evt)
          normally, indicates middle mouse button.
static boolean isControlDown(java.awt.event.InputEvent evt)
           
static boolean isLeftClick(java.awt.event.InputEvent evt)
           
static boolean isMetaDown(java.awt.event.InputEvent evt)
          normally, indicates right mouse button.
static boolean isMiddleClick(java.awt.event.MouseEvent evt)
           
static boolean isRemap()
           
static boolean isRightClick(java.awt.event.InputEvent evt)
           
static boolean isShiftDown(java.awt.event.InputEvent evt)
           
static void setRemap(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remap

static boolean remap

doubleClickIsMiddleClick

static boolean doubleClickIsMiddleClick

shiftClickIsMiddleClick

static boolean shiftClickIsMiddleClick

controlClickIsRightClick

static boolean controlClickIsRightClick
Constructor Detail

MouseMapper

public MouseMapper()
Method Detail

isRemap

public static boolean isRemap()

setRemap

public static void setRemap(boolean b)

isAltDown

public static boolean isAltDown(java.awt.event.InputEvent evt)
normally, indicates middle mouse button. If remap is active, this is true for the 'meta' modifier key or right mouse button.


isMetaDown

public static boolean isMetaDown(java.awt.event.InputEvent evt)
normally, indicates right mouse button. If remap is active, this is true for the 'alt' modifier key or middle mouse button.


isControlDown

public static boolean isControlDown(java.awt.event.InputEvent evt)

isShiftDown

public static boolean isShiftDown(java.awt.event.InputEvent evt)

checkShiftClickIsMiddleClick

public static boolean checkShiftClickIsMiddleClick(java.awt.event.MouseEvent evt)

checkDoubleClickIsMiddleClick

public static boolean checkDoubleClickIsMiddleClick(java.awt.event.MouseEvent evt)
check whether doubleClicIsMiddleClick is enabled; if so, return this method should really be called checkDoubleLeftClickIsMiddleClick...


isMiddleClick

public static boolean isMiddleClick(java.awt.event.MouseEvent evt)

isRightClick

public static boolean isRightClick(java.awt.event.InputEvent evt)

isLeftClick

public static boolean isLeftClick(java.awt.event.InputEvent evt)