Packages

abstract class Node extends EventHandlerDelegate2 with Styleable with SFXDelegate[javafx.scene.Node]

Source
Node.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Node
  2. Styleable
  3. SFXDelegate
  4. EventHandlerDelegate2
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Node(delegate: javafx.scene.Node)

    creates a new ScalaFX Node from a JavaFX Node.

    creates a new ScalaFX Node from a JavaFX Node.

    delegate

    JavaFX Node

    Attributes
    protected

Type Members

  1. trait EventHandled extends AnyRef

    Trait used for handle events manipulation.

    Trait used for handle events manipulation. JavaFX class wrapped must have methods defined in scalafx.event.EventHandlerDelegate2.EventHandled Type:

    def addEventHandler   [E <: jfxe.Event](eventType: jfxe.EventType[E], eventHandler: jfxe.EventHandler[_ >: E])
    def removeEventHandler[E <: jfxe.Event](eventType: jfxe.EventType[E], eventHandler: jfxe.EventHandler[_ >: E])
    def addEventFilter    [E <: jfxe.Event](eventType: jfxe.EventType[E], eventHandler: jfxe.EventHandler[_ >: E])
    def removeEventFilter [E <: jfxe.Event](eventType: jfxe.EventType[E], eventHandler: jfxe.EventHandler[_ >: E])
    def buildEventDispatchChain(chain: jfxe.EventDispatchChain): jfxe.EventDispatchChain
    Definition Classes
    EventHandlerDelegate2
  2. sealed trait FilterMagnet[J <: javafx.event.Event, S <: SFXDelegate[J]] extends AnyRef

    Trait implementing Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Trait implementing Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Definition Classes
    EventHandlerDelegate2
  3. sealed trait HandlerMagnet[J <: javafx.event.Event, S <: SFXDelegate[J]] extends AnyRef

    Trait implementing Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Trait implementing Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Definition Classes
    EventHandlerDelegate2

