CutCornerTreatment

constructor()


constructor(size: Float)

Deprecated

Set the size using the ShapeAppearanceModel.Builder

Instantiates a cut corner treatment of a given size. A cut corner treatment introduces two new corners to a shape, produced by a straight line drawn between two points {@param size} pixels away, on the vertical and horizontal axes, from the rectilinear (original) corner of the shape. Stated another way, if the rectilinear (original) corner of the shape was at co-ordinates (0, 0), the new corners are at co-ordinates (size, 0) and (0, size), and a straight line is drawn between them.

Parameters

size

the length in pixels that the new corners will be drawn away from the origin.