Class MouseMoved.Builder

java.lang.Object
com.teamdev.jxbrowser.ui.event.MouseMoved.Builder
Enclosing interface:
MouseMoved

public static final class MouseMoved.Builder extends Object
A builder of MouseMoved.

Builders are created by invoking MouseMoved.newBuilder(Point). Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

  • Method Details

    • locationOnScreen

      public MouseMoved.Builder locationOnScreen(Point locationOnScreen)
      Sets the mouse position relative to the bounds of the screen.
      Parameters:
      locationOnScreen - the mouse position
      Returns:
      this builder
    • keyModifiers

      public MouseMoved.Builder keyModifiers(KeyModifiers keyModifiers)
      Sets the keyboard modifiers applied.
      Parameters:
      keyModifiers - the keyboard modifiers
      Returns:
      this builder
    • mouseModifiers

      public MouseMoved.Builder mouseModifiers(MouseModifiers mouseModifiers)
      Sets the mouse modifiers applied.
      Parameters:
      mouseModifiers - the mouse modifiers
      Returns:
      this builder
    • build

      public MouseMoved build()
      Returns a new MouseMoved instance built from the current state of this builder.
      Returns:
      a new MouseMoved instance