org.apache.fop.fo
Class LengthProperty.Maker

java.lang.Object
  extended byorg.apache.fop.fo.Property.Maker
      extended byorg.apache.fop.fo.LengthProperty.Maker
Direct Known Subclasses:
AlignmentAdjustMaker, AlignmentBaselineMaker, BaselineShiftMaker, BottomMaker, ColumnGapMaker, ColumnWidthMaker, ContentHeightMaker, ContentWidthMaker, EndIndentMaker, ExtentMaker, FontSizeMaker, GenericBorderWidth, GenericPadding, HeightMaker, LastLineEndIndentMaker, LeaderPatternWidthMaker, LeftMaker, LengthPairProperty.Maker, LengthRangeProperty.Maker, LetterSpacingMaker, LineHeightMaker, MarginBottomMaker, MarginLeftMaker, MarginRightMaker, MarginTopMaker, PageHeightMaker, PageWidthMaker, ProvisionalDistanceBetweenStartsMaker, ProvisionalLabelSeparationMaker, RightMaker, RuleThicknessMaker, StartIndentMaker, TextIndentMaker, TopMaker, WidthMaker
Enclosing class:
LengthProperty

public static class LengthProperty.Maker
extends Property.Maker


Constructor Summary
LengthProperty.Maker(String name)
           
 
Method Summary
 Property convertProperty(Property p, PropertyList propertyList, FObj fo)
          Return a Property object based on the passed Property object.
protected  boolean isAutoLengthAllowed()
          protected Property checkPropertyKeywords(String value) { if (isAutoLengthAllowed() && value.equals("auto")) { return new LengthProperty(Length.AUTO); } return null; }
 
Methods inherited from class org.apache.fop.fo.Property.Maker
checkEnumValues, checkValueKeywords, compute, convertPropertyDatatype, convertShorthandProperty, getPercentBase, getPropName, getShorthand, getSubpropMaker, getSubpropValue, inheritsSpecified, isCompoundMaker, isCorrespondingForced, isInherited, make, make, make, makeCompound, setSubprop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthProperty.Maker

public LengthProperty.Maker(String name)
Method Detail

isAutoLengthAllowed

protected boolean isAutoLengthAllowed()
protected Property checkPropertyKeywords(String value) { if (isAutoLengthAllowed() && value.equals("auto")) { return new LengthProperty(Length.AUTO); } return null; }


convertProperty

public Property convertProperty(Property p,
                                PropertyList propertyList,
                                FObj fo)
                         throws FOPException
Description copied from class: Property.Maker
Return a Property object based on the passed Property object. This method is called if the Property object built by the parser isn't the right type for this property. It is overridden by subclasses when the property specification in foproperties.xml specifies conversion rules.

Overrides:
convertProperty in class Property.Maker
Parameters:
p - The Property object return by the expression parser
propertyList - The PropertyList object being built for this FO.
fo - The current FO whose properties are being set.
Returns:
A Property of the correct type or null if the parsed value can't be converted to the correct type.
Throws:
FOPException


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.