public getLineDash() as ArrayList<Double>:
Returns the current dash pattern.
print(painter.getLineDash().size)