|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.pdf.VerticalText
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 | |
static int |
NO_MORE_COLUMN
Signals that there is no more column. |
static int |
NO_MORE_TEXT
Signals that there are no more text available. |
| Constructor Summary | |
VerticalText(PdfContentByte text)
Creates new VerticalText |
|
| Method Summary | |
void |
addText(Chunk chunk)
Adds a Chunk to the current text array. |
void |
addText(Phrase phrase)
Adds a Phrase to the current text array. |
int |
getAlignment()
Gets the alignment. |
float |
getHeight()
Gets the height of the line |
float |
getLeading()
Gets the separation between the vertical lines. |
int |
getMaxLines()
Gets the maximum number of available lines. |
float |
getOriginX()
Gets the X coordinate where the next line will be written. |
float |
getOriginY()
Gets the Y coordinate where the next line will be written. |
int |
go()
Outputs the lines to the document. |
int |
go(boolean simulate)
Outputs the lines to the document. |
void |
setAlignment(int alignment)
Sets the alignment. |
void |
setHeight(float height)
Sets the height of the line |
void |
setLeading(float leading)
Sets the separation between the vertical lines. |
void |
setMaxLines(int maxLines)
Sets the maximum number of lines. |
void |
setOrigin(float startX,
float startY)
Sets the new text origin. |
void |
setVerticalLayout(float startX,
float startY,
float height,
int maxLines,
float leading)
Sets the layout. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_MORE_TEXT
public static final int NO_MORE_COLUMN
| Constructor Detail |
public VerticalText(PdfContentByte text)
text - the place where the text will be written to. Can
be a template.| Method Detail |
public void addText(Phrase phrase)
Phrase to the current text array.
phrase - the textpublic void addText(Chunk chunk)
Chunk to the current text array.
chunk - the text
public void setVerticalLayout(float startX,
float startY,
float height,
int maxLines,
float leading)
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 linespublic void setLeading(float leading)
leading - the vertical line separationpublic float getLeading()
public int go()
go(false).
NO_MORE_TEXT
and/or NO_MORE_COLUMNpublic int go(boolean simulate)
simulate - true to simulate the writing to the document
NO_MORE_TEXT
and/or NO_MORE_COLUMN
public void setOrigin(float startX,
float startY)
startX - the X coordinatestartY - the Y coordinatepublic float getOriginX()
go().
public float getOriginY()
public int getMaxLines()
go().
public void setMaxLines(int maxLines)
maxLines - the maximum number of linespublic float getHeight()
public void setHeight(float height)
height - the new heightpublic void setAlignment(int alignment)
alignment - the alignmentpublic int getAlignment()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||