Description:
| Parameter | Range | Description |
|---|---|---|
| mode | 0 ... 2 | mode of the line endings |
Sets the line ending mode according to the following values for mode (the red dot represents the specified coordinates for the line ending resp. rectangle corner):
| Mode | Single Line | Connected Lines | Description |
|---|---|---|---|
| LINE_END_PRESERVE | line is drawn up to the last complete dash or dot | ||
| LINE_END_ADJUST | line is draw exactly to the specified end point | ||
| LINE_END_ADJUST_DOT | line is drawn to the last multiple of line thickness |
Note
Example
Attribute.setLineEndingMode(Attribute.LINE_END_ADJUST_DOT);
This example will set the line ending mode to mode 1 (e.g. for drawing dashed rectangles without unexpectedly cropped dashes).
See also:
Draw.drawLine(int, int)
Draw.drawRectangle(int, int, int)
Attribute.setLineCapsStyle(int)
Attribute.setLineThickness(int)
Attribute.setLineStyle(int)
Copyright © demmel products gmbh. All rights reserved.