paint method
Paints this figure.
This method should only be override by subclass.
Implementation
@override
void paint(Canvas canvas) {
canvas.save();
canvas.translate(axis.dx, axis.dy);
canvas.rotate(rotation);
canvas.translate(-axis.dx, -axis.dy);
super.paint(canvas);
canvas.restore();
}