Skip to main content

DXSolidBrush Class

A solid color brush.

Declaration

public class DXSolidBrush 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
DXSolidBrush

DXSolidBrush(Color color)

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

Declaration

public DXSolidBrush(Color color)

Parameters

Name Type Description
color Color

The brush color.

Methods

clone() Method

Creates a copy of this DXSolidBrush.

Declaration

public DXBrush clone()

Returns

Type Description
DXBrush

A copy of this DXSolidBrush.

equals(Object obj) Method

Checks whether this DXSolidBrush equals the specified object.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare with this DXSolidBrush.

Returns

Type Description
boolean

true if the objects are equal; otherwise, false.

getColor() Method

Returns the brush color.

Declaration

public Color getColor()

Returns

Type Description
Color

The brush color.

hashCode() Method

Returns a hash code value for this object.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.

setColor(Color value) Method

Specifies the brush color.

Declaration

public void setColor(Color value)

Parameters

Name Type Description
value Color

The brush color.