|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
GC.getLineAttributes()
,
GC.setLineAttributes(LineAttributes)
,
Sample code and further informationField Summary | |
int |
cap
The line cap style. |
int |
join
The line join 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. |
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 cap
SWT.CAP_FLAT
,
SWT.CAP_ROUND
,
SWT.CAP_SQUARE
public int join
SWT.JOIN_BEVEL
,
SWT.JOIN_MITER
,
SWT.JOIN_ROUND
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 styleMethod Detail |
public boolean equals(Object 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.
equals(Object)
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.