Class 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 Detail

      • progress

        private org.gephi.utils.progress.ProgressTicket progress
      • workspace

        private org.gephi.project.api.Workspace workspace
      • 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
    • Constructor Detail

      • PDFExporter

        public PDFExporter()
    • Method Detail

      • execute

        public boolean execute()
        Specified by:
        execute in interface org.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:
        setOutputStream in interface org.gephi.io.exporter.spi.ByteExporter
      • getWorkspace

        public org.gephi.project.api.Workspace getWorkspace()
        Specified by:
        getWorkspace in interface org.gephi.io.exporter.spi.Exporter
      • setWorkspace

        public void setWorkspace​(org.gephi.project.api.Workspace workspace)
        Specified by:
        setWorkspace in interface org.gephi.io.exporter.spi.Exporter
      • cancel

        public boolean cancel()
        Specified by:
        cancel in interface org.gephi.utils.longtask.spi.LongTask
      • setProgressTicket

        public void setProgressTicket​(org.gephi.utils.progress.ProgressTicket progressTicket)
        Specified by:
        setProgressTicket in interface org.gephi.utils.longtask.spi.LongTask