Package org.eclipse.swt.graphics
Class LineAttributes
java.lang.Object
org.eclipse.swt.graphics.LineAttributes
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.
 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe line cap style.float[]The line dash style for SWT.LINE_CUSTOM.floatThe line dash style offset for SWT.LINE_CUSTOM.intThe line join style.floatThe line miter limit.intThe line style.floatThe line width.
- 
Constructor SummaryConstructorsConstructorDescriptionLineAttributes(float width) Create a new line attributes with the specified line width.LineAttributes(float width, int cap, int join) Create a new line attributes with the specified line cap, join and width.LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) Create a new line attributes with the specified arguments.
- 
Method Summary
- 
Field Details- 
widthpublic float widthThe line width.
- 
stylepublic int styleThe line style.
- 
cappublic int capThe line cap style.- See Also:
 
- 
joinpublic int joinThe line join style.- See Also:
 
- 
dashpublic float[] dashThe line dash style for SWT.LINE_CUSTOM.
- 
dashOffsetpublic float dashOffsetThe line dash style offset for SWT.LINE_CUSTOM.
- 
miterLimitpublic float miterLimitThe line miter limit.
 
- 
- 
Constructor Details- 
LineAttributespublic LineAttributes(float width) Create a new line attributes with the specified line width.- Parameters:
- width- the line width
 
- 
LineAttributespublic LineAttributes(float width, int cap, int join) Create a new line attributes with the specified line cap, join and width.- Parameters:
- width- the line width
- cap- the line cap style
- join- the line join style
 
- 
LineAttributespublic LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) Create a new line attributes with the specified arguments.- Parameters:
- width- the line width
- cap- the line cap style
- join- the line join style
- style- the line style
- dash- the line dash style
- dashOffset- the line dash style offset
- miterLimit- the line miter limit
 
 
- 
- 
Method Details- 
equalsCompares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
- 
hashCodepublic int hashCode()Returns an integer hash code for the receiver. Any two objects that returntruewhen passed toequalsmust return the same value for this method.
 
-