Packages

final case class Algebra(gc: Graphics2D, applyDrawing: Apply[Reification] = Apply.apply[Reification], functorDrawing: Functor[Reification] = Apply.apply[Reification]) extends Basic with Java2dFromBufferedImage with Java2dFromBase64 with ReifiedBitmap with ReifiedPath with ReifiedShape with ReifiedText with GenericDebug[Reification] with GenericLayout[Reification] with GenericSize[Reification] with GenericStyle[Reification] with GenericTransform[Reification] with GivenApply[Reification] with GivenFunctor[Reification] with algebra.Algebra with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Algebra
  2. Serializable
  3. Product
  4. Equals
  5. GivenFunctor
  6. GivenApply
  7. GenericTransform
  8. GenericStyle
  9. GenericSize
  10. GenericLayout
  11. GenericDebug
  12. ReifiedText
  13. GenericText
  14. ReifiedShape
  15. GenericShape
  16. ReifiedPath
  17. GenericPath
  18. ReifiedBitmap
  19. Bitmap
  20. Java2dFromBase64
  21. FromJpgBase64
  22. FromGifBase64
  23. FromPngBase64
  24. Java2dFromBufferedImage
  25. FromBufferedImage
  26. Basic
  27. Transform
  28. Text
  29. Style
  30. Size
  31. Shape
  32. Path
  33. Layout
  34. Debug
  35. Algebra
  36. AnyRef
  37. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Algebra(gc: Graphics2D, applyDrawing: Apply[Reification] = Apply.apply[Reification], functorDrawing: Functor[Reification] = Apply.apply[Reification])

