Brush
Inheritance: java.lang.Object, com.aspose.psd.DisposableObject
public abstract class Brush extends DisposableObject
The base brush class.
Constructors
Constructor | Description |
---|---|
Brush() |
Methods
Method | Description |
---|---|
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() | |
getDisposed() | Gets a value indicating whether this instance is disposed. |
getOpacity() | Gets the brush opacity. |
hashCode() | |
notify() | |
notifyAll() | |
setOpacity(float value) | Sets the brush opacity. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Brush()
public Brush()
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
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 .
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()
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:
Parameter | Type | Description |
---|---|---|
value | float | The 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |