extend drawEllipseByAngle and setLineDash in Graphics