Value Members

  1. object FilterMagnet

    Companion object implementing Magnet Pattern Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Companion object implementing Magnet Pattern Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Definition Classes
    EventHandlerDelegate2
  2. object HandlerMagnet

    Companion object implementing Magnet Pattern Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Companion object implementing Magnet Pattern Magnet Pattern to avoid compilation error "ambiguous reference to overloaded definition"

    Definition Classes
    EventHandlerDelegate2
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def accessibleHelp: ObjectProperty[String]

    The accessible help text for this Node.

    The accessible help text for this Node.

    The help text provides a more detailed description of the accessible text for a node. By default, if the node has a tool tip, this text is used.

    Default value is null.

    Since

    JavaFX 8u40

  7. def accessibleHelp_=(v: String): Unit
  8. def accessibleRole: ObjectProperty[javafx.scene.AccessibleRole]

    The accessible role for this Node.

    The accessible role for this Node.

    The screen reader uses the role of a node to determine the attributes and actions that are supported.

    Since

    JavaFX 8u40

  9. def accessibleRoleDescription: ObjectProperty[String]

    The role description of this Node.

    The role description of this Node.

    Noramlly, when a role is provided for a node, the screen reader speaks the role as well as the contents of the node. When this value is set, it is possbile to override the default. This is useful because the set of roles is predefined. For example, it is possible to set the role of a node to be a button, but have the role description be arbitrary text.

    Default value is null.

    Since

    JavaFX 8u40

  10. def accessibleRoleDescription_=(v: String): Unit
  11. def accessibleRole_=(v: AccessibleRole): Unit
  12. def accessibleText: ObjectProperty[String]

    The accessible text for this Node.

    The accessible text for this Node.

    This property is used to set the text that the screen reader will speak. If a node normally speaks text, that text is overriden. For example, a button usually speaks using the text in the control but will no longer do this when this value is set.

    Default value is null.

    Since

    JavaFX 8u40

  13. def accessibleText_=(v: String): Unit
  14. def addEventFilter[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Registers an event filter to this task.

    Registers an event filter to this task. Registered event filters get an event before any associated event handlers.

    E

    Event class

    eventType

    the type of the events to receive by the filter

    eventHandler

    the filter to register that will filter event

    Definition Classes
    EventHandlerDelegate2
  15. def addEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Registers an event handler to this task.

    Registers an event handler to this task. Any event filters are first processed, then the specified onFoo event handlers, and finally any event handlers registered by this method. As with other events in the scene graph, if an event is consumed, it will not continue dispatching.

    E

    Event class

    eventType

    the type of the events to receive by the handler

    eventHandler

    the handler to register that will manipulate event

    Definition Classes
    EventHandlerDelegate2
  16. def alignmentInParent: Pos

    Pseudo-property that indicates this Node position inside its respective parent.

  17. def alignmentInParent_=(p: Pos): Unit

    Sets this Node's alignment constraint inside its Parent.

    Sets this Node's alignment constraint inside its Parent. If set, will override the Parent's default alignment. Setting the value to null will remove the constraint. Internally it calls setAlignment(Node, Pos) static method JavaFX's BorderPane, StackPane and TilePane. Furthermore, it is set halignment and valignment property (using JavaFX Node's getProperties()) and called javafx.geometry.HPos) setHalignment and javafx.geometry.VPos) setValignment static methods from GridPane; this time using hpos and vpos from Pos argument. Besides, it sets this node alignment property towards JavaFX Node's getProperties() and setAlignment static method from

    Do not confuse with alignment property from scalafx.delegate.AlignmentDelegate! It refers to alignment inside element, while alignmentInParent refers to element's alignment inside its parent.

    p

    New node's Position

  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def autosize(): Unit

    If the node is resizable, will set its layout bounds to its current preferred width and height.

  20. def baselineOffset: Double

    The 'alphabetic' (or 'roman') baseline offset from the node's layoutBounds.minY location that should be used when this node is being vertically aligned by baseline with other nodes.

  21. def blendMode: ObjectProperty[BlendMode]

    The BlendMode used to blend this individual node into the scene behind it.

  22. def blendMode_=(v: BlendMode): Unit
  23. def boundsInLocal: ReadOnlyObjectProperty[Bounds]

    The rectangular bounds of this Node in the node's untransformed local coordinate space.

  24. def boundsInParent: ReadOnlyObjectProperty[Bounds]

    The rectangular bounds of this Node which include its transforms.

  25. def buildEventDispatchChain(chain: EventDispatchChain): EventDispatchChain

    Construct an event dispatch chain for this target.

    Construct an event dispatch chain for this target.

    Definition Classes
    EventHandlerDelegate2
  26. def cache: BooleanProperty

    A performance hint to the system to indicate that this Node should be cached as a bitmap.

  27. def cacheHint: ObjectProperty[javafx.scene.CacheHint]

    Additional hint for controlling bitmap caching.

  28. def cacheHint_=(v: CacheHint): Unit
  29. def cache_=(v: Boolean): Unit
  30. def clip: ObjectProperty[javafx.scene.Node]

    Specifies a Node to use to define the the clipping shape for this Node.

  31. def clip_=(v: Node): Unit
  32. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  33. def contains(localPoint: Point2D): Boolean

    Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node.

  34. def contains(localX: Double, localY: Double): Boolean

    Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node.

  35. def contentBias: Orientation

    Returns the orientation of a node's resizing bias for layout purposes.

    Returns the orientation of a node's resizing bias for layout purposes. If the node type has no bias, returns null. If the node is resizable and it's height depends on its width, returns HORIZONTAL, else if its width depends on its height, returns VERTICAL.

    Resizable subclasses should override this method to return an appropriate value.

    returns

    orientation of width/height dependency or null if there is none

  36. def cssMetaData: Seq[CssMetaData[_ <: Styleable, _]]

    The CssMetaData of this Styleable.

    The CssMetaData of this Styleable.

    Definition Classes
    Styleable
  37. def cursor: ObjectProperty[javafx.scene.Cursor]

    Defines the mouse cursor for this Node and subnodes.

  38. def cursor_=(v: Cursor): Unit
  39. val delegate: javafx.scene.Node

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    NodeSFXDelegate
  40. def depthTest: ObjectProperty[javafx.scene.DepthTest]

    Indicates whether depth testing is used when rendering this node.

  41. def depthTest_=(v: DepthTest): Unit
  42. def disable: BooleanProperty

    Sets the individual disabled state of this Node.

  43. def disable_=(v: Boolean): Unit
  44. def disabled: ReadOnlyBooleanProperty

    Indicates whether or not this Node is disabled.

  45. def effect: ObjectProperty[Effect]

    Specifies an effect to apply to this Node.

  46. def effect_=(v: Effect): Unit
  47. def effectiveNodeOrientation: ReadOnlyObjectProperty[NodeOrientation]

    The effective orientation of a node resolves the inheritance of node orientation, returning either left-to-right or right-to-left.

  48. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. 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
  50. def eventDispatcher: ObjectProperty[EventDispatcher]

    Specifies the event dispatcher for this node.

  51. def eventDispatcher_=(v: EventDispatcher): Unit
  52. def eventHandlerDelegate: EventHandled

    Returns a object that implements scalafx.event.EventHandlerDelegate2.EventHandled.

    Returns a object that implements scalafx.event.EventHandlerDelegate2.EventHandled.

    Definition Classes
    NodeEventHandlerDelegate2
  53. def filterEvent[J <: Event, S <: Event with SFXDelegate[J]](eventType: EventType[J])(filter: FilterMagnet[J, S]): Subscription

    Registers an event filter.

    Registers an event filter. Registered event filters get an event before any associated event handlers.

    Example of filtering mouse events

    pane.filterEvent(MouseEvent.Any) {
      me: MouseEvent => {
        me.eventType match {
          case MouseEvent.MousePressed => {
            ...
          }
          case MouseEvent.MouseDragged => {
            ...
          }
          case _ => {
            ...
          }
        }
      }
    }

    or

    pane.filterEvent(MouseEvent.Any) { () => println("Some mouse event handled") }
    J

    type JavaFX delegate of the event

    S

    ScalaFX type for J type wrapper.

    eventType

    type of events that will be handled.

    filter

    code handling the event, see examples above.

    Definition Classes
    EventHandlerDelegate2
  54. def fireEvent(event: Event): Unit

    Fires the specified event.

  55. def focusTraversable: BooleanProperty

    Specifies whether this Node should be a part of focus traversal cycle.

  56. def focusTraversable_=(v: Boolean): Unit
  57. def focused: ReadOnlyBooleanProperty

    Indicates whether this Node currently has the input focus.

  58. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  59. def getId: String

    The id of this Styleable.

    The id of this Styleable.

    IMPLEMENTATION NOTE: For this method was adopted the name getId instead id to not conflict with its subclasses already have a method with this name which returns a StringProperty.

    Definition Classes
    Styleable
  60. def getStyle: String

    A string representation of the CSS style associated with this specific Node.

    A string representation of the CSS style associated with this specific Node.

    IMPLEMENTATION NOTE: For this method was adopted the name getStyle instead style to not conflict with its subclasses already have a method with this name which returns a StringProperty.

    Definition Classes
    Styleable
  61. def handleEvent[J <: Event, S <: Event with SFXDelegate[J]](eventType: EventType[J])(handler: HandlerMagnet[J, S]): Subscription

    Registers an event handler.

    Registers an event handler. The handler is called when the node receives an Event of the specified type during the bubbling phase of event delivery.

    Example of handling mouse events

    pane.handleEvent(MouseEvent.Any) {
      me: MouseEvent => {
        me.eventType match {
          case MouseEvent.MousePressed => ...
          case MouseEvent.MouseDragged => ...
          case _                       => {}
        }
      }
    }

    or

    pane.handleEvent(MouseEvent.Any) { () => println("Some mouse event handled") }
    J

    type JavaFX delegate of the event

    S

    ScalaFX type for J type wrapper.

    eventType

    type of events that will be handled.

    handler

    code handling the event, see examples above.

    returns

    Returns a subscription that can be used to cancel/remove this event handler

    Definition Classes
    EventHandlerDelegate2
  62. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  63. def hgrow: Priority

    Pseudo-property that returns this Node's hgrow constraint if set.

    Pseudo-property that returns this Node's hgrow constraint if set.

    returns

    the horizontal grow priority for the child or null if no priority was set

  64. def hgrow_=(p: Priority): Unit

    Sets the horizontal grow priority for this Node inside its parent.

    Sets the horizontal grow priority for this Node inside its parent. Setting the value to null will remove the constraint. Internally it calls setHgrow(Node, Priority) static method from JavaFX's GridPane and HBox besides fill this Node's "hgrow" property.

    p

    the horizontal grow priority for this Node

  65. def hover: ReadOnlyBooleanProperty

    Whether or not this Node is being hovered over.

  66. def id: StringProperty

    The id of this Node.

  67. def id_=(v: String): Unit
  68. def inputMethodRequests: ObjectProperty[InputMethodRequests]

    Property holding InputMethodRequests.

  69. def inputMethodRequests_=(v: InputMethodRequests): Unit
  70. def intersects(localX: Double, localY: Double, localWidth: Double, localHeight: Double): Boolean

    Returns true if the given rectangle (specified in the local coordinate space of this Node) intersects the shape of this Node.

  71. def intersects(localBounds: Bounds): Boolean

    Returns true if the given bounds (specified in the local coordinate space of this Node) intersects the shape of this Node.

  72. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  73. def layoutBounds: ReadOnlyObjectProperty[Bounds]

    The rectangular bounds that should be used for layout calculations for this node.

  74. def layoutX: DoubleProperty

    Defines the x coordinate of the translation that is added to this Node's transform for the purpose of layout.

  75. def layoutX_=(v: Double): Unit
  76. def layoutY: DoubleProperty

    Defines the y coordinate of the translation that is added to this Node's transform for the purpose of layout.

  77. def layoutY_=(v: Double): Unit
  78. def localToParent(localPoint: Point2D): Point2D

    Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

  79. def localToParent(localX: Double, localY: Double): Point2D

    Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

  80. def localToParent(localBounds: Bounds): Bounds

    Transforms a bounds from the local coordinate space of this Node into the coordinate space of its parent.

  81. def localToParentTransform: Transform

    An affine transform that holds the computed local-to-parent transform.

    An affine transform that holds the computed local-to-parent transform. This is the concatenation of all transforms in this node, including all of the convenience transforms.

    Since

    2.2

  82. def localToScene(localPoint: Point2D): Point2D

    Transforms a point from the local coordinate space of this Node into the coordinate space of its Scene.

  83. def localToScene(localX: Double, localY: Double): Point2D

    Transforms a point from the local coordinate space of this Node into the coordinate space of its Scene.

  84. def localToScene(localBounds: Bounds): Bounds

    Transforms a bounds from the local coordinate space of this Node into the coordinate space of its Scene.

  85. def localToSceneTransform: Transform

    An affine transform that holds the computed local-to-scene transform.

    An affine transform that holds the computed local-to-scene transform. This is the concatenation of all transforms in this node's parents and in this node, including all of the convenience transforms.

    Since

    2.2

  86. def lookup(selector: String): Node

    Finds this Node, or the first sub-node, based on the given CSS selector.

  87. def lookupAll(selector: String): Set[javafx.scene.Node]

    Finds all Nodes, including this one and any children, which match the given CSS selector.

  88. def managed: BooleanProperty

    Defines whether or not this node's layout will be managed by it's parent.

  89. def managed_=(v: Boolean): Unit
  90. def margin: Insets

    Pseudo-property that returns this Node's margin constraint inside its Parent if set.

    Pseudo-property that returns this Node's margin constraint inside its Parent if set.

    returns

    this Node's margin constraint inside its Parent or null if no margin was set.

  91. def margin_=(i: Insets): Unit

    Sets this Node's margin constraint inside its Parent if set.

    Sets this Node's margin constraint inside its Parent if set. If set, the parent will layout the child with the margin space around it. Setting the value to null will remove the constraint. Internally it calls setMargin(Node, Insets) static method from JavaFX's BorderPane, FlowPane, GridPane, HBox, StackPane and VBox besides fill this Node's "margin" property.

    i

    The margin of space around this Node inside its parent.

  92. def maxHeight(height: Double): Double

    Returns the node's maximum height for use in layout calculations.

  93. def maxWidth(width: Double): Double

    Returns the node's maximum width for use in layout calculations.

  94. def minHeight(height: Double): Double

    Returns the node's minimum height for use in layout calculations.

  95. def minWidth(width: Double): Double

    Returns the node's minimum width for use in layout calculations.

  96. def mouseTransparent: BooleanProperty

    If true, this node (together with all its children) is completely transparent to mouse events.

  97. def mouseTransparent_=(v: Boolean): Unit
  98. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  99. def nodeOrientation: ObjectProperty[NodeOrientation]

    Node orientation describes the flow of visual data within a node.

  100. def nodeOrientation_=(v: NodeOrientation): Unit
  101. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  102. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  103. def onContextMenuRequested: ObjectProperty[EventHandler[_ >: ContextMenuEvent]]

    Defines a function to be called when a context menu has been requested on this Node.

  104. def onContextMenuRequested_=(v: EventHandler[_ >: ContextMenuEvent]): Unit
  105. def onDragDetected: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when drag gesture has been detected.

  106. def onDragDetected_=(v: EventHandler[_ >: MouseEvent]): Unit
  107. def onDragDone: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when this Node is a drag and drop gesture source after its data has been dropped on a drop target.

  108. def onDragDone_=(v: EventHandler[_ >: DragEvent]): Unit
  109. def onDragDropped: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when the mouse button is released on this Node during drag and drop gesture.

  110. def onDragDropped_=(v: EventHandler[_ >: DragEvent]): Unit
  111. def onDragEntered: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture enters this Node.

  112. def onDragEntered_=(v: EventHandler[_ >: DragEvent]): Unit
  113. def onDragExited: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture exits this Node.

  114. def onDragExited_=(v: EventHandler[_ >: DragEvent]): Unit
  115. def onDragOver: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture progresses within this Node.

  116. def onDragOver_=(v: EventHandler[_ >: DragEvent]): Unit
  117. def onInputMethodTextChanged: ObjectProperty[EventHandler[_ >: InputMethodEvent]]

    Defines a function to be called when this Node has input focus and the input method text has changed.

  118. def onInputMethodTextChanged_=(v: EventHandler[_ >: InputMethodEvent]): Unit
  119. def onKeyPressed: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when this Node or its child Node has input focus and a key has been pressed.

  120. def onKeyPressed_=(v: EventHandler[_ >: KeyEvent]): Unit
  121. def onKeyReleased: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when this Node or its child Node has input focus and a key has been released.

  122. def onKeyReleased_=(v: EventHandler[_ >: KeyEvent]): Unit
  123. def onKeyTyped: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when this Node or its child Node has input focus and a key has been typed.

  124. def onKeyTyped_=(v: EventHandler[_ >: KeyEvent]): Unit
  125. def onMouseClicked: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been clicked (pressed and released) on this Node.

  126. def onMouseClicked_=(v: EventHandler[_ >: MouseEvent]): Unit
  127. def onMouseDragEntered: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture enters this Node.

  128. def onMouseDragEntered_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  129. def onMouseDragExited: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture leaves this Node.

  130. def onMouseDragExited_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  131. def onMouseDragOver: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture progresses within this Node.

  132. def onMouseDragOver_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  133. def onMouseDragReleased: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture ends (by releasing mouse button) within this Node.

  134. def onMouseDragReleased_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  135. def onMouseDragged: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button is pressed on this Node and then dragged.

  136. def onMouseDragged_=(v: EventHandler[_ >: MouseEvent]): Unit
  137. def onMouseEntered: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when the mouse enters this Node.

  138. def onMouseEntered_=(v: EventHandler[_ >: MouseEvent]): Unit
  139. def onMouseExited: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when the mouse exits this Node.

  140. def onMouseExited_=(v: EventHandler[_ >: MouseEvent]): Unit
  141. def onMouseMoved: ObjectProperty[EventHandler[_ >: MouseEvent]]
  142. def onMouseMoved_=(v: EventHandler[_ >: MouseEvent]): Unit
  143. def onMousePressed: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been pressed on this Node.

  144. def onMousePressed_=(v: EventHandler[_ >: MouseEvent]): Unit
  145. def onMouseReleased: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been released on this Node.

  146. def onMouseReleased_=(v: EventHandler[_ >: MouseEvent]): Unit
  147. def onRotate: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when user performs a rotation action.

    Defines a function to be called when user performs a rotation action.

    Since

    2.2

  148. def onRotate_=(v: EventHandler[_ >: RotateEvent]): Unit
  149. def onRotationFinished: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when a rotation gesture ends.

    Defines a function to be called when a rotation gesture ends.

    Since

    2.2

  150. def onRotationFinished_=(v: EventHandler[_ >: RotateEvent]): Unit
  151. def onRotationStarted: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when a rotation gesture starts.

    Defines a function to be called when a rotation gesture starts.

    Since

    2.2

  152. def onRotationStarted_=(v: EventHandler[_ >: RotateEvent]): Unit
  153. def onScroll: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when user performs a scrolling action.

  154. def onScrollFinished: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when a Scroll gesture ends.

    Defines a function to be called when a Scroll gesture ends.

    Since

    2.2

  155. def onScrollFinished_=(v: EventHandler[_ >: ScrollEvent]): Unit
  156. def onScrollStarted: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when a Scroll gesture starts.

    Defines a function to be called when a Scroll gesture starts.

    Since

    2.2

  157. def onScrollStarted_=(v: EventHandler[_ >: ScrollEvent]): Unit
  158. def onScroll_=(v: EventHandler[_ >: ScrollEvent]): Unit
  159. def onSwipeDown: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Down gesture starts.

    Defines a function to be called when a Swipe Down gesture starts.

    Since

    2.2

  160. def onSwipeDown_=(v: EventHandler[_ >: SwipeEvent]): Unit
  161. def onSwipeLeft: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Down gesture starts.

    Defines a function to be called when a Swipe Down gesture starts.

    Since

    2.2

  162. def onSwipeLeft_=(v: EventHandler[_ >: SwipeEvent]): Unit
  163. def onSwipeRight: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Right gesture starts.

    Defines a function to be called when a Swipe Right gesture starts.

    Since

    2.2

  164. def onSwipeRight_=(v: EventHandler[_ >: SwipeEvent]): Unit
  165. def onSwipeUp: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Up gesture starts.

    Defines a function to be called when a Swipe Up gesture starts.

    Since

    2.2

  166. def onSwipeUp_=(v: EventHandler[_ >: SwipeEvent]): Unit
  167. def onTouchMoved: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Moved action.

    Defines a function to be called when user performs a Touch Moved action.

    Since

    2.2

  168. def onTouchMoved_=(v: EventHandler[_ >: TouchEvent]): Unit
  169. def onTouchPressed: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Pressed action.

    Defines a function to be called when user performs a Touch Pressed action.

    Since

    2.2

  170. def onTouchPressed_=(v: EventHandler[_ >: TouchEvent]): Unit
  171. def onTouchReleased: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Released action.

    Defines a function to be called when user performs a Touch Released action.

    Since

    2.2

  172. def onTouchReleased_=(v: EventHandler[_ >: TouchEvent]): Unit
  173. def onTouchStationary: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Stationary action.

    Defines a function to be called when user performs a Touch Stationary action.

    Since

    2.2

  174. def onTouchStationary_=(v: EventHandler[_ >: TouchEvent]): Unit
  175. def onZoom: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when user performs a Touch action.

    Defines a function to be called when user performs a Touch action.

    Since

    2.2

  176. def onZoomFinished: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when a Zoom gesture ends.

    Defines a function to be called when a Zoom gesture ends.

    Since

    2.2

  177. def onZoomFinished_=(v: EventHandler[_ >: ZoomEvent]): Unit
  178. def onZoomStarted: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when a Zoom gesture starts.

    Defines a function to be called when a Zoom gesture starts.

    Since

    2.2

  179. def onZoomStarted_=(v: EventHandler[_ >: ZoomEvent]): Unit
  180. def onZoom_=(v: EventHandler[_ >: ZoomEvent]): Unit
  181. def opacity: DoubleProperty

    Specifies how opaque (that is, solid) the Node appears.

  182. def opacity_=(v: Double): Unit
  183. def parent: ReadOnlyObjectProperty[javafx.scene.Parent]

    The parent of this Node.

  184. def parentToLocal(parentPoint: Point2D): Point2D

    Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

  185. def parentToLocal(parentX: Double, parentY: Double): Point2D

    Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

  186. def parentToLocal(parentBounds: Bounds): Bounds

    Transforms a rectangle from the coordinate space of the parent into the local coordinate space of this Node.

  187. def pickOnBounds: BooleanProperty

    Defines how the picking computation is done for this node when triggered by a MouseEvent or a contains function call.

  188. def pickOnBounds_=(v: Boolean): Unit
  189. def pressed: ReadOnlyBooleanProperty

    Whether or not the Node is pressed.

  190. def pseudoClassStates: ObservableSet[PseudoClass]

    The pseudo-class state of this Styleable.

    The pseudo-class state of this Styleable.

    Definition Classes
    Styleable
  191. def relocate(x: Double, y: Double): Unit

    Sets the node's layoutX and layoutY translation properties in order to relocate this node to the x,y location in the parent.

  192. def removeEventFilter[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Unregisters a previously registered event filter from this task.

    Unregisters a previously registered event filter from this task. One filter might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the filter.

    E

    Event class

    eventType

    the event type from which to unregister

    eventHandler

    the filter to unregister

    Definition Classes
    EventHandlerDelegate2
  193. def removeEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Unregisters a previously registered event handler from this task.

    Unregisters a previously registered event handler from this task. One handler might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the handler.

    E

    Event class

    eventType

    the event type from which to unregister

    eventHandler

    the handler to unregister

    Definition Classes
    EventHandlerDelegate2
  194. def requestFocus(): Unit

    Requests that this Node get the input focus, and that this Node's top-level ancestor become the focused window.

  195. def resize(width: Double, height: Double): Unit

    If the node is resizable, will set its layout bounds to the specified width and height.

  196. def resizeRelocate(x: Double, y: Double, width: Double, height: Double): Unit

    If the node is resizable, will set its layout bounds to the specified width and height.

  197. def rotate: DoubleProperty

    Defines the angle of rotation about the Node's center, measured in degrees.

  198. def rotate_=(v: Double): Unit
  199. def rotationAxis: ObjectProperty[Point3D]

    Defines the axis of rotation of this Node.

  200. def rotationAxis_=(v: Point3D): Unit
  201. def scaleX: DoubleProperty

    Defines the factor by which coordinates are scaled about the center of the object along the X axis of this Node.

  202. def scaleX_=(v: Double): Unit
  203. def scaleY: DoubleProperty

    Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this Node.

  204. def scaleY_=(v: Double): Unit
  205. def scaleZ: DoubleProperty

    Defines the factor by which coordinates are scaled about the center of the object along the Z axis of this Node.

  206. def scaleZ_=(v: Double): Unit
  207. def scene: ReadOnlyObjectProperty[javafx.scene.Scene]

    The Scene that this Node is part of.

  208. def sceneToLocal(scenePoint: Point2D): Point2D

    Transforms a point from the coordinate space of the Scene into the local coordinate space of this Node.

  209. def sceneToLocal(sceneX: Double, sceneY: Double): Point2D

    Transforms a point from the coordinate space of the Scene into the local coordinate space of this Node.

  210. def sceneToLocal(sceneBounds: Bounds): Bounds

    Transforms a rectangle from the coordinate space of the Scene into the local coordinate space of this Node.

  211. def snapshot(callback: (SnapshotResult) => Unit, params: SnapshotParameters, image: WritableImage): Unit

    Takes a snapshot of this node at the next frame and calls the specified callback method when the image is ready.

    Takes a snapshot of this node at the next frame and calls the specified callback method when the image is ready. Arguments params and image can be null.

  212. def snapshot(params: SnapshotParameters, image: WritableImage): WritableImage

    Takes a snapshot of this node and returns the rendered image when it is ready.

  213. def startDragAndDrop(transferModes: TransferMode*): Dragboard

    Confirms a potential drag and drop gesture that is recognized over this Node.

  214. def startFullDrag(): Unit

    Starts a full press-drag-release gesture with this node as gesture source.

  215. def style: StringProperty

    A string representation of the CSS style associated with this specific Node.

  216. def styleClass: ObservableBuffer[String]

    A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.

    A list of String identifiers which can be used to logically group Nodes, specifically for an external style engine.

    Definition Classes
    Styleable
  217. def styleClass_=(c: Iterable[String]): Unit

    Sets the list of CSS styles classes, replacing the prior content.

    Sets the list of CSS styles classes, replacing the prior content. If you want append to current content, use add or similar.

    c

    list of CSS styles classes to replace prior content.

  218. def style_=(v: String): Unit
  219. def styleableNode: Node

    Returns the Node that represents this Styleable object.

    Returns the Node that represents this Styleable object. This method should be overridden in cases where the Styleable is not itself a Node, so that it may optionally return the relevant root node representation of itself. By default this method returns null, which can mean that either the Styleable itself is a Node, or if that is not the case, that the Styleable does not have a node representation available at the time of request.

    returns

    the Node that represents this Styleable object

    Definition Classes
    Styleable
    Since

    9

  220. def styleableParent: Styleable

    The parent of this Styleable, or null if there is no parent.

    The parent of this Styleable, or null if there is no parent.

    Definition Classes
    Styleable
  221. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  222. def toBack(): Unit

    Moves this Node to the back of its sibling nodes in terms of z-order.

  223. def toFront(): Unit

    Moves this Node to the front of its sibling nodes in terms of z-order.

  224. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  225. def transforms: ObservableBuffer[Transform]

    Defines the ObservableList of Transform objects to be applied to this Node.

  226. def transforms_=(c: Iterable[Transform]): Unit

    Sets the list of transforms, replacing the prior content.

    Sets the list of transforms, replacing the prior content. If you want append to current content, use add or similar.

    c

    list of transforms to replace prior content.

  227. def translateX: DoubleProperty

    Defines the x coordinate of the translation that is added to this Node's transform.

  228. def translateX_=(v: Double): Unit
  229. def translateY: DoubleProperty

    Defines the y coordinate of the translation that is added to this Node's transform.

  230. def translateY_=(v: Double): Unit
  231. def translateZ: DoubleProperty

    Defines the Z coordinate of the translation that is added to the transformed coordinates of this Node.

  232. def translateZ_=(v: Double): Unit
  233. def typeSelector: String

    The type of this Styleable that is to be used in selector matching.

    The type of this Styleable that is to be used in selector matching.

    Definition Classes
    Styleable
  234. def userData: AnyRef

    Returns a previously set Object property, or null if no such property has been set using the setUserData(AnyRef) method.

  235. def userData_=(v: AnyRef): Unit
  236. def vgrow: Priority

    Pseudo-property that returns this Node's vgrow constraint if set.

    Pseudo-property that returns this Node's vgrow constraint if set.

    returns

    the vertical grow priority for the child or null if no priority was set

  237. def vgrow_=(p: Priority): Unit

    Sets the vertical grow priority for this Node inside its parent.

    Sets the vertical grow priority for this Node inside its parent. Setting the value to null will remove the constraint. Internally it calls setVgrow(Node, Priority) static method from JavaFX's GridPane and VBox besides fill this Node's "vgrow" property.

    p

    the vertical grow priority for this Node

  238. def viewOrder: DoubleProperty

    Defines the rendering and picking order of this Node within its parent.

    Defines the rendering and picking order of this Node within its parent.

    This property is used to alter the rendering and picking order of a node within its parent without reordering the parent's children list. For example, this can be used as a more efficient way to implement transparency sorting. To do this, an application can assign the viewOrder value of each node to the computed distance between that node and the viewer.

    The parent will traverse its children in decreasing viewOrder order. This means that a child with a lower viewOrder will be in front of a child with a higher viewOrder. If two children have the same viewOrder, the parent will traverse them in the order they appear in the parent's children list.

    However, viewOrder does not alter the layout and focus traversal order of this Node within its parent. A parent always traverses its children list in order when doing layout or focus traversal.

    returns

    the view order for this Node

    Since

    9 Default value is 0.0

  239. def viewOrder_(value: Double): Unit
  240. def visible: BooleanProperty

    Specifies whether this Node and any subnodes should be rendered as part of the scene graph.

  241. def visible_=(v: Boolean): Unit
  242. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  243. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  244. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from Styleable

Inherited from SFXDelegate[javafx.scene.Node]

Inherited from EventHandlerDelegate2

Inherited from AnyRef

Inherited from Any

Ungrouped