|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.fo.Property.Maker
Constructor Summary | |
protected |
Property.Maker()
Construct an instance of a Property.Maker. |
protected |
Property.Maker(java.lang.String propName)
Construct an instance of a Property.Maker for the given property. |
Method Summary | |
Property |
checkEnumValues(java.lang.String value)
|
protected java.lang.String |
checkValueKeywords(java.lang.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)
|
PercentBase |
getPercentBase(FObj fo,
PropertyList pl)
Return an object implementing the PercentBase interface. |
protected java.lang.String |
getPropName()
Return the name of the property whose value is being set. |
protected Property.Maker |
getSubpropMaker(java.lang.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,
java.lang.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,
java.lang.String value,
FObj fo)
Create a Property object from an attribute specification. |
Property |
make(Property baseProp,
java.lang.String partName,
PropertyList propertyList,
java.lang.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,
java.lang.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(java.lang.String propName)
propName
- The name of the property to be made.protected Property.Maker()
Method Detail |
protected java.lang.String getPropName()
public boolean isInherited()
public boolean inheritsSpecified()
public PercentBase getPercentBase(FObj fo, PropertyList pl)
protected Property.Maker getSubpropMaker(java.lang.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, java.lang.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, java.lang.String partName, PropertyList propertyList, java.lang.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.protected Property setSubprop(Property baseProp, java.lang.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, java.lang.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.protected boolean isCompoundMaker()
public Property checkEnumValues(java.lang.String value)
protected java.lang.String checkValueKeywords(java.lang.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.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.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.public Property compute(PropertyList propertyList) throws FOPException
propertyList
- The PropertyList for the FO.public boolean isCorrespondingForced(PropertyList propertyList)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |