| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
active
If a scene is active it is being shown by the display.
|
| Constructor and Description |
|---|
FXGLScene() |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
activeProperty()
If a scene is active it is being shown by the display.
|
void |
appendCSS(CSS css) |
void |
bindSize(javafx.beans.property.DoubleProperty scaledWidth,
javafx.beans.property.DoubleProperty scaledHeight,
javafx.beans.property.DoubleProperty scaleRatioX,
javafx.beans.property.DoubleProperty scaleRatioY) |
void |
clearCSS() |
void |
clearEffect()
Removes any effects applied to the scene.
|
javafx.scene.layout.Pane |
getContentRoot() |
javafx.scene.effect.Effect |
getEffect() |
double |
getHeight() |
javafx.scene.layout.Pane |
getRoot() |
Viewport |
getViewport() |
double |
getWidth() |
void |
setBackgroundColor(javafx.scene.paint.Paint color) |
void |
setBackgroundRepeat(javafx.scene.image.Image image)
The image is repeated as often as needed to cover the background.
|
void |
setBackgroundRepeat(String textureName)
Convenience method to load the texture and repeat as often as needed to cover the background.
|
void |
setCursor(String imageName,
javafx.geometry.Point2D hotspot)
Sets global game cursor using given name to find
the image cursor within assets/ui/cursors/.
|
void |
setEffect(javafx.scene.effect.Effect effect)
Applies given effect to the scene.
|
public javafx.beans.property.BooleanProperty activeProperty
public final javafx.scene.layout.Pane getRoot()
public final javafx.scene.layout.Pane getContentRoot()
public Viewport getViewport()
public final double getWidth()
public final double getHeight()
public final void setEffect(javafx.scene.effect.Effect effect)
effect - the effect to applypublic final javafx.scene.effect.Effect getEffect()
public final void clearEffect()
public final void setCursor(String imageName, javafx.geometry.Point2D hotspot)
imageName - name of image filehotspot - hotspot locationpublic javafx.beans.property.BooleanProperty activeProperty()
public void appendCSS(CSS css)
public void clearCSS()
public void bindSize(javafx.beans.property.DoubleProperty scaledWidth,
javafx.beans.property.DoubleProperty scaledHeight,
javafx.beans.property.DoubleProperty scaleRatioX,
javafx.beans.property.DoubleProperty scaleRatioY)
public void setBackgroundColor(javafx.scene.paint.Paint color)
public void setBackgroundRepeat(String textureName)
public void setBackgroundRepeat(javafx.scene.image.Image image)
Copyright © 2017. All rights reserved.