Skip to main content

DXHatchBrush Class

A hatch pattern brush.

Declaration

public class DXHatchBrush extends DXBrush

Inherited Members

com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
DXBrush
DXHatchBrush

DXHatchBrush(DXHatchStyle hatchStyle, Color foregroundColor, Color backgroundColor)

Initializes a new instance of the DXHatchBrush class with specified settings.

Declaration

public DXHatchBrush(DXHatchStyle hatchStyle, Color foregroundColor, Color backgroundColor)

Parameters

Name Type Description
hatchStyle DXHatchStyle

The hatch style.

foregroundColor Color

The foreground color.

backgroundColor Color

The background color.

Methods

clone() Method

Creates a copy of this DXHatchBrush.

Declaration

public DXBrush clone()

Returns

Type Description
DXBrush

A copy of this DXHatchBrush.

equals(Object obj) Method

Checks whether this DXHatchBrush equals the specified object.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare with this DXHatchBrush.

Returns

Type Description
boolean

true if the objects are equal; otherwise, false.

getBackgroundColor() Method

Returns the background color.

Declaration

public Color getBackgroundColor()

Returns

Type Description
Color

The background color.

getForegroundColor() Method

Returns the foreground color.

Declaration

public Color getForegroundColor()

Returns

Type Description
Color

The foreground color.

getHatchStyle() Method

Returns the hatch style.

Declaration

public DXHatchStyle getHatchStyle()

Returns

Type Description
DXHatchStyle

The hatch style.

hashCode() Method

Returns a hash code value for this object.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.