Package ilcd
Class Attribute

Public Method setLineCapsStyle

static void setLineCapsStyle(int style)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
style 0 ... 2 style of the line caps

Sets the style of the line caps according to the following styles (the red dot represents the specified coordinates for the line ending):

Style Description
LINE_CAP_ROUND
LINE_CAP_BUTT
LINE_CAP_SQUARE

Note

Example

Attribute.setLineCapsStyle(Attribute.LINE_CAP_BUTT);

After issuing this method, all subsequently drawn lines will have rectangular line caps and will start and end precisely at the specified coordinates (no overlapping).

See also:

Draw.drawLine(int, int)
Draw.drawRectangle(int, int, int)
Attribute.setLineThickness(int)
Attribute.setLineEndingMode(int)