|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.intermediate.IFContext
public class IFContext
This class provides a context object that is valid for a single processing run to create an output file using the intermediate format. It allows access to the user agent and other context information, such as foreign attributes for certain elements in the intermediate format.
Foreign attributes are usually specific to a particular output format implementation. Most implementations will just ignore all foreign attributes for most elements. That's why the main IF interfaces are not burdened with this.
Constructor Summary | |
---|---|
IFContext(FOUserAgent ua)
Main constructor. |
Method Summary | |
---|---|
java.lang.Object |
getForeignAttribute(org.apache.xmlgraphics.util.QName qName)
Returns a foreign attribute. |
java.util.Map |
getForeignAttributes()
Returns the currently applicable foreign attributes. |
java.util.Locale |
getLanguage()
Returns the currently applicable language. |
StructureTreeElement |
getStructureTreeElement()
Returns the current structure tree element. |
FOUserAgent |
getUserAgent()
Returns the associated user agent. |
void |
resetForeignAttributes()
Resets the foreign attributes to "no foreign attributes". |
void |
resetStructureTreeElement()
Resets the current structure tree element. |
void |
setForeignAttributes(java.util.Map foreignAttributes)
Sets the currently applicable foreign attributes. |
void |
setLanguage(java.util.Locale lang)
Sets the currently applicable language. |
void |
setStructureTreeElement(StructureTreeElement structureTreeElement)
Sets the structure tree element to which the subsequently painted marks will correspond. |
void |
setUserAgent(FOUserAgent ua)
Set the user agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFContext(FOUserAgent ua)
ua
- the user agentMethod Detail |
---|
public void setUserAgent(FOUserAgent ua)
ua
- the user agentpublic FOUserAgent getUserAgent()
public java.util.Map getForeignAttributes()
public java.lang.Object getForeignAttribute(org.apache.xmlgraphics.util.QName qName)
qName
- the qualified name of the foreign attribute
public void setForeignAttributes(java.util.Map foreignAttributes)
foreignAttributes
- a Mappublic void resetForeignAttributes()
public void setLanguage(java.util.Locale lang)
lang
- the languagepublic java.util.Locale getLanguage()
public void setStructureTreeElement(StructureTreeElement structureTreeElement)
structureTreeElement
- the structure tree elementpublic void resetStructureTreeElement()
setStructureTreeElement(StructureTreeElement)
public StructureTreeElement getStructureTreeElement()
setStructureTreeElement(StructureTreeElement)
|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |