public class LineAttributes
extends java.lang.Object
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 informationModifier and Type | Field and Description |
---|---|
int |
cap
The line cap style.
|
int |
join
The line join style.
|
float |
width
The line width.
|
Constructor and Description |
---|
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.
|
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
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 boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to compare with this objecttrue
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 java.lang.Object
equals(Object)
Copyright (c) EclipseSource and others 2002, 2015.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0