doodle.java2d.effect

Members list

Type members

Classlikes

final class Canvas extends JFrame

A Canvas is an area on the screen to which Pictures can be drawn.

A Canvas is an area on the screen to which Pictures can be drawn.

Attributes

Companion
object
Source
Canvas.scala
Supertypes
class JFrame
class Frame
class Window
trait Accessible
class Container
class Component
trait Serializable
class Object
trait Matchable
class Any
Show all
object Canvas

Attributes

Companion
class
Source
Canvas.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type
sealed abstract class Center extends Product, Serializable

Determines where the center of the canvas is located.

Determines where the center of the canvas is located.

Attributes

Companion
object
Source
Center.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object AtOrigin.type
object CenteredOnPicture.type
object Center

Attributes

Companion
class
Source
Center.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Center.type
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.

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Frame

Attributes

Companion
class
Source
Frame.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Frame.type
final class Java2DPanel(frame: Frame)(implicit runtime: IORuntime) extends JPanel

Attributes

Companion
object
Source
Java2DPanel.scala
Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
class Object
trait Matchable
class Any
Show all
object Java2DPanel

Attributes

Companion
class
Source
Java2DPanel.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Java2d

Utilities for rendering with Java2D

Utilities for rendering with Java2D

Attributes

Source
Java2d.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Java2d.type

Attributes

Source
Java2dAnimationRenderer.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Write an animation as an animated GIF. The GIF file format doesn't support transparency to the degree we need to faithfully render Java2d images. In particular it doesn't support semi-transparent redraw. As a result we just fill with the background color on each frame, if the background is set.

Write an animation as an animated GIF. The GIF file format doesn't support transparency to the degree we need to faithfully render Java2d images. In particular it doesn't support semi-transparent redraw. As a result we just fill with the background color on each frame, if the background is set.

Attributes

Source
Java2dAnimationWriter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Java2dGifWriter extends Java2dWriter[Gif]

Attributes

Source
Java2dWriter.scala
Supertypes
trait Java2dWriter[Gif]
trait Base64[Algebra, Frame, Gif]
trait Writer[Algebra, Frame, Gif]
class Object
trait Matchable
class Any
Show all
Self type
object Java2dJpgWriter extends Java2dWriter[Jpg]

Attributes

Source
Java2dWriter.scala
Supertypes
trait Java2dWriter[Jpg]
trait Base64[Algebra, Frame, Jpg]
trait Writer[Algebra, Frame, Jpg]
class Object
trait Matchable
class Any
Show all
Self type
object Java2dPdfWriter extends Java2dWriter[Pdf]

Attributes

Source
Java2dWriter.scala
Supertypes
trait Java2dWriter[Pdf]
trait Base64[Algebra, Frame, Pdf]
trait Writer[Algebra, Frame, Pdf]
class Object
trait Matchable
class Any
Show all
Self type
object Java2dPngWriter extends Java2dWriter[Png]

Attributes

Source
Java2dWriter.scala
Supertypes
trait Java2dWriter[Png]
trait Base64[Algebra, Frame, Png]
trait Writer[Algebra, Frame, Png]
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Source
Java2dRenderer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait Java2dWriter[Fmt <: Format] extends Writer[Algebra, Frame, Fmt], Base64[Algebra, Frame, Fmt]

Attributes

Companion
object
Source
Java2dWriter.scala
Supertypes
trait Base64[Algebra, Frame, Fmt]
trait Writer[Algebra, Frame, Fmt]
class Object
trait Matchable
class Any
Known subtypes
object Java2dGifWriter.type
object Java2dJpgWriter.type
object Java2dPdfWriter.type
object Java2dPngWriter.type
object Java2dWriter

Attributes

Companion
trait
Source
Java2dWriter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Redraw

Determines how the Canvas handles drawing multiple Pictures. The default is to clear the Canvas with the Frame 's background color every time a new picture is rendered. Alternatively a different color can be specified. This allows one to blend together pictures while keeping a constant background.

Determines how the Canvas handles drawing multiple Pictures. The default is to clear the Canvas with the Frame 's background color every time a new picture is rendered. Alternatively a different color can be specified. This allows one to blend together pictures while keeping a constant background.

Attributes

Companion
object
Source
Redraw.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ClearToBackground.type
class ClearToColor
object Redraw

Attributes

Companion
trait
Source
Redraw.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Redraw.type
sealed abstract class Size extends Product, Serializable

Attributes

Companion
object
Source
Size.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class FitToImage
class FixedSize
object Size

Attributes

Companion
class
Source
Size.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Size.type