JSCAPE MFT Server

com.jscape.inet.mft.subsystems.reporting.html
Class AbstractChartFormatter

java.lang.Object
  extended by com.jscape.inet.mft.subsystems.reporting.html.AbstractChartFormatter
All Implemented Interfaces:
ChartFormatter
Direct Known Subclasses:
BarChartFormatter, TimeChartFormatter

public abstract class AbstractChartFormatter
extends java.lang.Object
implements ChartFormatter

Version:
1.0
Author:
Roman Sheshunov
See Also:
Source code

Nested Class Summary
static class AbstractChartFormatter.ImageType
           
 
Constructor Summary
AbstractChartFormatter(AbstractChartFormatter.ImageType imageType, boolean useRelativeImagePath)
           
 
Method Summary
 java.lang.String format(Chart chart, java.io.File workingDirectory, java.lang.String filename)
          Formats model as chart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChartFormatter

public AbstractChartFormatter(AbstractChartFormatter.ImageType imageType,
                              boolean useRelativeImagePath)
Method Detail

format

public java.lang.String format(Chart chart,
                               java.io.File workingDirectory,
                               java.lang.String filename)
                        throws java.io.IOException
Description copied from interface: ChartFormatter
Formats model as chart. Returns the formatted fragment of chart image.

Specified by:
format in interface ChartFormatter
Parameters:
chart - the model to format as chart
workingDirectory - a working directory
filename - chart filename
Returns:
the HTML fragment of chart image
Throws:
java.io.IOException - if I/O error occurs

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2013. All Rights Reserved