|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.plotter.PlotterUtilities
Some utilities for using the JAIDA Plotter in other Java applications.
Constructor Summary | |
PlotterUtilities()
|
Method Summary | |
static Component |
componentForPlotter(hep.aida.IPlotter plotter)
A method to enable the JAIDA plotter to be embedded inside a Java GUI. |
static void |
writeToFile(hep.aida.IPlotter plotter,
OutputStream out,
String type,
Properties props)
Write a plot to an output stream, specifying extra properties |
static void |
writeToFile(hep.aida.IPlotter plotter,
String file,
String type,
Properties props)
Write a plot to a file, specifying extra properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlotterUtilities()
Method Detail |
public static Component componentForPlotter(hep.aida.IPlotter plotter) throws IllegalArgumentException
plotter
- The plotter to be embedded
IllegalArgumentException
- If the plotter passed in was not created by JAIDA's default analysis factorypublic static void writeToFile(hep.aida.IPlotter plotter, String file, String type, Properties props) throws IOException, IllegalArgumentException
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.
IllegalArgumentException
- If the plotter passed in was not created by JAIDA's default analysis factory
IOException
public static void writeToFile(hep.aida.IPlotter plotter, OutputStream out, String type, Properties props) throws IOException, IllegalArgumentException
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.
IllegalArgumentException
- If the plotter passed in was not created by JAIDA's default analysis factory
IOException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |