DrawingZone

interface DrawingZone : HasChildren

Screen space on which you can draw, a DrawingZone is generally given when calling draw functions so the user don't have to think about layering, or absolute positioning, the given DrawingZone is already placed and sized correctly.

Functions

add
Link copied to clipboard
common
abstract fun add(node: Node)
circle
Link copied to clipboard
common
abstract fun circle(init: CircleNode.() -> Unit): CircleNode
clear
Link copied to clipboard
common
abstract fun clear()
group
Link copied to clipboard
common
abstract fun group(init: GroupNode.() -> Unit): GroupNode
image
Link copied to clipboard
common
abstract fun image(init: ImageNode.() -> Unit): ImageNode
line
Link copied to clipboard
common
abstract fun line(init: LineNode.() -> Unit): LineNode
path
Link copied to clipboard
common
abstract fun path(init: PathNode.() -> Unit): PathNode
rect
Link copied to clipboard
common
abstract fun rect(init: RectNode.() -> Unit): RectNode
remove
Link copied to clipboard
common
abstract fun remove(node: Node)
text
Link copied to clipboard
common
abstract fun text(init: TextNode.() -> Unit): TextNode

Properties

absolutePosition
Link copied to clipboard
common
abstract val absolutePosition: Point
Absolute position of this DrawingZone (its top-left coordinates in screen position).
contentHeight
Link copied to clipboard
common
abstract val contentHeight: Double
Height of this DrawingZone.
contentSize
Link copied to clipboard
common
abstract val contentSize: Size
Size of this DrawingZone: contentSize = Size(contentWidth, contentHeight).
contentWidth
Link copied to clipboard
common
abstract val contentWidth: Double
Width of this DrawingZone.
dashedLine
Link copied to clipboard
common
abstract var dashedLine: DoubleArray?
fill
Link copied to clipboard
common
abstract var fill: ColorOrGradient?
hAlign
Link copied to clipboard
common
abstract var hAlign: TextHAlign
stroke
Link copied to clipboard
common
abstract var stroke: ColorOrGradient?
strokeWidth
Link copied to clipboard
common
abstract var strokeWidth: Double?
textColor
Link copied to clipboard
common
abstract var textColor: ColorOrGradient?
vAlign
Link copied to clipboard
common
abstract var vAlign: TextVAlign

Extensions

drawLine
Link copied to clipboard
common
fun DrawingZone.drawLine(points: List<LinePoint>, curve: PathDrawer, joinMissingValues: Boolean)
(INTERNAL) Draw a curve from a list of points.
drawPlot
Link copied to clipboard
common
fun DrawingZone.drawPlot(x: Double, y: Double, symbol: Symbols?, size: Double?, stroke: ColorOrGradient?, fill: ColorOrGradient?, strokeWidth: Double?)
(INTERNAL) Draw a simple plotting symbol (sign) on this DrawingZone.