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 int
private int
private int
private final Stack<WeakReference<Component>>
private Point
Current mouse position, in component coordinates.private Point
Current mouse position, in screen coordinates.private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
buttons()
(package private) void
buttons
(int newButtons) private int
buttonUsed
(MouseEvent event) (package private) void
clear()
(package private) int
(package private) void
clickCount
(int newClickCount) (package private) Point
location()
(package private) Point
(package private) int
(package private) void
modifiers
(int newModifiers) private Point
(package private) void
update
(MouseEvent event, Point eventScreenLocation) private void
updateOnMouseEntered
(MouseEvent event, Point eventScreenLocation) private void
updateOnMouseExited
(MouseEvent event) private void
updateOnMousePressed
(MouseEvent event) private void
updateOnMouseReleased
(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
-