Frame

doodle.java2d.effect.Frame
See theFrame companion object
final case class Frame(size: Size, title: String, center: Center, background: Option[Color], redraw: Redraw)

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)

Attributes

Companion:
object
Source:
Frame.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Use the given color as the background.

Use the given color as the background.

Attributes

Source:
Frame.scala

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

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

Attributes

Source:
Frame.scala

When redrawing, clear the screen with the background color.

When redrawing, clear the screen with the background color.

Attributes

Source:
Frame.scala

When redrawing, clear the screen with the given color.

When redrawing, clear the screen with the given color.

Attributes

Source:
Frame.scala

Use a fully transparent background.

Use a fully transparent background.

Attributes

Source:
Frame.scala
def withSize(width: Double, height: Double): Frame

Size the canvas with the given fixed dimensions.

Size the canvas with the given fixed dimensions.

Attributes

Source:
Frame.scala

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

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

Attributes

Source:
Frame.scala
def withTitle(title: String): Frame

Title the window with the given string.

Title the window with the given string.

Attributes

Source:
Frame.scala

Make the center of the canvas the origin.

Make the center of the canvas the origin.

Attributes

Source:
Frame.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product