hep.aida.ref.plotter
Class PlotterUtilities
- java.lang.Object
-
- hep.aida.ref.plotter.PlotterUtilities
-
public abstract class PlotterUtilities extends java.lang.ObjectSome 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.ComponentcomponentForPlotter(IPlotter plotter)A method to enable the JAIDA plotter to be embedded inside a Java GUI.static voidwriteToFile(IPlotter plotter, java.io.OutputStream out, java.lang.String type, java.util.Properties props)Write a plot to an output stream, specifying extra propertiesstatic voidwriteToFile(IPlotter plotter, java.lang.String file, java.lang.String type, java.util.Properties props)Write a plot to a file, specifying extra properties
-
-
-
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 writefile- The file to write totype- 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 factoryjava.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 writeout- The output stream to write totype- 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 factoryjava.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG