com.xmlmind.fo.graphic
Interface GraphicEnv

All Known Implementing Classes:
GraphicEnvImpl

public interface GraphicEnv

Services provided by XMLmind XSL-FO Converter to a GraphicFactory.


Method Summary
 File createTempFile(String suffix)
          Creates a temporary file having specified suffix.
 ConvertedGraphic getConvertedGraphic(Graphic graphic, String[] formats, double xScale, double yScale, Object clientData)
          If the converted graphic is found in the cache, returns this cached converted graphic; otherwise invokes GraphicFactories.convertGraphic(Graphic, String[], double, double, Object, GraphicEnv), caches and returns the converted graphic.
 void reportWarning(String message)
          Reports specified warning message.
 

Method Detail

createTempFile

File createTempFile(String suffix)
                    throws Exception
Creates a temporary file having specified suffix. This temporary file is automatically deleted at the end of the conversion.

Parameters:
suffix - suffix of the temporary file. Example: ".tmp".
Returns:
newly created temporary file
Throws:
Exception - if, for any reason, this method fails

reportWarning

void reportWarning(String message)
Reports specified warning message.


getConvertedGraphic

ConvertedGraphic getConvertedGraphic(Graphic graphic,
                                     String[] formats,
                                     double xScale,
                                     double yScale,
                                     Object clientData)
                                     throws Exception
If the converted graphic is found in the cache, returns this cached converted graphic; otherwise invokes GraphicFactories.convertGraphic(Graphic, String[], double, double, Object, GraphicEnv), caches and returns the converted graphic.

Important:This method should not be useful to third-party developers.

Throws:
Exception