be.ac.ulg.montefiore.run.totem.chart.persistence
Class ChartFactory

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.chart.persistence.ChartFactory

public class ChartFactory
extends java.lang.Object

Creation date: 21 d�c. 2005

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Field Summary
static int EPS_FORMAT
           
static int JPEG_FORMAT
           
static int PNG_FORMAT
           
 
Constructor Summary
ChartFactory()
           
 
Method Summary
static void saveChart(java.lang.String fileName, Chart chart, int format, int width, int height)
          Save a given Chart object to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PNG_FORMAT

public static final int PNG_FORMAT
See Also:
Constant Field Values

JPEG_FORMAT

public static final int JPEG_FORMAT
See Also:
Constant Field Values

EPS_FORMAT

public static final int EPS_FORMAT
See Also:
Constant Field Values
Constructor Detail

ChartFactory

public ChartFactory()
Method Detail

saveChart

public static void saveChart(java.lang.String fileName,
                             Chart chart,
                             int format,
                             int width,
                             int height)
Save a given Chart object to a file.

Parameters:
fileName - Name of the file
chart - Chart to save
format - File format (one of the constants PNG_FORMAT, JPEG_FORMAT or EPS_FORMAT)
width - Width of the generated image
height - Height of the generated image


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.