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
Constructor | Description |
---|---|
Layer(String layerName, String layerText) | Initializes a new instance of the Layer class. |
Layer() | Initializes a new instance of the Layer class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
layerName | java.lang.String | Name of the layer. |
layerText | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
value | 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
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:
Parameter | Type | Description |
---|---|---|
value | 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.
equals(Object obj)
public boolean equals(Object obj)
Determines whether the specified System.Object
, is equal to this instance.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The 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:
Parameter | Type | Description |
---|---|---|
other | Layer | An 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.