public class DottedLineSeparator extends LineSeparator
Modifier and Type | Field and Description |
---|---|
protected float |
gap
the gap between the dots.
|
alignment, lineColor, lineWidth, percentage
drawInterface, offset
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 and Description |
---|
DottedLineSeparator() |
Modifier and Type | Method and 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.
|
drawLine, getAlignment, getLineColor, getLineWidth, getPercentage, setAlignment, setLineColor, setLineWidth, setPercentage
getChunks, getDrawInterface, getOffset, isContent, isNestable, process, setDrawInterface, setOffset, type
public void draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)
DrawInterface
draw
in interface DrawInterface
draw
in class LineSeparator
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
DrawInterface.draw(com.itextpdf.text.pdf.PdfContentByte, float, float, float, float, float)
public float getGap()
public void setGap(float gap)
gap
- the gap between the center of the dots
Copyright © 1998–2019. All rights reserved.