|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public class SubScene extends Node
SubScene class is the container for content in a scene graph.| Type | Property and Description |
|---|---|
ObjectProperty<Camera> |
camera
Specifies the type of camera use for rendering this
SubScene. |
ObjectProperty<Paint> |
fill
Defines the background fill of this
SubScene. |
DoubleProperty |
height
Defines the height of this
SubScene |
ObjectProperty<Parent> |
root
Defines the root
Node of the SubScene scene graph. |
DoubleProperty |
width
Defines the width of this
SubScene |
blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, visible| Constructor and Description |
|---|
SubScene(Parent root,
double width,
double height)
Creates a SubScene for a specific root Node with a specific size.
|
SubScene(Parent root,
double width,
double height,
boolean depthBuffer,
boolean antiAliasing)
Constructs a SubScene consisting of a root, with a dimension of width and
height, specifies whether a depth buffer is created for this scene and
specifies whether scene anti-aliasing is requested.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<Camera> |
cameraProperty()
Specifies the type of camera use for rendering this
SubScene. |
ObjectProperty<Paint> |
fillProperty()
Defines the background fill of this
SubScene. |
Camera |
getCamera()
Gets the value of the property camera.
|
Paint |
getFill()
Gets the value of the property fill.
|
double |
getHeight()
Gets the value of the property height.
|
Parent |
getRoot()
Gets the value of the property root.
|
double |
getWidth()
Gets the value of the property width.
|
DoubleProperty |
heightProperty()
Defines the height of this
SubScene |
boolean |
isAntiAliasing()
Return true if this
SubScene is anti-aliased otherwise false. |
ObjectProperty<Parent> |
rootProperty()
Defines the root
Node of the SubScene scene graph. |
void |
setCamera(Camera value)
Sets the value of the property camera.
|
void |
setFill(Paint value)
Sets the value of the property fill.
|
void |
setHeight(double value)
Sets the value of the property height.
|
void |
setRoot(Parent value)
Sets the value of the property root.
|
void |
setWidth(double value)
Sets the value of the property width.
|
DoubleProperty |
widthProperty()
Defines the width of this
SubScene |
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBaselineOffset, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookup, lookupAll, managedProperty, maxHeight, maxWidth, minHeight, minWidth, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, prefHeight, prefWidth, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic final ObjectProperty<Parent> rootProperty
Node of the SubScene scene graph.
If a Group is used as the root, the
contents of the scene graph will be clipped by the SubScene's width and height.
SubScene doesn't accept null root.getRoot(),
setRoot(Parent)public final ObjectProperty<Camera> cameraProperty
SubScene.
If camera is null, a parallel camera is used for rendering.
It is illegal to set a camera that belongs to other Scene
or SubScene.
Note: this is a conditional feature. See
ConditionalFeature.SCENE3D
for more information.
getCamera(),
setCamera(Camera)public final DoubleProperty widthProperty
SubScenegetWidth(),
setWidth(double)public final DoubleProperty heightProperty
SubScenegetHeight(),
setHeight(double)public final ObjectProperty<Paint> fillProperty
SubScene. Both a null
value meaning paint no background and a Paint
with transparency are supported. The default value is null.getFill(),
setFill(Paint)public SubScene(Parent root, double width, double height)
root - The root node of the scene graphwidth - The width of the sceneheight - The height of the scenejava.lang.IllegalStateException - if this constructor is called on a thread
other than the JavaFX Application Thread.java.lang.NullPointerException - if root is nullpublic SubScene(Parent root, double width, double height, boolean depthBuffer, boolean antiAliasing)
root - The root node of the scene graphwidth - The width of the sceneheight - The height of the scenedepthBuffer - The depth buffer flagantiAliasing - The sub-scene anti-aliasing flag
The depthBuffer and antiAliasing flags are conditional feature and the default
value for both are false. See
ConditionalFeature.SCENE3D
for more information.
java.lang.IllegalStateException - if this constructor is called on a thread
other than the JavaFX Application Thread.java.lang.NullPointerException - if root is nullNode.setDepthTest(DepthTest)public boolean isAntiAliasing()
SubScene is anti-aliased otherwise false.public final void setRoot(Parent value)
Node of the SubScene scene graph.
If a Group is used as the root, the
contents of the scene graph will be clipped by the SubScene's width and height.
SubScene doesn't accept null root.public final Parent getRoot()
Node of the SubScene scene graph.
If a Group is used as the root, the
contents of the scene graph will be clipped by the SubScene's width and height.
SubScene doesn't accept null root.public final ObjectProperty<Parent> rootProperty()
Node of the SubScene scene graph.
If a Group is used as the root, the
contents of the scene graph will be clipped by the SubScene's width and height.
SubScene doesn't accept null root.getRoot(),
setRoot(Parent)public final void setCamera(Camera value)
SubScene.
If camera is null, a parallel camera is used for rendering.
It is illegal to set a camera that belongs to other Scene
or SubScene.
Note: this is a conditional feature. See
ConditionalFeature.SCENE3D
for more information.
public final Camera getCamera()
SubScene.
If camera is null, a parallel camera is used for rendering.
It is illegal to set a camera that belongs to other Scene
or SubScene.
Note: this is a conditional feature. See
ConditionalFeature.SCENE3D
for more information.
public final ObjectProperty<Camera> cameraProperty()
SubScene.
If camera is null, a parallel camera is used for rendering.
It is illegal to set a camera that belongs to other Scene
or SubScene.
Note: this is a conditional feature. See
ConditionalFeature.SCENE3D
for more information.
getCamera(),
setCamera(Camera)public final void setWidth(double value)
SubScenepublic final double getWidth()
SubScenepublic final DoubleProperty widthProperty()
SubScenegetWidth(),
setWidth(double)public final void setHeight(double value)
SubScenepublic final double getHeight()
SubScenepublic final DoubleProperty heightProperty()
SubScenegetHeight(),
setHeight(double)public final void setFill(Paint value)
SubScene. Both a null
value meaning paint no background and a Paint
with transparency are supported. The default value is null.public final Paint getFill()
SubScene. Both a null
value meaning paint no background and a Paint
with transparency are supported. The default value is null.public final ObjectProperty<Paint> fillProperty()
SubScene. Both a null
value meaning paint no background and a Paint
with transparency are supported. The default value is null.getFill(),
setFill(Paint)Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to .