Interface ILineDrawer

  • All Known Implementing Classes:
    DashedLine, DottedLine, SolidLine

    public interface ILineDrawer
    The ILineDrawer defines a drawing operation on a PdfCanvas
    This interface allows to customize the 'empty' space in a com.itextpdf.layout.element.TabStop through a Strategy design pattern
    • Method Detail

      • draw

        void draw​(PdfCanvas canvas,
                  Rectangle drawArea)
        Performs configurable drawing operations related to specific region coordinates on a canvas.
        Parameters:
        canvas - the canvas to draw on
        drawArea - the rectangle in relation to which to fulfill drawing instructions
      • getLineWidth

        float getLineWidth()
        Gets the width of the line
        Returns:
        width of the line
      • setLineWidth

        void setLineWidth​(float lineWidth)
        Sets line width in points
        Parameters:
        lineWidth - new line width
      • getColor

        Color getColor()
        Gets the color of the line
        Returns:
        color of the line
      • setColor

        void setColor​(Color color)
        Sets line color
        Parameters:
        color - new line color