com.lowagie.text.pdf.draw

Class VerticalPositionMark

public class VerticalPositionMark extends Object implements DrawInterface, Element

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
protected DrawInterfacedrawInterface
Another implementation of the DrawInterface; its draw method will overrule LineSeparator.draw().
protected floatoffset
The offset for the line.
Constructor Summary
VerticalPositionMark()
Creates a vertical position mark that won't draw anything unless you define a DrawInterface.
VerticalPositionMark(DrawInterface drawInterface, float offset)
Creates a vertical position mark that won't draw anything unless you define a DrawInterface.
Method Summary
voiddraw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)
ArrayListgetChunks()
DrawInterfacegetDrawInterface()
Getter for the interface with the overruling draw() method.
floatgetOffset()
Getter for the offset relative to the baseline of the current line.
booleanisContent()
booleanisNestable()
booleanprocess(ElementListener listener)
voidsetDrawInterface(DrawInterface drawInterface)
Setter for the interface with the overruling draw() method.
voidsetOffset(float offset)
Setter for the offset.
inttype()

Field Detail

drawInterface

protected DrawInterface drawInterface
Another implementation of the DrawInterface; its draw method will overrule LineSeparator.draw().

offset

protected float offset
The offset for the line.

Constructor Detail

VerticalPositionMark

public VerticalPositionMark()
Creates a vertical position mark that won't draw anything unless you define a DrawInterface.

VerticalPositionMark

public VerticalPositionMark(DrawInterface drawInterface, float offset)
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 Detail

draw

public void draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)

See Also: DrawInterface

getChunks

public ArrayList getChunks()

See Also: getChunks

getDrawInterface

public DrawInterface getDrawInterface()
Getter for the interface with the overruling draw() method.

Returns: a DrawInterface implementation

getOffset

public float getOffset()
Getter for the offset relative to the baseline of the current line.

Returns: an offset

isContent

public boolean isContent()

See Also: isContent

isNestable

public boolean isNestable()

See Also: isNestable

process

public boolean process(ElementListener listener)

See Also: process

setDrawInterface

public void setDrawInterface(DrawInterface drawInterface)
Setter for the interface with the overruling draw() method.

Parameters: drawInterface a DrawInterface implementation

setOffset

public void setOffset(float offset)
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

type

public int type()

See Also: type