CmxTextBlockSpec
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec
public class CmxTextBlockSpec implements ICmxObjectSpec
Represents info specified for text blocks.
Constructors
| Constructor | Description |
|---|---|
| CmxTextBlockSpec() |
Methods
| Method | Description |
|---|---|
| getParagraphStyle() | Gets the paragraph style. |
| setParagraphStyle(CmxParagraphStyle value) | Sets the paragraph style. |
| getFont() | Gets the font. |
| setFont(Font value) | Sets the font. |
| getMatrix() | Gets the transformation matrix. |
| setMatrix(Matrix value) | Sets the transformation matrix. |
| getText() | Gets the text. |
| setText(String value) | Sets the text. |
| getCharLocations() | Gets the character locations. |
| setCharLocations(PointF[] value) | Sets the character locations. |
| equals(Object o) | Check if objects are equal. |
| hashCode() | Get hash code of the current object. |
CmxTextBlockSpec()
public CmxTextBlockSpec()
getParagraphStyle()
public final CmxParagraphStyle getParagraphStyle()
Gets the paragraph style.
Returns: CmxParagraphStyle - the paragraph style.
setParagraphStyle(CmxParagraphStyle value)
public final void setParagraphStyle(CmxParagraphStyle value)
Sets the paragraph style.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | CmxParagraphStyle | the paragraph style. |
getFont()
public final Font getFont()
Gets the font.
Returns: Font - the font.
setFont(Font value)
public final void setFont(Font value)
Sets the font.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Font | the font. |
getMatrix()
public final Matrix getMatrix()
Gets the transformation matrix.
Returns: Matrix - the transformation matrix.
setMatrix(Matrix value)
public final void setMatrix(Matrix value)
Sets the transformation matrix.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Matrix | the transformation matrix. |
getText()
public final String getText()
Gets the text.
Returns: java.lang.String - the text.
setText(String value)
public final void setText(String value)
Sets the text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | the text. |
getCharLocations()
public final PointF[] getCharLocations()
Gets the character locations.
Returns: com.aspose.imaging.PointF[] - the character locations.
setCharLocations(PointF[] value)
public final void setCharLocations(PointF[] value)
Sets the character locations.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PointF[] | the character locations. |
equals(Object o)
public boolean equals(Object o)
Check if objects are equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | java.lang.Object | The other object. |
Returns: boolean - The equality comparison result.
hashCode()
public int hashCode()
Get hash code of the current object.
Returns: int - The hash code.