org.apache.fop.svg

Class AbstractFOPTranscoder.FOPTranscoderUserAgent

Enclosing Class:
AbstractFOPTranscoder

protected class AbstractFOPTranscoder.FOPTranscoderUserAgent
extends SVGAbstractTranscoderUserAgent

A user agent implementation for FOP's Transcoders.

Method Summary

void
displayError(Exception e)
Displays the specified error using the ErrorHandler.
void
displayError(String message)
Displays the specified error message using the ErrorHandler.
void
displayMessage(String message)
Displays the specified message using the ErrorHandler.
String
getMedia()
Get the media for this transcoder.
float
getPixelUnitToMillimeter()
Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.

Method Details

displayError

public void displayError(Exception e)
Displays the specified error using the ErrorHandler.
Parameters:
e - the exception to display

displayError

public void displayError(String message)
Displays the specified error message using the ErrorHandler.
Parameters:
message - the message to display

displayMessage

public void displayMessage(String message)
Displays the specified message using the ErrorHandler.
Parameters:
message - the message to display

getMedia

public String getMedia()
Get the media for this transcoder. Which is always print.
Returns:
PDF media is "print"

getPixelUnitToMillimeter

public float getPixelUnitToMillimeter()
Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.
Returns:
the pixel unit to millimeter factor

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.