Packages

 

com.aspose.psd.fileformats.psd.layers

Class TextLayer

    • Method Detail

      • getText

        public final String getText()

        Gets the text.

        Value: The text.
      • getTextBoundBox

        public final RectangleF getTextBoundBox()

        Gets or sets the text bound box.

        Value: The text bound box.
      • setTextBoundBox

        public final void setTextBoundBox(RectangleF value)

        Gets or sets the text bound box.

        Value: The text bound box.
      • getInnerText

        public final String getInnerText()

        Gets the text of the layer

        Value: The text.
      • setInnerText

        public final void setInnerText(String value)

        Gets the text of the layer

        Value: The text.
      • getFont

        public final Font getFont()

        Gets the font.

        Value: The font.
      • getTextColor

        public final Color getTextColor()

        Gets the color of the text.

        Throws:
        PsdImageException - Error parsing color component data Value: The color of the text.
      • getTransformMatrix

        public final double[] getTransformMatrix()

        Gets or sets the transform matrix

        Value: The transform matrix
      • setTransformMatrix

        public final void setTransformMatrix(double[] value)

        Gets or sets the transform matrix

        Value: The transform matrix
      • getTextData

        public final IText getTextData()

        Gets the texts portions.

        Returns:
        An instance of LayerTextData that is bound to the current text layer.
      • updateText

        public final void updateText(String text)

        Updates the text.

        Parameters:
        text - The text value.
      • updateText

        public final void updateText(String text,
                                     float fontSize)

        Updates the text.

        Parameters:
        text - The text value.
        fontSize - Size of the font.
      • updateText

        public final void updateText(String text,
                                     Point leftTopCoordinate)
      • updateText

        public final void updateText(String text,
                                     Color color)

        Updates the text.

        Parameters:
        text - The text value.
        color - The color value.
      • updateText

        public final void updateText(String text,
                                     float fontSize,
                                     Color color)

        Updates the text.

        Parameters:
        text - The text value.
        fontSize - Size of the font.
        color - The color value.
      • updateText

        public final void updateText(String text,
                                     Point leftTopCoordinate,
                                     float fontSize)

        Updates the text.

        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        fontSize - Size of the font.
      • updateText

        public final void updateText(String text,
                                     Point leftTopCoordinate,
                                     Color color)

        Updates the text.

        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        color - The color value.
      • updateText

        public final void updateText(String text,
                                     Point leftTopCoordinate,
                                     float fontSize,
                                     Color color)

        Updates the text.

        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        fontSize - Size of the font.
        color - The color value.
      • getFonts

        public final TextFontInfo[] getFonts()

        Gets the fonts set of the text layer.

        Returns:
        The fonts set of the text layer.