org.ujac.chart
Class ChartWriter

java.lang.Object
  extended by org.ujac.chart.ChartWriter
Direct Known Subclasses:
ImageIOChartWriter

public abstract class ChartWriter
extends Object

Name: ChartWriter
Description: Base class for classes, performing output of charts as images.

Author:
lauerc

Constructor Summary
ChartWriter()
           
 
Method Summary
 void output(Chart chart, File outputFile, int width, int height)
          Renders the chart to the given output stream.
abstract  void output(Chart chart, OutputStream os, int width, int height)
          Renders the chart to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartWriter

public ChartWriter()
Method Detail

output

public abstract void output(Chart chart,
                            OutputStream os,
                            int width,
                            int height)
                     throws ChartException,
                            IOException
Renders the chart to the given output stream.

Parameters:
chart - The chart to render.
os - The output stream to render to.
width - The width of the output area.
height - The height of the output area.
Throws:
ChartException - In case the chart processing failed.
IOException - In case an I/O problem occurred.

output

public void output(Chart chart,
                   File outputFile,
                   int width,
                   int height)
            throws ChartException,
                   IOException
Renders the chart to the given output stream.

Parameters:
chart - The chart to render.
outputFile - The output file to render to.
width - The width of the output area.
height - The height of the output area.
Throws:
ChartException - In case the chart processing failed.
IOException - In case an I/O problem occurred.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.