doctus.core

DoctusGraphics

Related Doc: package core

trait DoctusGraphics extends AnyRef

Drawing functions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoctusGraphics
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def ellipse(centerX: Double, centerY: Double, a: Double, b: Double): Unit

    Draws an ellipse 'centerX' and 'centerY' define the the center of the ellipse 'a' and 'b' are the length of the semi major/minor of the ellipse

  2. abstract def fill(c: DoctusColor, alpha: Double): Unit

    Set the fill color for subsequent drawings of shapes (ellipse, rect, ...)

    Set the fill color for subsequent drawings of shapes (ellipse, rect, ...)

    Values for alpha range from 0 to 255. 0 ... fully transparent 255 ... fully opaque

  3. abstract def image(img: DoctusImage, originX: Double, originY: Double): Unit

    Draws an image 'originX' and 'originY' define the top left corner of the image.

  4. abstract def line(fromX: Double, fromY: Double, toX: Double, toY: Double): Unit

    Draws a line from the point 'fromX' 'fromY' to the point 'toX' 'toY'

  5. abstract def noFill(): Unit

    Disables filling of shapes (ellipse, rect, ...)

  6. abstract def noStroke(): Unit

    Disables drawing of borders for shapes (ellipse, rect, ...) Lines are still drawn after the call to 'noStroke'

  7. abstract def poli(poli: List[DoctusPoint]): Unit

    Draws a polygon line defined by the points

  8. abstract def rect(originX: Double, originY: Double, width: Double, height: Double): Unit

    Draws a rectangle 'originX' and 'originY' define the top left corner of the rectangle.

  9. abstract def stroke(c: DoctusColor, alpha: Double): Unit

    Set the color for subsequent drawings of lines and the border of shapes (ellipse, rect, ...)

    Set the color for subsequent drawings of lines and the border of shapes (ellipse, rect, ...)

    Values for alpha range from 0 to 255. 0 ... fully transparent 255 ... fully opaque

  10. abstract def strokeWeight(weight: Double): Unit

    Sets the width in pixel of the stroke used for lines, points, and the border around shapes.

  11. abstract def text(str: String, originX: Double, originY: Double, rotation: Double): Unit

    Draws a text using the current font.

    Draws a text using the current font. 'originX' and 'originY' define the top left corner of the image. 'rotation' is the rotation angle of the text in radians 0 is a horizontal text from left to right Pi/2 (90 deg) is a vertical text going upward. In that case 'origin' is the bottom left corner of the box surrounding the text

  12. abstract def textFont(font: DoctusFont): Unit

    Sets the font used for subsequent calls to 'text(...)'

  13. abstract def textSize(textSize: Double): Unit

    Sets the text size used for subsequent calls to 'text(...)'

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def ellipse(center: DoctusPoint, a: Double, b: Double): Unit

    Draws an ellipse 'center' is the the center of the ellipse 'a' and 'b' are the length of the semi major/minor of the ellipse

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. def image(img: DoctusImage, origin: DoctusPoint): Unit

    Draws an image 'origin' is the top left corner of the image.

  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def line(from: DoctusPoint, to: DoctusPoint): Unit

    Draws a line from 'from' to 'to'

  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def rect(origin: DoctusPoint, width: Double, height: Double): Unit

    Draws a rectangle 'origin' is the top left corner of the rectangle.

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def text(str: String, origin: DoctusPoint, rotation: Double): Unit

    Draws a text using the current font.

    Draws a text using the current font. 'origin' is the top left corner of the image. 'rotation' is the rotation angle of the text in radians 0 is a horizontal text from left to right Pi/2 (90 deg) is a vertical text going upward. In that case 'origin' is the bottom left corner of the box surrounding the text

  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped