Skip navigation links
JavaFX 8
Since:
JavaFX 8.0
See Also:
getEffectiveNodeOrientation()
Parameters:
image - the writable image that will be used to hold the rendered scene. It may be null in which case a new WritableImage will be constructed. If the image is non-null, the scene will be rendered into the existing image. In this case, the width and height of the image determine the area that is rendered instead of the width and height of the scene.
Returns:
the rendered image
Throws:
IllegalStateException - if this method is called on a thread other than the JavaFX Application Thread.
Since:
JavaFX 2.2
Parameters:
image - the writable image that will be used to hold the rendered scene. It may be null in which case a new WritableImage will be constructed. If the image is non-null, the scene will be rendered into the existing image. In this case, the width and height of the image determine the area that is rendered instead of the width and height of the scene.
Returns:
the rendered image
Throws:
IllegalStateException - if this method is called on a thread other than the JavaFX Application Thread.
Since:
JavaFX 2.2
For additional information about using CSS with the scene graph, see the CSS Reference Guide.
Returns:
the list of stylesheets to use with this scene
  • getUserAgentStylesheet

    public final String getUserAgentStylesheet()
    Get the URL of the user-agent stylesheet that will be used by this Scene. If the URL has not been set, the platform-default user-agent stylesheet will be used.

    For additional information about using CSS with the scene graph, see the CSS Reference Guide.

    Returns:
    The URL of the user-agent sme. This handler is guaranteed to be called first. This is used for registering the user-defined onFoo event handlers.
    Type Parameters:
    T - the specific event class of the handler
    Parameters:
    eventType - the event type to associate with the given eventHandler
    eventHandler - the handler to register, or null to unregister
    Throws:
    NullPointerException - if the event type is null
  • For additional information about using CSS with the scene graph, see the CSS Reference Guide.

    Parameters:
    url - The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath.
    Since:
    JavaFX 8u20