|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.Property.Maker
Constructor Summary | |
protected |
Property.Maker()
Construct an instance of a Property.Maker. |
protected |
Property.Maker(String propName)
Construct an instance of a Property.Maker for the given property. |
Method Summary | |
Property |
checkEnumValues(String value)
|
protected String |
checkValueKeywords(String value)
Return a String to be parsed if the passed value corresponds to a keyword which can be parsed and used to initialize the property. |
Property |
compute(PropertyList propertyList)
Return a Property object representing the value of this property, based on other property values for this FO. |
Property |
convertProperty(Property p,
PropertyList propertyList,
FObj fo)
Return a Property object based on the passed Property object. |
protected Property |
convertPropertyDatatype(Property p,
PropertyList propertyList,
FObj fo)
|
Property |
convertShorthandProperty(PropertyList propertyList,
Property prop,
FObj fo)
|
PercentBase |
getPercentBase(FObj fo,
PropertyList pl)
Return an object implementing the PercentBase interface. |
protected String |
getPropName()
Return the name of the property whose value is being set. |
Property |
getShorthand(PropertyList propertyList)
|
protected Property.Maker |
getSubpropMaker(String subprop)
Return a Maker object which is used to set the values on components of compound property types, such as "space". |
Property |
getSubpropValue(Property p,
String subprop)
Return a property value for the given component of a compound property. |
boolean |
inheritsSpecified()
Return a boolean indicating whether this property inherits the "specified" value rather than the "computed" value. |
protected boolean |
isCompoundMaker()
|
boolean |
isCorrespondingForced(PropertyList propertyList)
|
boolean |
isInherited()
Default implementation of isInherited. |
Property |
make(PropertyList propertyList)
Return a Property object representing the initial value. |
Property |
make(PropertyList propertyList,
String value,
FObj fo)
Create a Property object from an attribute specification. |
Property |
make(Property baseProp,
String partName,
PropertyList propertyList,
String value,
FObj fo)
Return a property value for a compound property. |
protected Property |
makeCompound(PropertyList propertyList,
FObj parentFO)
Return a Property object representing the initial value. |
protected Property |
setSubprop(Property baseProp,
String partName,
Property subProp)
Set a component in a compound property and return the modified compound property object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Property.Maker(String propName)
propName
- The name of the property to be made.protected Property.Maker()
Method Detail |
protected String getPropName()
public boolean isInherited()
public boolean inheritsSpecified()
public PercentBase getPercentBase(FObj fo, PropertyList pl)
protected Property.Maker getSubpropMaker(String subprop)
subprop
- The name of the component for which a Maker is to
returned, for example "optimum", if the FO attribute is
space.optimum='10pt'.public Property getSubpropValue(Property p, String subprop)
p
- A property value for a compound property type such as
SpaceProperty.subprop
- The name of the component whose value is to be
returned.
NOTE: this is only to ease porting when calls are made to
PropertyList.get() using a component name of a compound property,
such as get("space.optimum"). The recommended technique is:
get("space").getOptimum().
Overridden by property maker subclasses which handle
compound properties.public Property make(Property baseProp, String partName, PropertyList propertyList, String value, FObj fo) throws FOPException
baseProp
- The Property object representing the compound property,
such as SpaceProperty.partName
- The name of the component whose value is specified.propertyList
- The propertyList being built.fo
- The FO whose properties are being set.
FOPException
protected Property setSubprop(Property baseProp, String partName, Property subProp)
baseProp
- The Property object representing the compound property,
such as SpaceProperty.partName
- The name of the component whose value is specified.subProp
- A Property object holding the specified value of the
component to be set.
public Property make(PropertyList propertyList, String value, FObj fo) throws FOPException
propertyList
- The PropertyList object being built for this FO.value
- The attribute value.fo
- The current FO whose properties are being set.
FOPException
public Property convertShorthandProperty(PropertyList propertyList, Property prop, FObj fo)
protected boolean isCompoundMaker()
public Property checkEnumValues(String value)
protected String checkValueKeywords(String value)
value
- The string value of property attribute.
public Property convertProperty(Property p, PropertyList propertyList, FObj fo) throws FOPException
p
- The Property object return by the expression parserpropertyList
- The PropertyList object being built for this FO.fo
- The current FO whose properties are being set.
FOPException
protected Property convertPropertyDatatype(Property p, PropertyList propertyList, FObj fo)
public Property make(PropertyList propertyList) throws FOPException
propertyList
- The PropertyList object being built for this FO.
FOPException
protected Property makeCompound(PropertyList propertyList, FObj parentFO) throws FOPException
propertyList
- The PropertyList object being built for this FO.parentFO
- The parent FO for the FO whose property is being made.
FOPException
public Property compute(PropertyList propertyList) throws FOPException
propertyList
- The PropertyList for the FO.
FOPException
public boolean isCorrespondingForced(PropertyList propertyList)
public Property getShorthand(PropertyList propertyList)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |