Package ilcd
Class Attribute

Public Method setLineStyle

static void setLineStyle(int style)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
style 0x01 ... 0xFF style of the line

This method allows a definition for a line style used by Draw.drawLine(int, int) and Draw.drawRectangle(int, int, int). The parameter style represents a bit mask where a 1 represents a pixel to be written and a 0 a pixel to be omitted. The following table shows some examples for line styles:

style
LINE_SOLID
LINE_DOTTED
LINE_DASHED_4_4 (4 pixel black, 4 pixel white)
LINE_DASHED_2_2 (2 pixel black, 2 pixel white)
LINE_DASH_DOTTED

Note

Example

Control.setLineStyle(Attribute.LINE_DASHED_2_2);
Attribute.setLineStyle(Attribute.LINE_DASHED_2_2);

These two methods are equivaltent and will set the line style to a dashed line with 2 pixels black and 2 pixels white.

See also:

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