|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WBrush
public class WBrush
A value class that defines the style for filling a path.
A brush defines the properties of how areas (the interior of shapes) are filled. A brush is defined using a color and a fill type (currently only solid fills are supported).
WPainter.setBrush(WBrush b),
WPen| Constructor Summary | |
|---|---|
WBrush()
Creates a brush. |
|
WBrush(BrushStyle style)
Creates a black brush with given style. |
|
WBrush(WColor color)
Creates a solid brush of a given color. |
|
| Method Summary | |
|---|---|
WBrush |
clone()
Clone method. |
boolean |
equals(WBrush other)
Indicates whether some other object is "equal to" this one. |
WColor |
getColor()
Returns the brush color. |
BrushStyle |
getStyle()
Returns the fill style. |
void |
setColor(WColor color)
Sets the brush color. |
void |
setStyle(BrushStyle style)
Sets the brush style. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WBrush()
Creates a brush with a NoBrush fill style.
public WBrush(BrushStyle style)
Creates a black brush with the indicated style.
public WBrush(WColor color)
Creates a solid brush with the indicated color.
| Method Detail |
|---|
public WBrush clone()
Clones this brush.
clone in class java.lang.Objectpublic boolean equals(WBrush other)
Returns true if the brushes are exactly the same.
public void setStyle(BrushStyle style)
getStyle()public BrushStyle getStyle()
setStyle(BrushStyle style)public void setColor(WColor color)
getColor()public WColor getColor()
getColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||