Documentation of 'hep.aida.ref.plotter.PlotterUtilities' Java class
PlotterUtilities
hep.aida.ref.plotter

Class PlotterUtilities



  • public abstract class PlotterUtilities
    extends java.lang.Object
    Some utilities for using the JAIDA Plotter in other Java applications.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PlotterUtilities() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.Component componentForPlotter(IPlotter plotter)
      A method to enable the JAIDA plotter to be embedded inside a Java GUI.
      static void writeToFile(IPlotter plotter, java.io.OutputStream out, java.lang.String type, java.util.Properties props)
      Write a plot to an output stream, specifying extra properties
      static void writeToFile(IPlotter plotter, java.lang.String file, java.lang.String type, java.util.Properties props)
      Write a plot to a file, specifying extra properties
      • Methods inherited from class java.lang.Object

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

      • PlotterUtilities

        public PlotterUtilities()
    • Method Detail

      • componentForPlotter

        public static java.awt.Component componentForPlotter(IPlotter plotter)
                                                      throws java.lang.IllegalArgumentException
        A method to enable the JAIDA plotter to be embedded inside a Java GUI.
        Parameters:
        plotter - The plotter to be embedded
        Returns:
        The component associated with this IPlotter
        Throws:
        java.lang.IllegalArgumentException - If the plotter passed in was not created by JAIDA's default analysis factory
      • writeToFile

        public static void writeToFile(IPlotter plotter,
                                       java.lang.String file,
                                       java.lang.String type,
                                       java.util.Properties props)
                                throws java.io.IOException,
                                       java.lang.IllegalArgumentException
        Write a plot to a file, specifying extra properties
        Parameters:
        plotter - The plotter to write
        file - The file to write to
        type - The format to write out. Supported types include cgm, emf, gif, pdf, ppm, ps, svg, swf, png and jpg. See the JAIDA release notes for required jar files to support different graphics formats.
        props - Properties that control how the image is produced. Supported properties include plotWidth and plotHeight, as well as other format specific properties.
        Throws:
        java.lang.IllegalArgumentException - If the plotter passed in was not created by JAIDA's default analysis factory
        java.io.IOException
      • writeToFile

        public static void writeToFile(IPlotter plotter,
                                       java.io.OutputStream out,
                                       java.lang.String type,
                                       java.util.Properties props)
                                throws java.io.IOException,
                                       java.lang.IllegalArgumentException
        Write a plot to an output stream, specifying extra properties
        Parameters:
        plotter - The plotter to write
        out - The output stream to write to
        type - The format to write out. Supported types include cgm, emf, gif, pdf, ppm, ps, svg, swf, png and jpg. See the JAIDA release notes for required jar files to support different graphics formats.
        props - Properties that control how the image is produced. Supported properties include plotWidth and plotHeight, as well as other format specific properties.
        Throws:
        java.lang.IllegalArgumentException - If the plotter passed in was not created by JAIDA's default analysis factory
        java.io.IOException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.