HatchBrush

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

public final class HatchBrush extends Brush

Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.

Constructors

ConstructorDescription
HatchBrush()

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)
getBackgroundColor()Gets the color of spaces between the hatch lines.
getClass()
getDisposed()Gets a value indicating whether this instance is disposed.
getForegroundColor()Gets the color of hatch lines.
getHatchStyle()Gets the hatch style of this brush.
getOpacity()Gets the brush opacity.
hashCode()
notify()
notifyAll()
setBackgroundColor(Color value)Sets the color of spaces between the hatch lines.
setForegroundColor(Color value)Sets the color of hatch lines.
setHatchStyle(int value)Sets the hatch style of this brush.
setOpacity(float value)Sets the brush opacity.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

HatchBrush()

public HatchBrush()

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

getBackgroundColor()

public Color getBackgroundColor()

Gets the color of spaces between the hatch lines.

Returns: Color - The color of spaces between the hatch lines.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDisposed()

public final boolean getDisposed()

Gets a value indicating whether this instance is disposed.

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

getForegroundColor()

public Color getForegroundColor()

Gets the color of hatch lines.

Returns: Color - The color of hatch lines.

getHatchStyle()

public int getHatchStyle()

Gets the hatch style of this brush.

Returns: int

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()

setBackgroundColor(Color value)

public void setBackgroundColor(Color value)

Sets the color of spaces between the hatch lines.

Parameters:

ParameterTypeDescription
valueColorThe color of spaces between the hatch lines.

setForegroundColor(Color value)

public void setForegroundColor(Color value)

Sets the color of hatch lines.

Parameters:

ParameterTypeDescription
valueColorThe color of hatch lines.

setHatchStyle(int value)

public void setHatchStyle(int value)

Sets the hatch style of this brush.

Parameters:

ParameterTypeDescription
valueint

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