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)
Copyright © demmel products gmbh. All rights reserved.