LineAttributes defines a set of line attributes that
can be modified in a GC.
Application code does not need to explicitly release the
resources managed by each instance when those instances are no longer
required, and thus no dispose() method is provided.
GC#getLineAttributes(), GC#setLineAttributes(LineAttributes), Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| public int | cap
The line cap style. |
| public float[] | dash
The line dash style for SWT.LINE_CUSTOM. |
| public float | dashOffset
The line dash style offset for SWT.LINE_CUSTOM. |
| public int | join
The line join style. |
| public float | miterLimit
The line miter limit. |
| public int | style
The line style. |
| public float | width
The line width. |
| Access | Constructor and Description |
|---|---|
| public | LineAttributes(float
the line width width)Create a new line attributes with the specified line width. |
| public | LineAttributes(float
the line width width, int the line cap style cap, int the line join style join)Create a new line attributes with the specified line cap, join and width. |
| public | LineAttributes(float
the line width width, int the line cap style cap, int the line join style join, int the line style style, float[] the line dash style dash, float the line dash style offset dashOffset, float the line miter limit miterLimit)Create a new line attributes with the specified arguments. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object is the same as this object and false otherwisethe object to compare with this object object)Overrides java. |
| public int | Returns: the receiver's hashOverrides java. |
| cap | back to summary |
|---|---|
| public int cap The line cap style. | |
| dash | back to summary |
|---|---|
| public float[] dash The line dash style for SWT.LINE_CUSTOM. | |
| dashOffset | back to summary |
|---|---|
| public float dashOffset The line dash style offset for SWT.LINE_CUSTOM. | |
| join | back to summary |
|---|---|
| public int join The line join style. | |
| miterLimit | back to summary |
|---|---|
| public float miterLimit The line miter limit. | |
| style | back to summary |
|---|---|
| public int style The line style. | |
| width | back to summary |
|---|---|
| public float width The line width. | |
| LineAttributes | back to summary |
|---|---|
| public LineAttributes(float width) Create a new line attributes with the specified line width.
| |
| LineAttributes | back to summary |
|---|---|
| public LineAttributes(float width, int cap, int join) Create a new line attributes with the specified line cap, join and width.
| |
| LineAttributes | back to summary |
|---|---|
| public LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) Create a new line attributes with the specified arguments.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns an integer hash code for the receiver. Any two
objects that return
| |