org.apache.fop.render

Class RendererContext.RendererContextWrapper

Enclosing Class:
RendererContext
Known Direct Subclasses:
PCLRendererContext

public static class RendererContext.RendererContextWrapper
extends java.lang.Object

Base class for a wrapper around RendererContext to access its properties in a type-safe, renderer-specific way.

Field Summary

protected RendererContext
context
The wrapped RendererContext

Constructor Summary

RendererContextWrapper(RendererContext context)
Main constructor

Method Summary

int
getCurrentXPosition()
int
getCurrentYPosition()
Map
getForeignAttributes()
int
getHeight()
FOUserAgent
getUserAgent()
int
getWidth()

Field Details

context

protected RendererContext context
The wrapped RendererContext

Constructor Details

RendererContextWrapper

public RendererContextWrapper(RendererContext context)
Main constructor
Parameters:
context - the RendererContent instance

Method Details

getCurrentXPosition

public int getCurrentXPosition()
Returns:
the currentXPosition

getCurrentYPosition

public int getCurrentYPosition()
Returns:
the currentYPosition

getForeignAttributes

public Map getForeignAttributes()
Returns:
the foreign attributes

getHeight

public int getHeight()
Returns:
the height of the image

getUserAgent

public FOUserAgent getUserAgent()
Returns:
the user agent

getWidth

public int getWidth()
Returns:
the width of the image

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