Package org.fest.swing.input
Class MouseInfo
java.lang.Object
org.fest.swing.input.MouseInfo
Understands a description mouse-related operations.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate intprivate intprivate final Stack<WeakReference<Component>>private PointCurrent mouse position, in component coordinates.private PointCurrent mouse position, in screen coordinates.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intbuttons()(package private) voidbuttons(int newButtons) private intbuttonUsed(MouseEvent event) (package private) voidclear()(package private) int(package private) voidclickCount(int newClickCount) (package private) Pointlocation()(package private) Point(package private) int(package private) voidmodifiers(int newModifiers) private Point(package private) voidupdate(MouseEvent event, Point eventScreenLocation) private voidupdateOnMouseEntered(MouseEvent event, Point eventScreenLocation) private voidupdateOnMouseExited(MouseEvent event) private voidupdateOnMousePressed(MouseEvent event) private voidupdateOnMouseReleased(MouseEvent event)
-
Field Details
-
BUTTON_MASK
static final int BUTTON_MASK- See Also:
-
location
Current mouse position, in component coordinates. -
locationOnScreen
Current mouse position, in screen coordinates. -
componentStack
-
locationStack
-
screenLocationStack
-
buttons
private int buttons -
modifiers
private int modifiers -
clickCount
private int clickCount
-
-
Constructor Details
-
MouseInfo
MouseInfo()
-
-
Method Details
-
clear
void clear() -
update
-
updateOnMousePressed
-
updateOnMouseReleased
-
buttonUsed
-
updateOnMouseEntered
-
updateOnMouseExited
-
component
-
buttons
int buttons() -
buttons
void buttons(int newButtons) -
modifiers
int modifiers() -
modifiers
void modifiers(int newModifiers) -
clickCount
int clickCount() -
clickCount
void clickCount(int newClickCount) -
location
Point location() -
locationOnScreen
Point locationOnScreen() -
pointFrom
-