Packages

class MouseEvent extends InputEvent with SFXDelegate[javafx.scene.input.MouseEvent]

Source
MouseEvent.scala
Linear Supertypes
InputEvent, Event, SFXDelegate[javafx.scene.input.MouseEvent], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MouseEvent
  2. InputEvent
  3. Event
  4. SFXDelegate
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MouseEvent(source: Any, target: EventTarget, eventType: EventType[_ <: javafx.scene.input.MouseEvent], x: Double, y: Double, screenX: Double, screenY: Double, button: MouseButton, clickCount: Int, shiftDown: Boolean, controlDown: Boolean, altDown: Boolean, metaDown: Boolean, primaryButtonDown: Boolean, middleButtonDown: Boolean, secondaryButtonDown: Boolean, synthesized: Boolean, popupTrigger: Boolean, stillSincePress: Boolean, pickResult: PickResult)

    Constructs new MouseEvent event.

    Constructs new MouseEvent event.

    source

    the source of the event. Can be null.

    target

    the target of the event. Can be null.

    eventType

    The type of the event.

    x

    The x with respect to the source. Should be in scene coordinates if source == null or source is not a Node.

    y

    The y with respect to the source. Should be in scene coordinates if source == null or source is not a Node.

    screenX

    The x coordinate relative to screen.

    screenY

    The y coordinate relative to screen.

    button

    the mouse button used

    clickCount

    number of click counts

    shiftDown

    true if shift modifier was pressed.

    controlDown

    true if control modifier was pressed.

    altDown

    true if alt modifier was pressed.

    metaDown

    true if meta modifier was pressed.

    primaryButtonDown

    true if primary button was pressed.

    middleButtonDown

    true if middle button was pressed.

    secondaryButtonDown

    true if secondary button was pressed.

    synthesized

    if this event was synthesized

    popupTrigger

    whether this event denotes a popup trigger for current platform

    stillSincePress

    see { @link #isStillSincePress() }

    pickResult

    pick result. Can be null, in this case a 2D pick result without any further values is constructed based on the scene coordinates and target

    Since

    JavaFX 8.0

  2. new MouseEvent(eventType: EventType[_ <: javafx.scene.input.MouseEvent], x: Double, y: Double, screenX: Double, screenY: Double, button: MouseButton, clickCount: Int, shiftDown: Boolean, controlDown: Boolean, altDown: Boolean, metaDown: Boolean, primaryButtonDown: Boolean, middleButtonDown: Boolean, secondaryButtonDown: Boolean, synthesized: Boolean, popupTrigger: Boolean, stillSincePress: Boolean, pickResult: PickResult)

    Constructs new MouseEvent event with null source and target.

    Constructs new MouseEvent event with null source and target.

    eventType

    The type of the event.

    x

    The x with respect to the scene.

    y

    The y with respect to the scene.

    screenX

    The x coordinate relative to screen.

    screenY

    The y coordinate relative to screen.

    button

    the mouse button used

    clickCount

    number of click counts

    shiftDown

    true if shift modifier was pressed.

    controlDown

    true if control modifier was pressed.

    altDown

    true if alt modifier was pressed.

    metaDown

    true if meta modifier was pressed.

    primaryButtonDown

    true if primary button was pressed.

    middleButtonDown

    true if middle button was pressed.

    secondaryButtonDown

    true if secondary button was pressed.

    synthesized

    if this event was synthesized

    popupTrigger

    whether this event denotes a popup trigger for current platform

    stillSincePress

    see { @link #isStillSincePress() }

    pickResult

    pick result. Can be null, in this case a 2D pick result without any further values is constructed based on the scene coordinates

    Since

    JavaFX 8.0

  3. new MouseEvent(delegate: javafx.scene.input.MouseEvent)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def altDown: Boolean

    Whether or not the Alt modifier is down on this event.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def button: MouseButton

    Which, if any, of the mouse buttons is responsible for this event.

  7. def clickCount: Int

    Returns number of mouse clicks associated with this event.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def consume(): Unit

    Marks this Event as consumed.

    Marks this Event as consumed. This stops its further propagation.

    Definition Classes
    Event
  10. def consumed: Boolean

    Indicates whether this Event has been consumed by any filter or handler.

    Indicates whether this Event has been consumed by any filter or handler.

    Definition Classes
    Event
  11. def controlDown: Boolean

    Whether or not the Control modifier is down on this event.

  12. def copyFor(newSource: AnyRef, newTarget: EventTarget): Event

    Creates and returns a copy of this event with the specified event source and target.

    Creates and returns a copy of this event with the specified event source and target.

    Definition Classes
    Event
  13. val delegate: javafx.scene.input.MouseEvent

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    MouseEventInputEventEventSFXDelegate
  14. def dragDetect: Boolean

    Determines whether this event will be followed by DRAG_DETECTED event.

  15. def dragDetect_=(detected: Boolean): Unit

    Augments drag detection behavior.

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(ref: Any): Boolean

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  18. def eventType: EventType[_ <: javafx.scene.input.MouseEvent]

    Gets the event type of this event.

    Gets the event type of this event.

    Definition Classes
    MouseEventEvent
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def metaDown: Boolean

    Whether or not the Meta modifier is down on this event.

  23. def middleButtonDown: Boolean

    Returns true if middle button (button 2) is currently pressed.

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def pickResult: PickResult

    Returns information about the pick.

  28. def popupTrigger: Boolean

    Returns true if this mouse event is the popup menu trigger event for the platform.

  29. def primaryButtonDown: Boolean

    Returns true if primary button (button 1, usually the left) is currently pressed.

  30. def sceneX: Double
  31. def sceneY: Double
  32. def screenX: Double
  33. def screenY: Double
  34. def secondaryButtonDown: Boolean

    Returns true if secondary button (button 1, usually the right) is currently pressed.

  35. def shiftDown: Boolean

    Whether or not the Shift modifier is down on this event.

  36. def shortcutDown: Boolean

    Returns whether or not the host platform common shortcut modifier is down on this event.

  37. def source: AnyRef

    Returns the object on which the Event initially occurred.

    Returns the object on which the Event initially occurred.

    Definition Classes
    Event
  38. def stillSincePress: Boolean

    Indicates whether the mouse cursor stayed in the system-provided hysteresis area since last pressed event that occurred before this event.

  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def synthesized: Boolean

    Indicates whether this event is synthesized from using a touch screen instead of usual mouse event source devices like mouse or track pad.

  41. def target: EventTarget

    Returns the event target of this event.

    Returns the event target of this event.

    Definition Classes
    Event
  42. def toString(): String

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. def x: Double
  47. def y: Double
  48. def z: Double

    Depth position of the event relative to the origin of the MouseEvent's source.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from InputEvent

Inherited from Event

Inherited from SFXDelegate[javafx.scene.input.MouseEvent]

Inherited from AnyRef

Inherited from Any

Ungrouped