Class DefaultPdfTextLocation

  • All Implemented Interfaces:
    IPdfTextLocation

    public class DefaultPdfTextLocation
    extends java.lang.Object
    implements IPdfTextLocation
    This class acts as a default implementation of IPdfTextLocation
    • Field Detail

      • text

        private java.lang.String text
    • Constructor Detail

      • DefaultPdfTextLocation

        public DefaultPdfTextLocation​(Rectangle rect,
                                      java.lang.String text)
        Creates new pdf text location.
        Parameters:
        rect - text rectangle on pdf canvas
        text - actual text on designated area of canvas
    • Method Detail

      • setRectangle

        public DefaultPdfTextLocation setRectangle​(Rectangle rectangle)
        Sets text rectangle (occupied area) for this pdf text location.
        Parameters:
        rectangle - new text rectangle
        Returns:
        this DefaultPdfTextLocation instance
      • getText

        public java.lang.String getText()
        Specified by:
        getText in interface IPdfTextLocation
        Returns:
        the text
      • setText

        public DefaultPdfTextLocation setText​(java.lang.String text)
        Sets text for this pdf text location.
        Parameters:
        text - new text
        Returns:
        this DefaultPdfTextLocation instance