Package com.itextpdf.text.pdf.draw
Class DottedLineSeparator
- java.lang.Object
-
- com.itextpdf.text.pdf.draw.VerticalPositionMark
-
- com.itextpdf.text.pdf.draw.LineSeparator
-
- com.itextpdf.text.pdf.draw.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 Summary
Fields Modifier and Type Field Description protected float
gap
the gap between the dots.-
Fields inherited from class com.itextpdf.text.pdf.draw.LineSeparator
alignment, lineColor, lineWidth, percentage
-
Fields inherited from class com.itextpdf.text.pdf.draw.VerticalPositionMark
drawInterface, offset
-
Fields inherited from interface com.itextpdf.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, BODY, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK
-
-
Constructor Summary
Constructors Constructor Description DottedLineSeparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)
Implement this method if you want to draw something at the current Y position (for instance a line).float
getGap()
Getter for the gap between the center of the dots of the dotted line.void
setGap(float gap)
Setter for the gap between the center of the dots of the dotted line.-
Methods inherited from class com.itextpdf.text.pdf.draw.LineSeparator
drawLine, getAlignment, getLineColor, getLineWidth, getPercentage, setAlignment, setLineColor, setLineWidth, setPercentage
-
Methods inherited from class com.itextpdf.text.pdf.draw.VerticalPositionMark
getChunks, getDrawInterface, getOffset, isContent, isNestable, process, setDrawInterface, setOffset, type
-
-
-
-
Method Detail
-
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 interfaceDrawInterface
- Overrides:
draw
in classLineSeparator
- Parameters:
canvas
- the canvas on which you can drawllx
- the x coordinate of the left page marginlly
- the y coordinate of the bottom page marginurx
- the x coordinate of the right page marginury
- the y coordinate of the top page marginy
- the current y position on the page- See Also:
DrawInterface.draw(com.itextpdf.text.pdf.PdfContentByte, float, float, float, float, float)
-
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
-
-