Packages

 

com.aspose.imaging.fileformats.psd.layers

Class TextLayer

  • All Implemented Interfaces:
    IObjectWithBounds, IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader, com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable, com.aspose.imaging_internal.ILayer, com.aspose.imaging_internal.IPixelsSaver, com.aspose.imaging_internal.progressmanagement.IProgressEventHandler, com.aspose.imaging_internal.progressmanagement.IProgressInformer, com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public class TextLayer
    extends Layer
    implements com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable

    The text layer class

    • Method Detail

      • getText

        public String getText()

        Gets the text.

        Specified by:
        getText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Returns:
        The text.
      • getTextBoundBox

        public final Size getTextBoundBox()

        Gets the text bound box.

        Value: The text bound box.
        Returns:
        the text bound box.
      • getInnerText

        public String getInnerText()

        Gets the text of the layer

        Specified by:
        getInnerText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Returns:
        The text.
      • getFont

        public Font getFont()

        Gets the font.

        Specified by:
        getFont in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Returns:
        The font.
      • getTextColor

        public Color getTextColor()

        Gets the color of the text.

        Specified by:
        getTextColor in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Returns:
        The color of the text.
        Throws:
        PsdImageException - Error parsing color component data
      • updateText

        public void updateText(String text)

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
      • updateText

        public void updateText(String text,
                               float fontSize)

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        fontSize - Size of the font.
      • updateText

        public void updateText(String text,
                               Color color)

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        color - The color value.
      • updateText

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

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        fontSize - Size of the font.
        color - The color value.
      • updateText

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

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        fontSize - Size of the font.
      • updateText

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

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        color - The color value.
      • updateText

        public void updateText(String text,
                               Point leftTopCoordinate)

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
      • updateText

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

        Updates the text.

        Specified by:
        updateText in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
        Parameters:
        text - The text value.
        leftTopCoordinate - The left top coordinate.
        fontSize - Size of the font.
        color - The color value.