java.lang.Object
com.lowagie.text.pdf.draw.VerticalPositionMark
- All Implemented Interfaces:
Element,DrawInterface
- Direct Known Subclasses:
LineSeparator
Deprecated.
Helper class implementing the DrawInterface. Can be used to add horizontal or vertical separators. Won't draw
anything unless you implement the draw method.
- Since:
- 2.1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DrawInterfaceDeprecated.Another implementation of the DrawInterface; its draw method will overrule LineSeparator.draw().protected floatDeprecated.The offset for the line.Fields 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, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MODIFICATIONDATE, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a vertical position mark that won't draw anything unless you define a DrawInterface.VerticalPositionMark(DrawInterface drawInterface, float offset) Deprecated.Creates a vertical position mark that won't draw anything unless you define a DrawInterface. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y) Deprecated.Implement this method if you want to draw something at the current Y position (for instance a line).Deprecated.Gets all the chunks in this element.Deprecated.Getter for the interface with the overruling draw() method.floatDeprecated.Getter for the offset relative to the baseline of the current line.booleanDeprecated.Checks if this element is a content object.booleanDeprecated.Checks if this element is nestable.booleanprocess(ElementListener listener) Deprecated.Processes the element by adding it (or the different parts) to anElementListener.voidsetDrawInterface(DrawInterface drawInterface) Deprecated.Setter for the interface with the overruling draw() method.voidsetOffset(float offset) Deprecated.Setter for the offset.inttype()Deprecated.Gets the type of the text element.
-
Field Details
-
drawInterface
Deprecated.Another implementation of the DrawInterface; its draw method will overrule LineSeparator.draw(). -
offset
protected float offsetDeprecated.The offset for the line.
-
-
Constructor Details
-
VerticalPositionMark
public VerticalPositionMark()Deprecated.Creates a vertical position mark that won't draw anything unless you define a DrawInterface. -
VerticalPositionMark
Deprecated.Creates a vertical position mark that won't draw anything unless you define a DrawInterface.- Parameters:
drawInterface- the drawInterface for this vertical position mark.offset- the offset for this vertical position mark.
-
-
Method Details
-
draw
Deprecated.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- 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:
-
process
Deprecated.Description copied from interface:ElementProcesses the element by adding it (or the different parts) to anElementListener. -
type
public int type()Deprecated.Description copied from interface:ElementGets the type of the text element. -
isContent
public boolean isContent()Deprecated.Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Deprecated.Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- See Also:
-
getChunks
Deprecated.Description copied from interface:ElementGets all the chunks in this element. -
getDrawInterface
Deprecated.Getter for the interface with the overruling draw() method.- Returns:
- a DrawInterface implementation
-
setDrawInterface
Deprecated.Setter for the interface with the overruling draw() method.- Parameters:
drawInterface- a DrawInterface implementation
-
getOffset
public float getOffset()Deprecated.Getter for the offset relative to the baseline of the current line.- Returns:
- an offset
-
setOffset
public void setOffset(float offset) Deprecated.Setter for the offset. The offset is relative to the current Y position. If you want to underline something, you have to choose a negative offset.- Parameters:
offset- an offset
-