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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RendererContext
public RendererContext(AbstractRenderer renderer,
java.lang.String m)
- Contructor for this class. It takes a MIME type as parameter.
- Parameters:
renderer
- The current rendererm
- The MIME type of the output that's generated.
getRenderer
public AbstractRenderer getRenderer()
- Returns:
- Returns the renderer.
getMimeType
public java.lang.String getMimeType()
- Returns the MIME type associated with this RendererContext.
- Returns:
- The MIME type (ex. application/pdf)
setUserAgent
public void setUserAgent(FOUserAgent ua)
- Sets the user agent.
- Parameters:
ua
- The user agent
getUserAgent
public FOUserAgent getUserAgent()
- Returns the user agent.
- Returns:
- The user agent
setProperty
public void setProperty(java.lang.String name,
java.lang.Object val)
- Sets a property on the RendererContext.
- Parameters:
name
- The key of the propertyval
- The value of the property
getProperty
public java.lang.Object getProperty(java.lang.String prop)
- Returns a property from the RendererContext.
- Parameters:
prop
- The key of the property to return.- Returns:
- The requested value,
null
if it doesn't exist.
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.