scalafx.scene

Node

abstract class Node extends EventHandlerDelegate with SFXDelegate[Node]

Wraps http://docs.oracle.com/javafx/2/api/javafx/scene/Node.html.

Linear Supertypes
SFXDelegate[Node], EventHandlerDelegate, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Node
  2. SFXDelegate
  3. EventHandlerDelegate
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Node(delegate: Node)

    Attributes
    protected

Type Members

  1. type EventHandled = AnyRef { ... /* 5 definitions in type refinement */ }

    Definition Classes
    EventHandlerDelegate
  2. sealed trait FilterMagnet[J <: Event, S <: SFXDelegate[J]] extends AnyRef

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

  3. sealed trait HandlerMagnet[J <: Event, S <: SFXDelegate[J]] extends AnyRef

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

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object FilterMagnet extends AnyRef

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

  7. object HandlerMagnet extends AnyRef

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

  8. def addEventFilter[E <: Event](eventType: EventType[E], eventHandler: javafx.event.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
    EventHandlerDelegate
  9. def addEventHandler[E <: Event](eventType: EventType[E], eventHandler: javafx.event.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
    EventHandlerDelegate
  10. def alignmentInParent: Pos

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

  11. 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 AlignmentDelegate! It refers to alignment inside element, while alignmentInParent refers to element's alignment inside its parent.

    p

    New node's Position

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def autosize(): Unit

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

  14. def baselineOffset: Double

    The 'alphabetic' (or 'roman') baseline offset from the node's layoutBounds.

    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.

  15. def blendMode: ObjectProperty[BlendMode]

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

  16. def blendMode_=(v: BlendMode): Unit

  17. def boundsInLocal: ReadOnlyObjectProperty[Bounds]

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

  18. def boundsInParent: ReadOnlyObjectProperty[Bounds]

    The rectangular bounds of this Node which include its transforms.

  19. def buildEventDispatchChain(chain: EventDispatchChain): EventDispatchChain

    Construct an event dispatch chain for this target.

    Construct an event dispatch chain for this target.

    Definition Classes
    EventHandlerDelegate
  20. def cache: BooleanProperty

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

  21. def cacheHint: ObjectProperty[CacheHint]

    Additional hint for controlling bitmap caching.

  22. def cacheHint_=(v: CacheHint): Unit

  23. def cache_=(v: Boolean): Unit

  24. def clip: ObjectProperty[Node]

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

  25. def clip_=(v: Node): Unit

  26. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. 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.

  28. 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.

  29. def cursor: ObjectProperty[Cursor]

    Defines the mouse cursor for this Node and subnodes.

  30. def cursor_=(v: Cursor): Unit

  31. val delegate: Node

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    NodeSFXDelegate
  32. def depthTest: ObjectProperty[DepthTest]

    Indicates whether depth testing is used when rendering this node.

  33. def depthTest_=(v: DepthTest): Unit

  34. def disable: BooleanProperty

    Sets the individual disabled state of this Node.

  35. def disable_=(v: Boolean): Unit

  36. def disabled: ReadOnlyBooleanProperty

    Indicates whether or not this Node is disabled.

  37. def effect: ObjectProperty[Effect]

    Specifies an effect to apply to this Node.

  38. def effect_=(v: Effect): Unit

  39. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. 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
  41. def eventDispatcher: ObjectProperty[EventDispatcher]

    Specifies the event dispatcher for this node.

  42. def eventDispatcher_=(v: EventDispatcher): Unit

  43. def eventHandlerDelegate: EventHandled

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

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

    Attributes
    protected
    Definition Classes
    NodeEventHandlerDelegate
  44. 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
    EventHandlerDelegate
  45. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. def fireEvent(event: Event): Unit

    Fires the specified event.

  47. def focusTraversable: BooleanProperty

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

  48. def focusTraversable_=(v: Boolean): Unit

  49. def focused: ReadOnlyBooleanProperty

    Indicates whether this Node currently has the input focus.

  50. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  51. 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
    EventHandlerDelegate
  52. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  53. 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

  54. 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

  55. def hover: ReadOnlyBooleanProperty

    Whether or not this Node is being hovered over.

  56. def id: StringProperty

    The id of this Node.

  57. def id_=(v: String): Unit

  58. def inputMethodRequests: ObjectProperty[InputMethodRequests]

    Property holding InputMethodRequests.

  59. def inputMethodRequests_=(v: InputMethodRequests): Unit

  60. 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.

  61. 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.

  62. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  63. def layoutBounds: ReadOnlyObjectProperty[Bounds]

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

  64. def layoutX: DoubleProperty

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

  65. def layoutX_=(v: Double): Unit

  66. def layoutY: DoubleProperty

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

  67. def layoutY_=(v: Double): Unit

  68. def localToParent(localPoint: Point2D): Point2D

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

  69. 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.

  70. def localToParent(localBounds: Bounds): Bounds

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

  71. 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

  72. def localToScene(localPoint: Point2D): Point2D

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

  73. 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.

  74. def localToScene(localBounds: Bounds): Bounds

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

  75. 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

  76. def lookup(selector: String): Node

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

  77. def lookupAll(selector: String): Set[Node]

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

  78. def managed: BooleanProperty

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

  79. def managed_=(v: Boolean): Unit

  80. 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.

  81. 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.

  82. def maxHeight(width: Double): Double

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

  83. def maxWidth(height: Double): Double

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

  84. def minHeight(width: Double): Double

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

  85. def minWidth(height: Double): Double

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

  86. def mouseTransparent: BooleanProperty

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

  87. def mouseTransparent_=(v: Boolean): Unit

  88. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  89. final def notify(): Unit

    Definition Classes
    AnyRef
  90. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  91. def onContextMenuRequested: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.ContextMenuEvent]]

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

  92. def onContextMenuRequested_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.ContextMenuEvent]): Unit

  93. def onDragDetected: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  94. def onDragDetected_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  95. def onDragDone: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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.

  96. def onDragDone_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]): Unit

  97. def onDragDropped: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]]

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

  98. def onDragDropped_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]): Unit

  99. def onDragEntered: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]]

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

  100. def onDragEntered_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]): Unit

  101. def onDragExited: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]]

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

  102. def onDragExited_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]): Unit

  103. def onDragOver: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]]

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

  104. def onDragOver_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.DragEvent]): Unit

  105. def onInputMethodTextChanged: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.InputMethodEvent]]

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

  106. def onInputMethodTextChanged_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.InputMethodEvent]): Unit

  107. def onKeyPressed: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]]

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

  108. def onKeyPressed_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]): Unit

  109. def onKeyReleased: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]]

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

  110. def onKeyReleased_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]): Unit

  111. def onKeyTyped: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]]

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

  112. def onKeyTyped_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.KeyEvent]): Unit

  113. def onMouseClicked: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  114. def onMouseClicked_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  115. def onMouseDragEntered: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]]

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

  116. def onMouseDragEntered_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]): Unit

  117. def onMouseDragExited: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]]

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

  118. def onMouseDragExited_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]): Unit

  119. def onMouseDragOver: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]]

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

  120. def onMouseDragOver_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]): Unit

  121. def onMouseDragReleased: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]]

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

  122. def onMouseDragReleased_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseDragEvent]): Unit

  123. def onMouseDragged: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  124. def onMouseDragged_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  125. def onMouseEntered: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  126. def onMouseEntered_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  127. def onMouseExited: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  128. def onMouseExited_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  129. def onMouseMoved: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

  130. def onMouseMoved_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  131. def onMousePressed: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  132. def onMousePressed_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  133. def onMouseReleased: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]]

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

  134. def onMouseReleased_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.MouseEvent]): Unit

  135. def onRotate: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  136. def onRotate_=(v: EventHandler[RotateEvent]): Unit

  137. def onRotationFinished: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  138. def onRotationFinished_=(v: EventHandler[RotateEvent]): Unit

  139. def onRotationStarted: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  140. def onRotationStarted_=(v: EventHandler[RotateEvent]): Unit

  141. def onScroll: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.ScrollEvent]]

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

  142. def onScrollFinished: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  143. def onScrollFinished_=(v: EventHandler[ScrollEvent]): Unit

  144. def onScrollStarted: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  145. def onScrollStarted_=(v: EventHandler[ScrollEvent]): Unit

  146. def onScroll_=(v: javafx.event.EventHandler[_ >: javafx.scene.input.ScrollEvent]): Unit

  147. def onSwipeDown: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  148. def onSwipeDown_=(v: EventHandler[SwipeEvent]): Unit

  149. def onSwipeLeft: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  150. def onSwipeLeft_=(v: EventHandler[SwipeEvent]): Unit

  151. def onSwipeRight: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  152. def onSwipeRight_=(v: EventHandler[SwipeEvent]): Unit

  153. def onSwipeUp: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  154. def onSwipeUp_=(v: EventHandler[SwipeEvent]): Unit

  155. def onTouchMoved: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  156. def onTouchMoved_=(v: EventHandler[TouchEvent]): Unit

  157. def onTouchPressed: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  158. def onTouchPressed_=(v: EventHandler[TouchEvent]): Unit

  159. def onTouchReleased: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  160. def onTouchReleased_=(v: EventHandler[TouchEvent]): Unit

  161. def onTouchStationary: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  162. def onTouchStationary_=(v: EventHandler[TouchEvent]): Unit

  163. def onZoom: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  164. def onZoomFinished: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  165. def onZoomFinished_=(v: EventHandler[ZoomEvent]): Unit

  166. def onZoomStarted: ObjectProperty[javafx.event.EventHandler[_ >: javafx.scene.input.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

  167. def onZoomStarted_=(v: EventHandler[ZoomEvent]): Unit

  168. def onZoom_=(v: EventHandler[ZoomEvent]): Unit

  169. def opacity: DoubleProperty

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

  170. def opacity_=(v: Double): Unit

  171. def parent: ReadOnlyObjectProperty[Parent]

    The parent of this Node.

  172. def parentToLocal(parentPoint: Point2D): Point2D

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

  173. 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.

  174. def parentToLocal(parentBounds: Bounds): Bounds

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

  175. def pickOnBounds: BooleanProperty

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

  176. def pickOnBounds_=(v: Boolean): Unit

  177. def pressed: ReadOnlyBooleanProperty

    Whether or not the Node is pressed.

  178. 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.

  179. def removeEventFilter[E <: Event](eventType: EventType[E], eventHandler: javafx.event.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
    EventHandlerDelegate
  180. def removeEventHandler[E <: Event](eventType: EventType[E], eventHandler: javafx.event.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
    EventHandlerDelegate
  181. def requestFocus(): Unit

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

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

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

  183. 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.

  184. def rotate: DoubleProperty

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

  185. def rotate_=(v: Double): Unit

  186. def rotationAxis: ObjectProperty[Point3D]

    Defines the axis of rotation of this Node.

  187. def rotationAxis_=(v: Point3D): Unit

  188. def scaleX: DoubleProperty

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

  189. def scaleX_=(v: Double): Unit

  190. def scaleY: DoubleProperty

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

  191. def scaleY_=(v: Double): Unit

  192. def scaleZ: DoubleProperty

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

  193. def scaleZ_=(v: Double): Unit

  194. def scene: ReadOnlyObjectProperty[Scene]

    The Scene that this Node is part of.

  195. def sceneToLocal(scenePoint: Point2D): Point2D

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

  196. 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.

  197. def sceneToLocal(sceneBounds: Bounds): Bounds

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

  198. 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.

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

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

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

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

  201. def startFullDrag(): Unit

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

  202. def style: StringProperty

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

  203. def styleClass: ObservableList[String]

    CSS styles classes used by this Node.

  204. 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.

  205. def style_=(v: String): Unit

  206. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  207. def toBack(): Unit

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

  208. def toFront(): Unit

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

  209. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  210. def transforms: ObservableList[Transform]

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

  211. 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.

  212. def translateX: DoubleProperty

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

  213. def translateX_=(v: Double): Unit

  214. def translateY: DoubleProperty

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

  215. def translateY_=(v: Double): Unit

  216. def translateZ: DoubleProperty

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

  217. def translateZ_=(v: Double): Unit

  218. def userData: AnyRef

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

  219. def userData_=(v: AnyRef): Unit

  220. 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

  221. 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

  222. def visible: BooleanProperty

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

  223. def visible_=(v: Boolean): Unit

  224. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  225. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  226. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SFXDelegate[Node]

Inherited from EventHandlerDelegate

Inherited from AnyRef

Inherited from Any