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
- Alphabetic
- By Inheritance
- Frame
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val background: Option[Color]
- val center: Center
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val redraw: Redraw
- val size: Size
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val title: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withBackground(color: Color): Frame
Use the given color as the background.
- def withCenterOnPicture: Frame
Make the center of the canvas the center of the picture's bounding box.
- def withClearToBackground: Frame
When redrawing, clear the screen with the background color.
- def withClearToColor(color: Color): Frame
When redrawing, clear the screen with the given color.
- def withNoBackground: Frame
Use a fully transparent background.
- def withSize(width: Double, height: Double): Frame
Size the canvas with the given fixed dimensions.
- 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.
- def withTitle(title: String): Frame
Title the window with the given string.
- def wthCenterAtOrigin: Frame
Make the center of the canvas the origin.