Layer

Inheritance: java.lang.Object, com.aspose.imaging.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
getName()Gets or sets the name of the text layer.
setName(String value)Gets or sets the name of the text layer.
getText()Gets or sets the text content of the layer.
setText(String value)Gets or sets the text content of the layer.
getXmpRepresentation()Returns string contained value in XMP format.
equals(Object obj)Determines whether the specified System.Object, is equal to this instance.
isEquals(Layer other)Indicates whether the current object is equal to another object of the same type.
hashCode()Returns a hash code for this instance.

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.

getName()

public String getName()

Gets or sets the name of the text layer.

Value: The name of the text layer.

Returns: java.lang.String

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

getText()

public String getText()

Gets or sets the text content of the layer.

Value: The text content of the layer.

Returns: java.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

getXmpRepresentation()

public String getXmpRepresentation()

Returns string contained value in XMP format.

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

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.

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.

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.