Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.

    Package Structure

    ScalaFX package structure corresponds to JavaFX package structure, for instance scalafx.animation corresponds to javafx.animation.

    Example Usage

    A basic ScalaFX application is created creating an object that is an instance of JFXApp. Following Java FX theatre metaphor, it contains a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp
    import scalafx.application.JFXApp.PrimaryStage
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp {
      stage = new PrimaryStage {
        title = "Hello"
        scene = new Scene {
          root = new BorderPane {
            padding = Insets(25)
            center = new Label("Hello World")
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package print

    Wraps javafx.print package.

    Wraps javafx.print package.

    Definition Classes
    scalafx
    Since

    8.0

  • Collation
  • JobSettings
  • PageLayout
  • PageOrientation
  • PageRange
  • Paper
  • PaperSource
  • PrintColor
  • PrintIncludes
  • PrintQuality
  • PrintResolution
  • PrintSides
  • Printer
  • PrinterAttributes
  • PrinterJob

object Paper

Companion Object for scalafx.print.Paper.

Source
Paper.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Paper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val A0: Paper

    Specifies the ISO A0 size, 841 mm by 1189 mm.

  5. val A1: Paper

    Specifies the ISO A1 size, 594 mm by 841 mm.

  6. val A2: Paper

    Specifies the ISO A2 size, 420 mm by 594 mm.

  7. val A3: Paper

    Specifies the ISO A3 size, 297 mm by 420 mm.

  8. val A4: Paper

    Specifies the ISO A4 size, 210 mm by 297 mm.

  9. val A5: Paper

    Specifies the ISO A5 size, 148 mm by 210 mm.

  10. val A6: Paper

    Specifies the ISO A6 size, 105 mm by 148 mm.

  11. val C: Paper

    Specifies the engineering C size, 17 inch by 22 inch.

  12. val DesignatedLong: Paper

    Specifies the ISO Designated Long size, 110 mm by 220 mm.

  13. val Executive: Paper

    Specifies the executive size, 7.25 inches by 10.5 inches.

  14. val JapanesePostcard: Paper

    Specifies the Japanese postcard size, 100 mm by 148 mm.

  15. val JisB4: Paper

    Specifies the JIS B4 size, 257 mm by 364 mm.

  16. val JisB5: Paper

    Specifies the JIS B5 size, 182 mm by 257 mm.

  17. val JisB6: Paper

    Specifies the JIS B6 size, 128 mm by 182 mm.

  18. val Legal: Paper

    Specifies the North American legal size, 8.5 inches by 14 inches.

  19. val MonarchEnvelope: Paper

    Specifies the Monarch envelope size, 3.87 inch by 7.5 inch.

  20. val Na8X10: Paper

    Specifies the North American 8 inch by 10 inch paper.

  21. val NaLetter: Paper

    Specifies the North American letter size, 8.5 inches by 11 inches.

  22. val NaNumber10Envelope: Paper

    Specifies the North American Number 10 business envelope size, 4.125 inches by 9.5 inches.

  23. val Tabloid: Paper

    Specifies the tabloid size, 11 inches by 17 inches.

  24. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. implicit def sfxPaper2jfx(pp: Paper): javafx.print.Paper

    Converts a ScalaFX Paper to its JavaFX counterpart.

    Converts a ScalaFX Paper to its JavaFX counterpart.

    pp

    ScalaFX Paper

    returns

    JavaFX Paper

  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped