Documentation of 'jhplot.io.images.Export' Java class.
Export
jhplot.io.images

Class Export



  • public class Export
    extends java.lang.Object
    Includes export to figure formats for Components and JFreeCharts.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Export() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void exportChart(JFreeChart chart, java.awt.Rectangle bounds, java.io.File exportFile, ImageType imageType)
      Exports the contents of a JFreeChart to an svg, png, pdf etc.
      static void exportComponent(java.awt.Component component, java.awt.Rectangle bounds, java.io.File exportFile, ImageType imageType)
      Exports the contents of a Component to an svg, png, pdf etc.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Export

        public Export()
    • Method Detail

      • exportChart

        public static void exportChart(JFreeChart chart,
                                       java.awt.Rectangle bounds,
                                       java.io.File exportFile,
                                       ImageType imageType)
                                throws java.io.IOException,
                                       org.apache.batik.transcoder.TranscoderException
        Exports the contents of a JFreeChart to an svg, png, pdf etc.
        Parameters:
        chart - chart to export
        bounds - the dimensions of the viewport
        exportFile - the output file
        imageType - the image type
        Throws:
        java.io.IOException
        org.apache.batik.transcoder.TranscoderException
      • exportComponent

        public static void exportComponent(java.awt.Component component,
                                           java.awt.Rectangle bounds,
                                           java.io.File exportFile,
                                           ImageType imageType)
                                    throws java.io.IOException,
                                           org.apache.batik.transcoder.TranscoderException
        Exports the contents of a Component to an svg, png, pdf etc.
        Parameters:
        component - component to export
        bounds - the dimensions of the viewport
        exportFile - the output file
        imageType - the image type
        Throws:
        java.io.IOException
        org.apache.batik.transcoder.TranscoderException

DMelt 3.0 © DataMelt by jWork.ORG