Package-level declarations

Types

Link copied to clipboard
interface ArrowCap
Link copied to clipboard
Link copied to clipboard

Determines how the lines end or start

Link copied to clipboard

Describes how two lines/curves converge

Link copied to clipboard
Link copied to clipboard
class MEdge
Link copied to clipboard
Link copied to clipboard
open class RastScale
Link copied to clipboard
data class StrokeInfo(val thickness: Double = 1.0, val pixelHinting: Boolean = false, val scaleMode: LineScaleMode = LineScaleMode.NORMAL, val startCap: LineCap = LineCap.BUTT, val endCap: LineCap = LineCap.BUTT, val join: LineJoin = LineJoin.MITER, val miterLimit: Double = 20.0, val dash: DoubleList? = null, val dashOffset: Double = 0.0)
Link copied to clipboard
Link copied to clipboard
interface VectorBuilder
Link copied to clipboard
class VectorPath(val commands: IntArrayList = IntArrayList(), val data: DoubleArrayList = DoubleArrayList(), var winding: Winding = Winding.DEFAULT, var optimize: Boolean = true) : AbstractShape2D, IVectorPath, Extra
Link copied to clipboard
class VectorPathTrapezoids(val version: Int, val path: VectorPath, val scale: Int = 100)
Link copied to clipboard

Functions

Link copied to clipboard
fun MBoundsBuilder.add(path: VectorPath, transform: Matrix = Matrix.NIL)
Link copied to clipboard
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
inline fun VectorBuilder.circle(center: Point, radius: Number)
Link copied to clipboard
inline fun VectorBuilder.circleHole(center: Point, radius: Number)
Link copied to clipboard
fun VectorBuilder.cubicTo(c1: Point, c2: Point, a: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun VectorBuilder.lineTo(p: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
fun VectorBuilder.moveTo(p: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
fun VectorBuilder.path(path: VectorPath, m: Matrix = Matrix.NIL)
Link copied to clipboard
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
fun VectorBuilder.quadTo(c: Point, a: Point, m: Matrix = Matrix.NIL)
Link copied to clipboard
fun VectorPath.strokeToFill(info: StrokeInfo, temp: StrokeToFill = StrokeToFill(), outFill: VectorPath = VectorPath(winding = Winding.NON_ZERO)): VectorPath
fun VectorPath.strokeToFill(lineWidth: Double, joins: LineJoin = LineJoin.MITER, startCap: LineCap = LineCap.BUTT, endCap: LineCap = startCap, miterLimit: Double = 4.0, lineDash: DoubleList? = null, lineDashOffset: Double = 0.0, temp: StrokeToFill = StrokeToFill(), outFill: VectorPath = VectorPath(winding = Winding.NON_ZERO)): VectorPath
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun BoundsBuilder.with(path: VectorPath, transform: Matrix = Matrix.NIL): BoundsBuilder
Link copied to clipboard
fun VectorBuilder.write(path: VectorPath, m: Matrix = Matrix.NIL)