java.lang.Object
com.lowagie.text.pdf.VerticalText
Deprecated.
Writes text vertically. Note that the naming is done according to horizontal text although it refers to vertical
text. A line with the alignment Element.LEFT_ALIGN will actually be top aligned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.The column alignment.Deprecated.The chunks that form the text.protected intDeprecated.Marks the chunks to be eliminated when the line is written.protected PdfChunkDeprecated.The chunk created by the splitting.protected floatDeprecated.The height of the text.protected floatDeprecated.The leadingprotected intDeprecated.The maximum number of vertical lines.static final intDeprecated.Signals that there is no more column.static final intDeprecated.Signals that there are no more text available.protected StringDeprecated.The chunk created by the splitting.protected floatDeprecated.The X coordinate.protected floatDeprecated.The Y coordinate.protected PdfContentByteDeprecated.ThePdfContentwhere the text will be written to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds aChunkto the current text array.voidDeprecated.Adds aPhraseto the current text array.protected PdfLinecreateLine(float width) Deprecated.Creates a line from the chunk array.intDeprecated.Gets the alignment.floatDeprecated.Gets the height of the linefloatDeprecated.Gets the separation between the vertical lines.intDeprecated.Gets the maximum number of available lines.floatDeprecated.Gets the X coordinate where the next line will be written.floatDeprecated.Gets the Y coordinate where the next line will be written.intgo()Deprecated.Outputs the lines to the document.intgo(boolean simulate) Deprecated.Outputs the lines to the document.voidsetAlignment(int alignment) Deprecated.Sets the alignment.voidsetHeight(float height) Deprecated.Sets the height of the linevoidsetLeading(float leading) Deprecated.Sets the separation between the vertical lines.voidsetMaxLines(int maxLines) Deprecated.Sets the maximum number of lines.voidsetOrigin(float startX, float startY) Deprecated.Sets the new text origin.voidsetVerticalLayout(float startX, float startY, float height, int maxLines, float leading) Deprecated.Sets the layout.protected voidDeprecated.Normalizes the list of chunks when the line is accepted.
-
Field Details
-
NO_MORE_TEXT
public static final int NO_MORE_TEXTDeprecated.Signals that there are no more text available.- See Also:
-
NO_MORE_COLUMN
public static final int NO_MORE_COLUMNDeprecated.Signals that there is no more column.- See Also:
-
chunks
Deprecated.The chunks that form the text. -
text
Deprecated.ThePdfContentwhere the text will be written to. -
alignment
protected int alignmentDeprecated.The column alignment. Default is left alignment. -
currentChunkMarker
protected int currentChunkMarkerDeprecated.Marks the chunks to be eliminated when the line is written. -
currentStandbyChunk
Deprecated.The chunk created by the splitting. -
splittedChunkText
Deprecated.The chunk created by the splitting. -
leading
protected float leadingDeprecated.The leading -
startX
protected float startXDeprecated.The X coordinate. -
startY
protected float startYDeprecated.The Y coordinate. -
maxLines
protected int maxLinesDeprecated.The maximum number of vertical lines. -
height
protected float heightDeprecated.The height of the text.
-
-
Constructor Details
-
VerticalText
Deprecated.Creates new VerticalText- Parameters:
text- the place where the text will be written to. Can be a template.
-
-
Method Details
-
addText
Deprecated.Adds aPhraseto the current text array.- Parameters:
phrase- the text
-
addText
Deprecated.Adds aChunkto the current text array.- Parameters:
chunk- the text
-
setVerticalLayout
public void setVerticalLayout(float startX, float startY, float height, int maxLines, float leading) Deprecated.Sets the layout.- Parameters:
startX- the top right X line positionstartY- the top right Y line positionheight- the height of the linesmaxLines- the maximum number of linesleading- the separation between the lines
-
getLeading
public float getLeading()Deprecated.Gets the separation between the vertical lines.- Returns:
- the vertical line separation
-
setLeading
public void setLeading(float leading) Deprecated.Sets the separation between the vertical lines.- Parameters:
leading- the vertical line separation
-
createLine
Deprecated.Creates a line from the chunk array.- Parameters:
width- the width of the line- Returns:
- the line or null if no more chunks
-
shortenChunkArray
protected void shortenChunkArray()Deprecated.Normalizes the list of chunks when the line is accepted. -
go
public int go()Deprecated.Outputs the lines to the document. It is equivalent togo(false).- Returns:
- returns the result of the operation. It can be
NO_MORE_TEXTand/orNO_MORE_COLUMN
-
go
public int go(boolean simulate) Deprecated.Outputs the lines to the document. The output can be simulated.- Parameters:
simulate-trueto simulate the writing to the document- Returns:
- returns the result of the operation. It can be
NO_MORE_TEXTand/orNO_MORE_COLUMN
-
setOrigin
public void setOrigin(float startX, float startY) Deprecated.Sets the new text origin.- Parameters:
startX- the X coordinatestartY- the Y coordinate
-
getOriginX
public float getOriginX()Deprecated.Gets the X coordinate where the next line will be written. This value will change after each call togo().- Returns:
- the X coordinate
-
getOriginY
public float getOriginY()Deprecated.Gets the Y coordinate where the next line will be written.- Returns:
- the Y coordinate
-
getMaxLines
public int getMaxLines()Deprecated.Gets the maximum number of available lines. This value will change after each call togo().- Returns:
- Value of property maxLines.
-
setMaxLines
public void setMaxLines(int maxLines) Deprecated.Sets the maximum number of lines.- Parameters:
maxLines- the maximum number of lines
-
getHeight
public float getHeight()Deprecated.Gets the height of the line- Returns:
- the height
-
setHeight
public void setHeight(float height) Deprecated.Sets the height of the line- Parameters:
height- the new height
-
getAlignment
public int getAlignment()Deprecated.Gets the alignment.- Returns:
- the alignment
-
setAlignment
public void setAlignment(int alignment) Deprecated.Sets the alignment.- Parameters:
alignment- the alignment
-