Class PNGExporter

  • 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 PNGExporter
    extends Object
    implements org.gephi.io.exporter.spi.VectorExporter, org.gephi.io.exporter.spi.ByteExporter, org.gephi.utils.longtask.spi.LongTask
    Author:
    Mathieu Bastian
    • Field Detail

      • progress

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

        private boolean cancel
      • workspace

        private org.gephi.project.api.Workspace workspace
      • width

        private int width
      • height

        private int height
      • transparentBackground

        private boolean transparentBackground
      • margin

        private int margin
      • target

        private org.gephi.preview.api.G2DTarget target
      • oldColor

        private Color oldColor
    • Constructor Detail

      • PNGExporter

        public PNGExporter()
    • Method Detail

      • execute

        public boolean execute()
        Specified by:
        execute in interface org.gephi.io.exporter.spi.Exporter
      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight​(int height)
      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth​(int width)
      • getMargin

        public int getMargin()
      • setMargin

        public void setMargin​(int margin)
      • isTransparentBackground

        public boolean isTransparentBackground()
      • setTransparentBackground

        public void setTransparentBackground​(boolean transparentBackground)
      • 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
      • setOutputStream

        public void setOutputStream​(OutputStream stream)
        Specified by:
        setOutputStream in interface org.gephi.io.exporter.spi.ByteExporter
      • 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
      • setExportProperties

        private void setExportProperties​(org.gephi.preview.api.PreviewModel m)
      • discardExportProperties

        private void discardExportProperties​(org.gephi.preview.api.PreviewModel m)