doodle.java2d.effect.Frame
See theFrame companion object 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 Reset zoom Hide graph Show graph
Supertypes Members list Concise view
Value members
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
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
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