|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PDFTarget
Rendering target to PDF format.
This target is used by renderers objects to render a graph to PDF and uses the iText Java library.
The target give access to the PDFContentBype object from itext to
draw items.
When this target is instanciated it uses property values defined in the
PreviewProperties. Namely is uses MARGIN_LEFT,
MARGIN_TOP, MARGIN_BOTTOM, MARGIN_RIGHT,
LANDCAPE and PAGESIZE.
| Field Summary | |
|---|---|
static java.lang.String |
LANDSCAPE
|
static java.lang.String |
MARGIN_BOTTOM
|
static java.lang.String |
MARGIN_LEFT
|
static java.lang.String |
MARGIN_RIGHT
|
static java.lang.String |
MARGIN_TOP
|
static java.lang.String |
PAGESIZE
|
static java.lang.String |
PDF_CONTENT_BYTE
|
| Fields inherited from interface org.gephi.preview.api.RenderTarget |
|---|
PDF_TARGET, PROCESSING_TARGET, SVG_TARGET |
| Method Summary | |
|---|---|
BaseFont |
getBaseFont(java.awt.Font font)
Get a the equivalent in iText of the Java font. |
PdfContentByte |
getContentByte()
Returns the PDFContentBype instance of the PDFTarget. |
float |
getMarginBottom()
Returns the margin at the bottom of the page. |
float |
getMarginLeft()
Returns the margin at the left of the page. |
float |
getMarginRight()
Returns the margin at the right of the page. |
float |
getMarginTop()
Returns the margin at the top of the page. |
Rectangle |
getPageSize()
Returns the page's size. |
boolean |
isLandscape()
Returns whether the orientation is in landscape or portrait. |
| Field Detail |
|---|
static final java.lang.String PDF_CONTENT_BYTE
static final java.lang.String MARGIN_LEFT
static final java.lang.String MARGIN_TOP
static final java.lang.String MARGIN_BOTTOM
static final java.lang.String MARGIN_RIGHT
static final java.lang.String LANDSCAPE
static final java.lang.String PAGESIZE
| Method Detail |
|---|
PdfContentByte getContentByte()
PDFContentBype instance of the PDFTarget. PDFContentByte
offers a set of drawing functions which can be used by Renderer objects.
BaseFont getBaseFont(java.awt.Font font)
If font can't be found in iText's default fonts or registered
fonts it returns the default Helvetica font.
font - the reference Java font
float getMarginBottom()
float getMarginLeft()
float getMarginRight()
float getMarginTop()
boolean isLandscape()
true if the orientation is landscape, false
if portrait.Rectangle getPageSize()
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||