VectorBuilder

interface VectorBuilder

Inheritors

Properties

Link copied to clipboard
abstract val lastMovePos: Point
Link copied to clipboard
abstract val lastPos: Point
Link copied to clipboard
abstract val totalPoints: Int

Functions

Link copied to clipboard
open override fun VectorBuilder.append(p0: Point, p1: Point, width: Double)
Link copied to clipboard
open fun arc(center: Point, r: Double, start: Angle, end: Angle, counterclockwise: Boolean = false)
Link copied to clipboard
open fun arcTo(a: Point, c: Point, r: Double)
open fun arcTo(a: Point, c: Point, r: Float)
Link copied to clipboard
fun VectorBuilder.arrow(p0: Point, p1: Point, capEnd: ArrowCap = ArrowCap.Line(null), capStart: ArrowCap = ArrowCap.NoCap)
Link copied to clipboard
fun VectorBuilder.arrowTo(p: Point, capEnd: ArrowCap = ArrowCap.Line(null), capStart: ArrowCap = ArrowCap.NoCap)
Link copied to clipboard
open fun circle(circle: Circle)
open fun circle(center: Point, radius: Double)
Link copied to clipboard
inline fun VectorBuilder.circle(center: Point, radius: Number)
Link copied to clipboard
open fun circleHole(circle: Circle)
open fun circleHole(center: Point, radius: Double)
Link copied to clipboard
inline fun VectorBuilder.circleHole(center: Point, radius: Number)
Link copied to clipboard
abstract fun close()
Link copied to clipboard
open fun cubic(o: Point, c1: Point, c2: Point, a: Point)
Link copied to clipboard
abstract fun cubicTo(c1: Point, c2: Point, a: Point)
open fun cubicTo(c1x: Double, c1y: Double, c2x: Double, c2y: Double, ax: Double, ay: Double)
open fun cubicTo(c1x: Float, c1y: Float, c2x: Float, c2y: Float, ax: Float, ay: Float)
open fun cubicTo(c1x: Int, c1y: Int, c2x: Int, c2y: Int, ax: Int, ay: Int)
Link copied to clipboard
fun VectorBuilder.cubicTo(c1: Point, c2: Point, a: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
open fun curve(curve: Bezier)
Link copied to clipboard
open fun curves(curves: Curves)
open fun curves(curves: List<Curves>)
Link copied to clipboard
open fun ellipse(ellipse: Ellipse)
open fun ellipse(bounds: Rectangle)
open fun ellipse(center: Point, radius: Size)
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
open fun line(p0: Point, p1: Point)
Link copied to clipboard
abstract fun lineTo(p: Point)
open fun lineTo(x: Double, y: Double)
open fun lineTo(x: Float, y: Float)
open fun lineTo(x: Int, y: Int)
Link copied to clipboard
fun VectorBuilder.lineTo(p: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
open fun lineToH(x: Double)
Link copied to clipboard
open fun lineToV(y: Double)
Link copied to clipboard
abstract fun moveTo(p: Point)
open fun moveTo(x: Double, y: Double)
open fun moveTo(x: Float, y: Float)
open fun moveTo(x: Int, y: Int)
Link copied to clipboard
fun VectorBuilder.moveTo(p: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
open fun moveToH(x: Double)
Link copied to clipboard
open fun moveToV(y: Double)
Link copied to clipboard
open fun parallelogram(bounds: Rectangle, angle: Angle = 30.degrees, direction: Boolean = true)

Creates a parallelogram where the inner part is within bounds.

Link copied to clipboard
fun VectorBuilder.path(path: VectorPath, m: Matrix = Matrix.NIL)
Link copied to clipboard
fun VectorBuilder.polyArrows(points: PointList, capEnd: ArrowCap = ArrowCap.Line(), capStart: ArrowCap = ArrowCap.NoCap)
fun VectorBuilder.polyArrows(vararg points: Point, capEnd: ArrowCap = ArrowCap.Line(), capStart: ArrowCap = ArrowCap.NoCap)
fun VectorBuilder.polyArrows(points: List<Point>, capEnd: ArrowCap = ArrowCap.Line(), capStart: ArrowCap = ArrowCap.NoCap)

Creates a polyline from points adding arrow caps (capEnd and capStart) in each segment. Useful for displaying directed graphs

Link copied to clipboard
open fun polygon(path: PointList, close: Boolean = true)
open fun polygon(vararg path: Point, close: Boolean = true)
open fun polygon(path: List<Point>, close: Boolean = true)
Link copied to clipboard
open fun polyline(points: PointList, close: Boolean = false)
open fun polyline(vararg points: Point, close: Boolean = false)
open fun polyline(points: List<Point>, close: Boolean = false)
Link copied to clipboard
open fun quad(o: Point, c: Point, a: Point)
Link copied to clipboard
open fun quadTo(c: Point, a: Point)
open fun quadTo(cx: Double, cy: Double, ax: Double, ay: Double)
open fun quadTo(cx: Float, cy: Float, ax: Float, ay: Float)
open fun quadTo(cx: Int, cy: Int, ax: Int, ay: Int)
Link copied to clipboard
fun VectorBuilder.quadTo(c: Point, a: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
open fun rCubicTo(c1: Point, c2: Point, a: Point)
open fun rCubicTo(c1: Point, c2: Point, a: Point, relative: Boolean)
Link copied to clipboard
open fun rect(rect: Rectangle)
open fun rect(rect: RectangleInt)
open fun rect(pos: Point, size: Size)
open fun rect(x: Double, y: Double, width: Double, height: Double)
open fun rect(x: Float, y: Float, width: Float, height: Float)
open fun rect(x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
open fun rectHole(rect: Rectangle)
open fun rectHole(x: Double, y: Double, width: Double, height: Double)
open fun rectHole(x: Float, y: Float, width: Float, height: Float)
open fun rectHole(x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
open fun regularPolygon(points: Int, radius: Double, rotated: Angle = 0.degrees, x: Double = 0.0, y: Double = 0.0)
Link copied to clipboard
open fun regularPolygonHole(points: Int, radius: Double, rotated: Angle = 0.degrees, x: Double = 0.0, y: Double = 0.0)
Link copied to clipboard
open fun rLineTo(delta: Point)
open fun rLineTo(a: Point, relative: Boolean)
Link copied to clipboard
open fun rLineToH(x: Double)
open fun rLineToH(x: Double, relative: Boolean)
Link copied to clipboard
open fun rLineToHV(value: Double, horizontal: Boolean)
Link copied to clipboard
open fun rLineToV(y: Double)
open fun rLineToV(y: Double, relative: Boolean)
Link copied to clipboard
open fun rMoveTo(delta: Point)
open fun rMoveTo(a: Point, relative: Boolean)
Link copied to clipboard
open fun rMoveToH(x: Double)
open fun rMoveToH(x: Double, relative: Boolean)
Link copied to clipboard
open fun rMoveToHV(value: Double, horizontal: Boolean)
Link copied to clipboard
open fun rMoveToV(y: Double)
open fun rMoveToV(y: Double, relative: Boolean)
Link copied to clipboard
open fun roundRect(rect: RoundRectangle)
open fun roundRect(x: Double, y: Double, w: Double, h: Double, rx: Double, ry: Double = rx)
open fun roundRect(x: Float, y: Float, w: Float, h: Float, rx: Float, ry: Float = rx)
open fun roundRect(x: Int, y: Int, w: Int, h: Int, rx: Int, ry: Int = rx)
open fun roundRect(x: Double, y: Double, w: Double, h: Double, rtl: Double, rtr: Double, rbr: Double, rbl: Double)
Link copied to clipboard
open fun rQuadTo(c: Point, a: Point)
open fun rQuadTo(c: Point, a: Point, relative: Boolean)
Link copied to clipboard
open fun star(points: Int, radiusSmall: Double, radiusBig: Double, rotated: Angle = 0.degrees, x: Double = 0.0, y: Double = 0.0)
Link copied to clipboard
open fun starHole(points: Int, radiusSmall: Double, radiusBig: Double, rotated: Angle = 0.degrees, x: Double = 0.0, y: Double = 0.0)
Link copied to clipboard
open fun <T> transformed(m: Matrix, block: VectorBuilder.() -> T): T
Link copied to clipboard
open fun write(curves: Curves)
open fun write(curves: List<Curves>)
Link copied to clipboard
fun VectorBuilder.write(path: VectorPath, m: Matrix = Matrix.NIL)