org.apache.fop.render
Class RendererContext
java.lang.Object
org.apache.fop.render.RendererContext
public class RendererContext
extends java.lang.Object
The Render Context for external handlers. This provides a rendering context
so that external handlers can get information to be able to render to the
render target.
RendererContext
public RendererContext(AbstractRenderer renderer,
String m)
Contructor for this class. It takes a MIME type as parameter.
renderer
- The current rendererm
- The MIME type of the output that's generated.
getMimeType
public String getMimeType()
Returns the MIME type associated with this RendererContext.
- The MIME type (ex. application/pdf)
getProperty
public Object getProperty(String prop)
Returns a property from the RendererContext.
prop
- The key of the property to return.
- The requested value,
null
if it doesn't exist.
getUserAgent
public FOUserAgent getUserAgent()
Returns the user agent.
setProperty
public void setProperty(String name,
Object val)
Sets a property on the RendererContext.
name
- The key of the propertyval
- The value of the property
setUserAgent
public void setUserAgent(FOUserAgent ua)
Sets the user agent.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.