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

ConstructorDescription
CmxTextBlockSpec()

Methods

MethodDescription
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:

ParameterTypeDescription
valueCmxParagraphStylethe 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:

ParameterTypeDescription
valueFontthe 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:

ParameterTypeDescription
valueMatrixthe 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:

ParameterTypeDescription
valuejava.lang.Stringthe 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:

ParameterTypeDescription
valuePointF[]the character locations.

equals(Object o)

public boolean equals(Object o)

Check if objects are equal.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.