case class Builder(parentScene: Scene) extends Product with Serializable
Builder. The provided scene is used to determine the screen width and height
- parentScene
the scene in which the screen will be shown
- Alphabetic
- By Inheritance
- Builder
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Builder(parentScene: Scene)
- parentScene
the scene in which the screen will be shown
Value Members
-
def
build(): LevelScreenImpl
This method creates a LevelScreenImpl with the provided components
This method creates a LevelScreenImpl with the provided components
- returns
a LevelScreenImpl
-
def
withButton(text: String, onClick: EventHandler[ActionEvent]): Builder
This method adds a Button to the screen
This method adds a Button to the screen
- text
the text
- onClick
the handler that will be executed on the button click
- returns
the builder itself
-
def
withNode(node: Node): Builder
This method adds a node to the screen
This method adds a node to the screen
- node
the node
- returns
the builder itself
-
def
withText(text: String, size: Double = 30, color: Color = Color.White): Builder
This method adds a Text to the screen
This method adds a Text to the screen
- text
the text
- size
the text size
- color
the text color
- returns
the builder itself