SolidBrush

Inheritance: java.lang.Object, com.aspose.psd.DisposableObject, com.aspose.psd.Brush

public final class SolidBrush extends Brush

Solid brush is intended for drawing continiously with specific color. This class cannot be inherited.

Constructors

ConstructorDescription
SolidBrush()Initializes a new instance of the SolidBrush class.
SolidBrush(Color color)Initializes a new instance of the SolidBrush class.

Methods

MethodDescription
close()Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
deepClone()Creates a new deep clone of the current Brush .
dispose()Disposes the current instance.
equals(Object arg0)
getClass()
getColor()Gets or sets the brush color.
getDisposed()Gets a value indicating whether this instance is disposed.
getOpacity()Gets the brush opacity.
hashCode()
notify()
notifyAll()
setColor(Color value)Gets or sets the brush color.
setOpacity(float value)Sets the brush opacity.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

SolidBrush()

public SolidBrush()

Initializes a new instance of the SolidBrush class.

SolidBrush(Color color)

public SolidBrush(Color color)

Initializes a new instance of the SolidBrush class.

Parameters:

ParameterTypeDescription
colorColorThe solid brush color.

close()

public void close()

Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.

deepClone()

public Brush deepClone()

Creates a new deep clone of the current Brush .

Returns: Brush - A new Brush which is the deep clone of this Brush instance.

dispose()

public final void dispose()

Disposes the current instance.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public Color getColor()

Gets or sets the brush color.

Value: The brush color.

Returns: Color

getDisposed()

public final boolean getDisposed()

Gets a value indicating whether this instance is disposed.

Returns: boolean - true if disposed; otherwise, false .

getOpacity()

public float getOpacity()

Gets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Returns: float - The brush opacity value.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setColor(Color value)

public void setColor(Color value)

Gets or sets the brush color.

Value: The brush color.

Parameters:

ParameterTypeDescription
valueColor

setOpacity(float value)

public void setOpacity(float value)

Sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Parameters:

ParameterTypeDescription
valuefloatThe brush opacity value.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int