Class DottedLineSeparator

All Implemented Interfaces:
Element, DrawInterface

public class DottedLineSeparator extends LineSeparator
Element that draws a dotted line from left to right. Can be added directly to a document or column. Can also be used to create a separator chunk.
Since:
2.1.2
  • Field Details

    • gap

      protected float gap
      the gap between the dots.
  • Constructor Details

    • DottedLineSeparator

      public DottedLineSeparator()
  • Method Details

    • draw

      public void draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)
      Description copied from interface: DrawInterface
      Implement this method if you want to draw something at the current Y position (for instance a line).
      Specified by:
      draw in interface DrawInterface
      Overrides:
      draw in class LineSeparator
      Parameters:
      canvas - the canvas on which you can draw
      llx - the x coordinate of the left page margin
      lly - the y coordinate of the bottom page margin
      urx - the x coordinate of the right page margin
      ury - the y coordinate of the top page margin
      y - the current y position on the page
      See Also:
    • getGap

      public float getGap()
      Getter for the gap between the center of the dots of the dotted line.
      Returns:
      the gap between the center of the dots
    • setGap

      public void setGap(float gap)
      Setter for the gap between the center of the dots of the dotted line.
      Parameters:
      gap - the gap between the center of the dots