Packages

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

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Builder(parentScene: Scene)

    parentScene

    the scene in which the screen will be shown

Value Members

  1. def build(): LevelScreenImpl

    This method creates a LevelScreenImpl with the provided components

    This method creates a LevelScreenImpl with the provided components

    returns

    a LevelScreenImpl

  2. 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

  3. 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

  4. 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