Package org.gephi.io.exporter.preview
Class PDFExporter
- java.lang.Object
-
- org.gephi.io.exporter.preview.PDFExporter
-
- All Implemented Interfaces:
org.gephi.io.exporter.spi.ByteExporter,org.gephi.io.exporter.spi.Exporter,org.gephi.io.exporter.spi.VectorExporter,org.gephi.utils.longtask.spi.LongTask
public class PDFExporter extends Object implements org.gephi.io.exporter.spi.ByteExporter, org.gephi.io.exporter.spi.VectorExporter, org.gephi.utils.longtask.spi.LongTask
Class exporting the preview graph as a PDF file.- Author:
- Jérémy Subtil, Mathieu Bastian
-
-
Field Summary
Fields Modifier and Type Field Description private booleancancelprivate booleanlandscapeprivate floatmarginBottomprivate floatmarginLeftprivate floatmarginRightprivate floatmarginTopprivate com.itextpdf.text.RectanglepageSizeprivate org.gephi.utils.progress.ProgressTicketprogressprivate OutputStreamstreamprivate org.gephi.preview.api.PDFTargettargetprivate org.gephi.project.api.Workspaceworkspace
-
Constructor Summary
Constructors Constructor Description PDFExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()booleanexecute()floatgetMarginBottom()floatgetMarginLeft()floatgetMarginRight()floatgetMarginTop()com.itextpdf.text.RectanglegetPageSize()org.gephi.project.api.WorkspacegetWorkspace()booleanisLandscape()voidsetLandscape(boolean landscape)voidsetMarginBottom(float marginBottom)voidsetMarginLeft(float marginLeft)voidsetMarginRight(float marginRight)voidsetMarginTop(float marginTop)voidsetOutputStream(OutputStream stream)voidsetPageSize(com.itextpdf.text.Rectangle pageSize)voidsetProgressTicket(org.gephi.utils.progress.ProgressTicket progressTicket)voidsetWorkspace(org.gephi.project.api.Workspace workspace)
-
-
-
Field Detail
-
progress
private org.gephi.utils.progress.ProgressTicket progress
-
workspace
private org.gephi.project.api.Workspace workspace
-
stream
private OutputStream stream
-
cancel
private boolean cancel
-
target
private org.gephi.preview.api.PDFTarget target
-
marginTop
private float marginTop
-
marginBottom
private float marginBottom
-
marginLeft
private float marginLeft
-
marginRight
private float marginRight
-
landscape
private boolean landscape
-
pageSize
private com.itextpdf.text.Rectangle pageSize
-
-
Method Detail
-
execute
public boolean execute()
- Specified by:
executein interfaceorg.gephi.io.exporter.spi.Exporter
-
isLandscape
public boolean isLandscape()
-
setLandscape
public void setLandscape(boolean landscape)
-
getMarginBottom
public float getMarginBottom()
-
setMarginBottom
public void setMarginBottom(float marginBottom)
-
getMarginLeft
public float getMarginLeft()
-
setMarginLeft
public void setMarginLeft(float marginLeft)
-
getMarginRight
public float getMarginRight()
-
setMarginRight
public void setMarginRight(float marginRight)
-
getMarginTop
public float getMarginTop()
-
setMarginTop
public void setMarginTop(float marginTop)
-
getPageSize
public com.itextpdf.text.Rectangle getPageSize()
-
setPageSize
public void setPageSize(com.itextpdf.text.Rectangle pageSize)
-
setOutputStream
public void setOutputStream(OutputStream stream)
- Specified by:
setOutputStreamin interfaceorg.gephi.io.exporter.spi.ByteExporter
-
getWorkspace
public org.gephi.project.api.Workspace getWorkspace()
- Specified by:
getWorkspacein interfaceorg.gephi.io.exporter.spi.Exporter
-
setWorkspace
public void setWorkspace(org.gephi.project.api.Workspace workspace)
- Specified by:
setWorkspacein interfaceorg.gephi.io.exporter.spi.Exporter
-
cancel
public boolean cancel()
- Specified by:
cancelin interfaceorg.gephi.utils.longtask.spi.LongTask
-
setProgressTicket
public void setProgressTicket(org.gephi.utils.progress.ProgressTicket progressTicket)
- Specified by:
setProgressTicketin interfaceorg.gephi.utils.longtask.spi.LongTask
-
-