Package org.minifx.fxcommons
Class MiniFxSceneBuilder
- java.lang.Object
-
- org.minifx.fxcommons.MiniFxSceneBuilder
-
public final class MiniFxSceneBuilder extends java.lang.Object
Simple builder for a javaFxScene
. It includes by default the CSS style of the MiniFx framework.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyStylesTo(javafx.scene.Scene scene)
javafx.scene.Scene
build()
java.util.List<java.lang.String>
cssLocations()
static MiniFxSceneBuilder
miniFxSceneBuilder()
MiniFxSceneBuilder
withAdditionalCss(java.util.Collection<java.lang.String> inAdditionalCss)
MiniFxSceneBuilder
withoutMiniFxStyle()
MiniFxSceneBuilder
withRoot(javafx.scene.Parent inRootNode)
MiniFxSceneBuilder
withSize(int inWidth, int inHeight)
-
-
-
Method Detail
-
miniFxSceneBuilder
public static MiniFxSceneBuilder miniFxSceneBuilder()
-
withRoot
public MiniFxSceneBuilder withRoot(javafx.scene.Parent inRootNode)
-
withSize
public MiniFxSceneBuilder withSize(int inWidth, int inHeight)
-
withoutMiniFxStyle
public MiniFxSceneBuilder withoutMiniFxStyle()
-
withAdditionalCss
public MiniFxSceneBuilder withAdditionalCss(java.util.Collection<java.lang.String> inAdditionalCss)
-
build
public javafx.scene.Scene build()
-
applyStylesTo
public void applyStylesTo(javafx.scene.Scene scene)
-
cssLocations
public java.util.List<java.lang.String> cssLocations()
-
-