IText
public interface IText
Interface for Text Editing for Text Layers
Methods
Method | Description |
---|---|
addPortion(ITextPortion portion) | Adds the portion of text to the end |
getItems() | Gets the items. |
getText() | Gets the text. |
getTextOrientation() | Gets or sets the text orientation. |
insertPortion(ITextPortion portion, int index) | Inserts the ITextPortion to specified position |
producePortion() | Produces the new portion with default parameters |
producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype) | Produces the new portions with input or default parameters. |
removePortion(int index) | Removes the portion in specified index |
setTextOrientation(int value) | Gets or sets the text orientation. |
updateLayerData() | Updates the layer data. |
addPortion(ITextPortion portion)
public abstract void addPortion(ITextPortion portion)
Adds the portion of text to the end
Parameters:
Parameter | Type | Description |
---|---|---|
portion | ITextPortion | The portion. |
getItems()
public abstract ITextPortion[] getItems()
Gets the items.
Value: The items.
Returns: com.aspose.psd.fileformats.psd.layers.text.ITextPortion[]
getText()
public abstract String getText()
Gets the text.
Value: The text.
Returns: java.lang.String
getTextOrientation()
public abstract int getTextOrientation()
Gets or sets the text orientation.
Value: The text orientation.
Returns: int
insertPortion(ITextPortion portion, int index)
public abstract void insertPortion(ITextPortion portion, int index)
Inserts the ITextPortion to specified position
Parameters:
Parameter | Type | Description |
---|---|---|
portion | ITextPortion | The portion. |
index | int | The index. |
producePortion()
public abstract ITextPortion producePortion()
Produces the new portion with default parameters
Returns: ITextPortion - Reference to newly created ITextPortion.
producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype)
public abstract ITextPortion[] producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype)
Produces the new portions with input or default parameters.
Parameters:
Parameter | Type | Description |
---|---|---|
portionsOfText | java.lang.String[] | The portions of text to create new ITextPortion . |
stylePrototype | ITextStyle | A style that, if not null, will be applied in the new , otherwise will be default. |
paragraphPrototype | ITextParagraph | A paragraph that, if not null, will be applied in the new , otherwise will be default. |
Returns: com.aspose.psd.fileformats.psd.layers.text.ITextPortion[] - Returns the new portions ITextPortion based on input parameters.
removePortion(int index)
public abstract void removePortion(int index)
Removes the portion in specified index
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The index. |
setTextOrientation(int value)
public abstract void setTextOrientation(int value)
Gets or sets the text orientation.
Value: The text orientation.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
updateLayerData()
public abstract void updateLayerData()
Updates the layer data.