|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfContentByte
com.lowagie.text.Graphic
public class Graphic
A Graphic element can contain several geometric figures (curves, lines,...).
If you want to use this Element, please read the Sections 8.4 and 8.5 of
the PDF Reference Manual version 1.3 first.
Element| Field Summary | |
|---|---|
static String |
BORDER
This is a type of Graphic. |
static String |
HORIZONTAL_LINE
This is a type of Graphic. |
| 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, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
| Constructor Summary | |
|---|---|
Graphic()
Constructs a Graphic-object. |
|
| Method Summary | |
|---|---|
void |
drawBorder(float lineWidth,
Color color,
float llx,
float lly,
float urx,
float ury)
Draws a border |
void |
drawHorizontalLine(float lineWidth,
Color color,
float x1,
float x2,
float y)
draws a horizontal line. |
ArrayList |
getChunks()
Gets all the chunks in this element. |
boolean |
process(ElementListener listener)
Processes the element by adding it (or the different parts) to an ElementListener. |
void |
processAttributes(float llx,
float lly,
float urx,
float ury,
float y)
Processes the attributes of this object. |
void |
setBorder(float linewidth,
float extraSpace)
Orders this graphic to draw a horizontal line. |
void |
setBorder(float linewidth,
float extraSpace,
Color color)
Orders this graphic to draw a horizontal line. |
void |
setHorizontalLine(float linewidth,
float percentage)
Orders this graphic to draw a horizontal, centered line. |
void |
setHorizontalLine(float linewidth,
float percentage,
Color color)
Orders this graphic to draw a horizontal, centered line. |
void |
setHorizontalLine(float linewidth,
float percentage,
Color color,
int align)
Orders this graphic to draw a horizontal, centered line. |
void |
setHorizontalLine(float linewidth,
float percentage,
int align)
Orders this graphic to draw a horizontal line with some alignment. |
int |
type()
Gets the type of the text element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.lowagie.text.Element |
|---|
toString |
| Field Detail |
|---|
public static final String HORIZONTAL_LINE
public static final String BORDER
| Constructor Detail |
|---|
public Graphic()
Graphic-object.
| Method Detail |
|---|
public boolean process(ElementListener listener)
ElementListener.
process in interface Elementlistener - an ElementListener
true if the element was processed successfully
public int type()
type in interface Elementpublic ArrayList getChunks()
getChunks in interface ElementArrayList
public void setHorizontalLine(float linewidth,
float percentage)
linewidth - the line widthpercentage - the percentage horizontal width in relation to the margins or if negative, an absolute value
public void setHorizontalLine(float linewidth,
float percentage,
int align)
linewidth - the line widthpercentage - the percentage horizontal width in relation to the margins or if negative, an absolute valuealign - the line alignment
public void setHorizontalLine(float linewidth,
float percentage,
Color color)
linewidth - the line widthpercentage - the percentage horizontal width in relation to the margins or if negative, an absolute valuecolor - the color of the line
public void setHorizontalLine(float linewidth,
float percentage,
Color color,
int align)
linewidth - the line widthpercentage - the percentage horizontal width in relation to the margins or if negative, an absolute valuecolor - the color of the linealign - the line alignment
public void drawHorizontalLine(float lineWidth,
Color color,
float x1,
float x2,
float y)
lineWidth - width of the linecolor - color of the linex1 - start position of the linex2 - end position of the liney - y-coordinate of the line
public void setBorder(float linewidth,
float extraSpace)
linewidth - linewidth of the borderextraSpace - extraspace needed as marging on the page
public void setBorder(float linewidth,
float extraSpace,
Color color)
linewidth - linewidth of the borderextraSpace - extraspace needed as marging on the pagecolor - color of the borderbox
public void drawBorder(float lineWidth,
Color color,
float llx,
float lly,
float urx,
float ury)
lineWidth - linewidth of the bordercolor - color of the borderboxllx - lower left x coordinatelly - lower left y coordinateurx - upper right x coordinateury - upper right y coordinate
public void processAttributes(float llx,
float lly,
float urx,
float ury,
float y)
llx - lower left x coordinatelly - lower left y coordinateurx - upper right x coordinateury - upper right y coordinatey -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||