Class MouseInfo

java.lang.Object
org.fest.swing.input.MouseInfo

class MouseInfo extends Object
Understands a description mouse-related operations.
  • Field Details

    • BUTTON_MASK

      static final int BUTTON_MASK
      See Also:
    • location

      private Point location
      Current mouse position, in component coordinates.
    • locationOnScreen

      private Point locationOnScreen
      Current mouse position, in screen coordinates.
    • componentStack

      private final Stack<WeakReference<Component>> componentStack
    • locationStack

      private final Stack<Point> locationStack
    • screenLocationStack

      private final Stack<Point> screenLocationStack
    • buttons

      private int buttons
    • modifiers

      private int modifiers
    • clickCount

      private int clickCount
  • Constructor Details

    • MouseInfo

      MouseInfo()
  • Method Details

    • clear

      void clear()
    • update

      void update(MouseEvent event, Point eventScreenLocation)
    • updateOnMousePressed

      private void updateOnMousePressed(MouseEvent event)
    • updateOnMouseReleased

      private void updateOnMouseReleased(MouseEvent event)
    • buttonUsed

      private int buttonUsed(MouseEvent event)
    • updateOnMouseEntered

      private void updateOnMouseEntered(MouseEvent event, Point eventScreenLocation)
    • updateOnMouseExited

      private void updateOnMouseExited(MouseEvent event)
    • component

      public Component 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

      private Point pointFrom(Point source)