java.lang.Objectcom.pdfjet.TextColumn
public class TextColumn
Used to create text column objects and draw them on a page. Please see Example_10.
| Constructor Summary | |
|---|---|
TextColumn()
Create a text column object. |
|
TextColumn(int rotateByDegrees)
Create a text column object and set the rotation angle. |
|
| Method Summary | |
|---|---|
void |
addChineseParagraph(Font font,
java.lang.String chinese)
Adds a new paragraph with Chinese text to this text column. |
void |
addJapaneseParagraph(Font font,
java.lang.String japanese)
Adds a new paragraph with Japanese text to this text column. |
void |
addParagraph(Paragraph paragraph)
Adds a new paragraph to this text column. |
Point |
drawOn(Page page)
Draws this text column on the specified page. |
Point |
drawOn(Page page,
boolean draw)
Draws this text column on the specified page if the 'draw' boolean value is 'true'. |
Dimension |
getSize()
Returns dimension object containing the width and height of this component. |
void |
removeLastParagraph()
Removes the last paragraph added to this text column. |
void |
setAlignment(int alignment)
Sets the text alignment. |
void |
setLineBetweenParagraphs(boolean lineBetweenParagraphs)
Sets the lineBetweenParagraphs private variable value. |
void |
setLineSpacing(double spacing)
Sets the spacing between the lines in this text column. |
void |
setLineSpacing(float spacing)
Sets the spacing between the lines in this text column. |
void |
setLocation(float x,
float y)
Sets the position of this text column on the page. |
void |
setPosition(double x,
double y)
Sets the position of this text column on the page. |
void |
setPosition(float x,
float y)
Sets the position of this text column on the page. |
void |
setSize(double w,
double h)
Sets the size of this text column. |
void |
setSize(float w,
float h)
Sets the size of this text column. |
void |
setSpaceBetweenLines(float space_between_lines)
|
void |
setSpaceBetweenParagraphs(float space_between_paragraphs)
|
void |
setWidth(float w)
Sets the desired width of this text column. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextColumn()
public TextColumn(int rotateByDegrees)
throws java.lang.Exception
rotateByDegrees - the specified rotation angle in degrees.
java.lang.Exception| Method Detail |
|---|
public void setLineBetweenParagraphs(boolean lineBetweenParagraphs)
lineBetweenParagraphs - the specified boolean value.public void setSpaceBetweenLines(float space_between_lines)
public void setSpaceBetweenParagraphs(float space_between_paragraphs)
public void setPosition(double x,
double y)
x - the x coordinate of the top left corner of this text column when drawn on the page.y - the y coordinate of the top left corner of this text column when drawn on the page.
public void setPosition(float x,
float y)
x - the x coordinate of the top left corner of this text column when drawn on the page.y - the y coordinate of the top left corner of this text column when drawn on the page.
public void setLocation(float x,
float y)
x - the x coordinate of the top left corner of this text column when drawn on the page.y - the y coordinate of the top left corner of this text column when drawn on the page.
public void setSize(double w,
double h)
w - the width of this text column.h - the height of this text column.
public void setSize(float w,
float h)
w - the width of this text column.h - the height of this text column.public void setWidth(float w)
w - the width of this text column.public void setAlignment(int alignment)
alignment - the specified alignment code. Supported values: Align.LEFT, Align.RIGHT. Align.CENTER and Align.JUSTIFYpublic void setLineSpacing(double spacing)
spacing - the specified spacing value.public void setLineSpacing(float spacing)
spacing - the specified spacing value.public void addParagraph(Paragraph paragraph)
paragraph - the new paragraph object.public void removeLastParagraph()
public Dimension getSize()
throws java.lang.Exception
java.lang.Exception
public Point drawOn(Page page)
throws java.lang.Exception
page - the page to draw this text column on.
java.lang.Exception
public Point drawOn(Page page,
boolean draw)
throws java.lang.Exception
page - the page to draw this text column on.draw - the boolean value that specified if the text column should actually be drawn on the page.
java.lang.Exception
public void addChineseParagraph(Font font,
java.lang.String chinese)
throws java.lang.Exception
font - the font used by this paragraph.chinese - the Chinese text.
java.lang.Exception
public void addJapaneseParagraph(Font font,
java.lang.String japanese)
throws java.lang.Exception
font - the font used by this paragraph.japanese - the Japanese text.
java.lang.Exception