Layer

Inheritance: java.lang.Object, com.aspose.psd.xmp.types.XmpTypeBase

All Implemented Interfaces: com.aspose.ms.System.IEquatable

public class Layer extends XmpTypeBase implements System.IEquatable<Layer>

Represents Photoshop text layer.

Constructors

ConstructorDescription
Layer(String layerName, String layerText)Initializes a new instance of the Layer class.
Layer()Initializes a new instance of the Layer class.

Methods

MethodDescription
equals(Object obj)Determines whether the specified System.Object , is equal to this instance.
getClass()
getName()Gets or sets the name of the text layer.
getText()Gets or sets the text content of the layer.
getXmpRepresentation()Returns string contained value in XMP format.
hashCode()Returns a hash code for this instance.
isEquals(Layer other)Indicates whether the current object is equal to another object of the same type.
notify()
notifyAll()
setName(String value)Gets or sets the name of the text layer.
setText(String value)Gets or sets the text content of the layer.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Layer(String layerName, String layerText)

public Layer(String layerName, String layerText)

Initializes a new instance of the Layer class.

Parameters:

ParameterTypeDescription
layerNamejava.lang.StringName of the layer.
layerTextjava.lang.StringThe layer text.

Layer()

public Layer()

Initializes a new instance of the Layer class.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified System.Object , is equal to this instance.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe System.Object to compare with this instance.

Returns: boolean - true if the specified System.Object is equal to this instance; otherwise, false .

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

Gets or sets the name of the text layer.

Value: The name of the text layer.

Returns: java.lang.String

getText()

public String getText()

Gets or sets the text content of the layer.

Value: The text content of the layer.

Returns: java.lang.String

getXmpRepresentation()

public String getXmpRepresentation()

Returns string contained value in XMP format.

Returns: java.lang.String - Returns string contained value in XMP format.

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

isEquals(Layer other)

public boolean isEquals(Layer other)

Indicates whether the current object is equal to another object of the same type.

Parameters:

ParameterTypeDescription
otherLayerAn object to compare with this object.

Returns: boolean - true if the current object is equal to the other parameter; otherwise, false.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setName(String value)

public void setName(String value)

Gets or sets the name of the text layer.

Value: The name of the text layer.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setText(String value)

public void setText(String value)

Gets or sets the text content of the layer.

Value: The text content of the layer.

Parameters:

ParameterTypeDescription
valuejava.lang.String

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