Package com.lowagie.text.pdf.draw
Class DottedLineSeparator
java.lang.Object
com.lowagie.text.pdf.draw.VerticalPositionMark
com.lowagie.text.pdf.draw.LineSeparator
com.lowagie.text.pdf.draw.DottedLineSeparator
- All Implemented Interfaces:
Element,DrawInterface
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
FieldsFields inherited from class com.lowagie.text.pdf.draw.LineSeparator
alignment, lineColor, lineWidth, percentageFields inherited from class com.lowagie.text.pdf.draw.VerticalPositionMark
drawInterface, offsetFields inherited from interface com.lowagie.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, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(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).floatgetGap()Getter for the gap between the center of the dots of the dotted line.voidsetGap(float gap) Setter for the gap between the center of the dots of the dotted line.Methods inherited from class com.lowagie.text.pdf.draw.LineSeparator
drawLine, getAlignment, getLineColor, getLineWidth, getPercentage, setAlignment, setLineColor, setLineWidth, setPercentageMethods inherited from class com.lowagie.text.pdf.draw.VerticalPositionMark
getChunks, getDrawInterface, getOffset, isContent, isNestable, process, setDrawInterface, setOffset, type
-
Field Details
-
gap
protected float gapthe gap between the dots.
-
-
Constructor Details
-
DottedLineSeparator
public DottedLineSeparator()
-
-
Method Details
-
draw
Description copied from interface:DrawInterfaceImplement this method if you want to draw something at the current Y position (for instance a line).- Specified by:
drawin interfaceDrawInterface- Overrides:
drawin 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:
-
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
-