Pen
classin packageklyn.gui.windows
public class Pen:
Pen
Stroke configuration that can be applied to a `Painter`.
pen = Pen(Color(31, 41, 55, 1.0), 2.0)
pen.setDash([6.0, 3.0])
Properties
Modifier and Type Member Description
public property antialiasing
antialiasing as Boolean
Stroke antialiasing flag.
public property cap
cap as String
Line cap: `butt`, `round` or `square`.
public property dashOffset
dashOffset as Double
Dash offset.
public property join
join as String
Line join: `miter`, `round` or `bevel`.
public property miterLimit
miterLimit as Double
Miter limit.
public property paint
paint as Object
Stroke paint source.
public property width
width as Double
Stroke width.
Constructors
Modifier and Type Member Description
public Pen
Pen(paint as Object = null, width as Double = 1.0):
No summary.
Methods
Modifier and Type Member Description
public clone
clone() as Pen:
Duplicates the stroke configuration.
public dash
dash() as ArrayList<Double>:
Returns the current dash pattern.
public setDash
setDash(values as IList<Double>) as Void:
Replaces the current dash pattern.
public override toString
toString() as String:
No summary.