org.apache.fop.fo
Class StaticPropertyList
java.lang.Object
|
+--org.apache.fop.fo.PropertyList
|
+--org.apache.fop.fo.StaticPropertyList
- public class StaticPropertyList
- extends PropertyList
A very fast implementation of PropertyList that uses arrays to store
the explit set properties and another array to store cached values.
Method Summary |
Property |
get(int propId,
boolean bTryInherit,
boolean bTryDefault)
Override PropertyList.get() and provides fast caching of previously
retrieved property values. |
Property |
getExplicit(int propId)
Return the value explicitly specified on this FO. |
void |
putExplicit(int propId,
Property value)
Set an value defined explicitly on this FO. |
Methods inherited from class org.apache.fop.fo.PropertyList |
addAttributesToList, get, getAbsolutePositionProps, getAccessibilityProps, getAuralProps, getBorderPaddingBackgroundProps, getExplicitOrShorthand, getFObj, getFontProps, getFromParent, getHyphenationProps, getInherited, getMarginBlockProps, getMarginInlineProps, getNearestSpecified, getParentFObj, getParentPropertyList, getRelativePositionProps, getTextDecorationProps, getWritingMode, getWritingMode, setWritingMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticPropertyList
public StaticPropertyList(FObj fObjToAttach,
PropertyList parentPropertyList)
- Construct a StaticPropertyList.
- Parameters:
fObjToAttach
- The FObj object.parentPropertyList
- The parent property list.
getExplicit
public Property getExplicit(int propId)
- Return the value explicitly specified on this FO.
- Overrides:
getExplicit
in class PropertyList
- Parameters:
propId
- The ID of the property whose value is desired.- Returns:
- The value if the property is explicitly set, otherwise null.
putExplicit
public void putExplicit(int propId,
Property value)
- Set an value defined explicitly on this FO.
- Overrides:
putExplicit
in class PropertyList
- Parameters:
propId
- The ID of the property whose value is desired.value
- The value of the property to set.
get
public Property get(int propId,
boolean bTryInherit,
boolean bTryDefault)
throws PropertyException
- Override PropertyList.get() and provides fast caching of previously
retrieved property values.
- Overrides:
get
in class PropertyList
- Parameters:
propId
- The property ID
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.