Type Members

  1. trait PathApi extends AnyRef
    Definition Classes
    GenericPath
  2. trait ShapeApi extends AnyRef
    Definition Classes
    GenericShape
  3. trait TextApi extends AnyRef
    Definition Classes
    GenericText
  4. type Drawing[A] = IndexedStateT[Eval, List[ContextTransform], List[ContextTransform], (BoundingBox, algebra.generic.Renderable[Reification, A])]

    The effect type that methods on this algebra produce.

    The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

    Definition Classes
    AlgebraAlgebra

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. val TextApi: TextApi { type Bounds = java.awt.geom.Rectangle2D }
    Definition Classes
    ReifiedTextGenericText
  5. def above[A](top: Finalized[Reification, A], bottom: Finalized[Reification, A])(implicit s: Semigroup[A]): Finalized[Reification, A]
    Definition Classes
    GenericLayoutLayout
  6. val applyDrawing: Apply[Reification]
    Definition Classes
    AlgebraGivenApply
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def at[A](img: Finalized[Reification, A], landmark: Landmark): Finalized[Reification, A]

    Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

    Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

    Definition Classes
    GenericLayoutLayout
  9. def at[A](img: Drawing[A], offset: Point): Drawing[A]
    Definition Classes
    Layout
  10. def at[A](img: Drawing[A], offset: Vec): Drawing[A]
    Definition Classes
    Layout
  11. def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
    Definition Classes
    Layout
  12. def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Layout
  13. def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  14. def beside[A](left: Finalized[Reification, A], right: Finalized[Reification, A])(implicit s: Semigroup[A]): Finalized[Reification, A]
    Definition Classes
    GenericLayoutLayout
  15. def boundingBox[A](picture: Finalized[Reification, A]): Finalized[Reification, BoundingBox]

    Get the bounding box enclosing the picture

    Get the bounding box enclosing the picture

    Definition Classes
    GenericSizeSize
  16. def boundingBox(elements: List[PathElement]): BoundingBox
    Definition Classes
    GenericPath
  17. def catmulRom(points: Seq[Point], tension: Double = 0.5): Drawing[Unit]
    Definition Classes
    Path
  18. def circle(diameter: Double): Finalized[Reification, Unit]

    A circle with the given diameter.

    A circle with the given diameter. We use diamter rather than radius so circle(100) has the same size as square(100)

    Definition Classes
    GenericShapeShape
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  20. def debug[A](picture: Finalized[Reification, A], color: Color = Color.crimson): Finalized[Reification, A]

    Draws the bounding box and origin of the given picture on top of the picture.

    Draws the bounding box and origin of the given picture on top of the picture. The given color is used for the bounding box and origin.

    The bounding box and origin are not included in layout calculations and hence will not affect the picture's layout.

    Definition Classes
    GenericDebugDebug
  21. implicit val drawingInstance: Applicative[Drawing]
    Definition Classes
    AlgebraAlgebra
  22. def empty: Finalized[Reification, Unit]

    The empty shape, which is no shape at all.

    The empty shape, which is no shape at all.

    Definition Classes
    GenericShapeShape
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equilateralTriangle(width: Double): Drawing[Unit]

    Create an equilateral triangle with the given side length.

    Create an equilateral triangle with the given side length.

    Definition Classes
    Path
  25. def fillColor[A](image: Finalized[Reification, A], fillColor: Color): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  26. def fillGradient[A](image: Finalized[Reification, A], fillGradient: Gradient): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  28. def font[A](image: Finalized[Reification, A], font: Font): Finalized[Reification, A]

    Specifies the font to use when rendering text

    Specifies the font to use when rendering text

    Definition Classes
    GenericTextText
  29. def fromBufferedImage(in: BufferedImage): Algebra.Drawing[Unit]
  30. def fromGifBase64(base64: Base64[Gif]): Algebra.Drawing[Unit]

    Create a picture from a Base64 encoded bitmap in the given format.

    Create a picture from a Base64 encoded bitmap in the given format. The format is reified as a value so the method can dispatch on it.

    Definition Classes
    Java2dFromBase64FromGifBase64
  31. def fromJpgBase64(base64: Base64[Jpg]): Algebra.Drawing[Unit]

    Create a picture from a Base64 encoded bitmap in the given format.

    Create a picture from a Base64 encoded bitmap in the given format. The format is reified as a value so the method can dispatch on it.

    Definition Classes
    Java2dFromBase64FromJpgBase64
  32. def fromPngBase64(base64: Base64[Png]): Algebra.Drawing[Unit]

    Create a picture from a Base64 encoded bitmap in the given format.

    Create a picture from a Base64 encoded bitmap in the given format. The format is reified as a value so the method can dispatch on it.

    Definition Classes
    Java2dFromBase64FromPngBase64
  33. val functorDrawing: Functor[Reification]
    Definition Classes
    AlgebraGivenFunctor
  34. val gc: Graphics2D
  35. def genericFromBase64(value: String): Algebra.Drawing[Unit]
    Definition Classes
    Java2dFromBase64
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def height[A](picture: Finalized[Reification, A]): Finalized[Reification, Double]

    Get the height of the bounding box enclosing the picture

    Get the height of the bounding box enclosing the picture

    Definition Classes
    GenericSizeSize
  38. def horizontalReflection[A](img: Drawing[A]): Drawing[A]
    Definition Classes
    Transform
  39. def interpolatingSpline(points: Seq[Point]): Drawing[Unit]
    Definition Classes
    Path
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def margin[A](img: Finalized[Reification, A], top: Double, right: Double, bottom: Double, left: Double): Finalized[Reification, A]

    Expand the bounding box of img by the given amounts.

    Expand the bounding box of img by the given amounts.

    Definition Classes
    GenericLayoutLayout
  42. def margin[A](img: Drawing[A], width: Double): Drawing[A]
    Definition Classes
    Layout
  43. def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
    Definition Classes
    Layout
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def noDash[A](image: Finalized[Reification, A]): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  46. def noFill[A](image: Finalized[Reification, A]): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  47. def noStroke[A](image: Finalized[Reification, A]): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. def on[A](top: Finalized[Reification, A], bottom: Finalized[Reification, A])(implicit s: Semigroup[A]): Finalized[Reification, A]

    Place the origin of top on the origin of bottom

    Place the origin of top on the origin of bottom

    Definition Classes
    GenericLayoutLayout
  51. def originAt[A](img: Finalized[Reification, A], landmark: Landmark): Finalized[Reification, A]

    Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

    Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

    Definition Classes
    GenericLayoutLayout
  52. def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
    Definition Classes
    Layout
  53. def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
    Definition Classes
    Layout
  54. def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
    Definition Classes
    Layout
  55. def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Layout
  56. def path(path: OpenPath): Finalized[Reification, Unit]
    Definition Classes
    GenericPathPath
  57. def path(path: ClosedPath): Finalized[Reification, Unit]
    Definition Classes
    GenericPathPath
  58. def productElementNames: Iterator[String]
    Definition Classes
    Product
  59. def read(file: File): Drawing[Unit]

    Read an image from the given file

    Read an image from the given file

    Definition Classes
    ReifiedBitmapBitmap
  60. def read(file: String): Drawing[Unit]

    Convenience to read an image from the file specified in the given String

    Convenience to read an image from the file specified in the given String

    Definition Classes
    Bitmap
  61. def rectangle(width: Double, height: Double): Finalized[Reification, Unit]

    A rectangle with the given width and height.

    A rectangle with the given width and height.

    Definition Classes
    GenericShapeShape
  62. def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
    Definition Classes
    Path
  63. def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]
    Definition Classes
    Transform
  64. def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
    Definition Classes
    Path
  65. def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Transform
  66. def size[A](picture: Finalized[Reification, A]): Finalized[Reification, (Double, Double)]

    Get the width and height of the bounding box enclosing the picture

    Get the width and height of the bounding box enclosing the picture

    Definition Classes
    GenericSizeSize
  67. def square(width: Double): Finalized[Reification, Unit]

    A square with the given side length.

    A square with the given side length.

    Definition Classes
    GenericShapeShape
  68. def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
    Definition Classes
    Path
  69. def strokeCap[A](image: Finalized[Reification, A], cap: Cap): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  70. def strokeColor[A](image: Finalized[Reification, A], strokeColor: Color): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  71. def strokeDash[A](image: Finalized[Reification, A], pattern: Iterable[Double]): Finalized[Reification, A]

    Specify the stroke dash pattern.

    Specify the stroke dash pattern. The pattern gives the length, in local coordinates, of opaque and transparent sections. The first element is the length of an opaque section, the second of a transparent section, and so on.

    Definition Classes
    GenericStyleStyle
  72. def strokeJoin[A](image: Finalized[Reification, A], join: Join): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  73. def strokeWidth[A](image: Finalized[Reification, A], strokeWidth: Double): Finalized[Reification, A]
    Definition Classes
    GenericStyleStyle
  74. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  75. def text(text: String): Finalized[Reification, Unit]

    Render the given String

    Render the given String

    Definition Classes
    GenericTextText
  76. def transform[A](img: Finalized[Reification, A], tx: Transform): Finalized[Reification, A]
    Definition Classes
    GenericTransformTransform
  77. def translate[A](img: Drawing[A], vec: Vec): Drawing[A]
    Definition Classes
    Transform
  78. def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Transform
  79. def triangle(width: Double, height: Double): Finalized[Reification, Unit]

    An isoceles triangle with the given width and height.

    An isoceles triangle with the given width and height.

    Definition Classes
    GenericShapeShape
  80. def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  81. def verticalReflection[A](img: Drawing[A]): Drawing[A]
    Definition Classes
    Transform
  82. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  85. def width[A](picture: Finalized[Reification, A]): Finalized[Reification, Double]

    Get the width of the bounding box enclosing the picture

    Get the width of the bounding box enclosing the picture

    Definition Classes
    GenericSizeSize
  86. object PathApi extends (ReifiedPath.this)#PathApi
    Definition Classes
    ReifiedPathGenericPath
  87. object ShapeApi extends (ReifiedShape.this)#ShapeApi
    Definition Classes
    ReifiedShapeGenericShape

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GivenFunctor[Reification]

Inherited from GivenApply[Reification]

Inherited from GenericStyle[Reification]

Inherited from GenericSize[Reification]

Inherited from GenericLayout[Reification]

Inherited from GenericDebug[Reification]

Inherited from ReifiedText

Inherited from GenericText[Reification]

Inherited from ReifiedShape

Inherited from GenericShape[Reification]

Inherited from ReifiedPath

Inherited from GenericPath[Reification]

Inherited from ReifiedBitmap

Inherited from Bitmap

Inherited from Java2dFromBase64

Inherited from FromJpgBase64

Inherited from FromGifBase64

Inherited from FromPngBase64

Inherited from FromBufferedImage

Inherited from Basic

Inherited from Transform

Inherited from Text

Inherited from Style

Inherited from Size

Inherited from Shape

Inherited from Path

Inherited from Layout

Inherited from Debug

Inherited from algebra.Algebra

Inherited from AnyRef

Inherited from Any

Ungrouped