final case class Frame(size: Size, title: String, center: Center, background: Option[Color], redraw: Redraw) extends Product with Serializable

The Frame specifies how to create a Canvas. The idiomatic way to create a Frame is to start with Frame.default and then call the builder methods starting with with.

For example, this Frame specifies a fixed size and a background color.

Frame.default.withSize(300, 300).withBackground(Color.midnightBlue)

Source
Frame.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Frame
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Frame(size: Size, title: String, center: Center, background: Option[Color], redraw: Redraw)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val background: Option[Color]
  6. val center: Center
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. val redraw: Redraw
  17. val size: Size
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. val title: String
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. def withBackground(color: Color): Frame

    Use the given color as the background.

  24. def withCenterOnPicture: Frame

    Make the center of the canvas the center of the picture's bounding box.

  25. def withClearToBackground: Frame

    When redrawing, clear the screen with the background color.

  26. def withClearToColor(color: Color): Frame

    When redrawing, clear the screen with the given color.

  27. def withNoBackground: Frame

    Use a fully transparent background.

  28. def withSize(width: Double, height: Double): Frame

    Size the canvas with the given fixed dimensions.

  29. def withSizedToPicture(border: Int = 20): Frame

    Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.

  30. def withTitle(title: String): Frame

    Title the window with the given string.

  31. def wthCenterAtOrigin: Frame

    Make the center of the canvas the origin.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped