|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.graphics.LineAttributes
public class 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.
GC.getLineAttributes()
,
GC.setLineAttributes(LineAttributes)
,
Sample code and further informationField Summary | |
---|---|
int |
cap
The line cap style. |
float[] |
dash
The line dash style for SWT.LINE_CUSTOM. |
float |
dashOffset
The line dash style offset for SWT.LINE_CUSTOM. |
int |
join
The line join style. |
float |
miterLimit
The line miter limit. |
int |
style
The line style. |
float |
width
The line width. |
Constructor Summary | |
---|---|
LineAttributes(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 | |
---|---|
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
hashCode()
Returns an integer hash code for the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float width
public int style
SWT.LINE_CUSTOM
,
SWT.LINE_DASH
,
SWT.LINE_DASHDOT
,
SWT.LINE_DASHDOTDOT
,
SWT.LINE_DOT
,
SWT.LINE_SOLID
public int cap
SWT.CAP_FLAT
,
SWT.CAP_ROUND
,
SWT.CAP_SQUARE
public int join
SWT.JOIN_BEVEL
,
SWT.JOIN_MITER
,
SWT.JOIN_ROUND
public float[] dash
public float dashOffset
public float miterLimit
Constructor Detail |
---|
public LineAttributes(float width)
width
- the line widthpublic LineAttributes(float width, int cap, int join)
width
- the line widthcap
- the line cap stylejoin
- the line join stylepublic LineAttributes(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit)
width
- the line widthcap
- the line cap stylejoin
- the line join stylestyle
- the line styledash
- the line dash styledashOffset
- the line dash style offsetmiterLimit
- the line miter limitMethod Detail |
---|
public boolean equals(Object object)
equals
in class Object
object
- the object to compare with this object
true
if the object is the same as this object and false
otherwisehashCode()
public int hashCode()
true
when passed to
equals
must return the same value for this
method.
hashCode
in class Object
equals(Object)
|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.