org.apache.fop.fo.properties
Class BorderWidthPropertyMaker
java.lang.Object
org.apache.fop.fo.properties.PropertyMaker
org.apache.fop.fo.properties.LengthProperty.Maker
org.apache.fop.fo.properties.BorderWidthPropertyMaker
- All Implemented Interfaces:
- java.lang.Cloneable
public class BorderWidthPropertyMaker
- extends LengthProperty.Maker
This subclass of LengthProperty.Maker handles the special treatment of
border width described in 7.7.20.
Constructor Summary |
BorderWidthPropertyMaker(int propId)
Create a length property which check the value of the border-*-style
property and return a length of 0 when the style is "none". |
Method Summary |
Property |
get(int subpropId,
PropertyList propertyList,
boolean bTryInherit,
boolean bTryDefault)
Check the value of the style property and return a length of 0 when
the style is NONE. |
void |
setBorderStyleId(int borderStyleId)
Set the propId of the style property for the same side. |
Methods inherited from class org.apache.fop.fo.properties.PropertyMaker |
addEnum, addKeyword, addShorthand, addSubpropMaker, checkEnumValues, checkValueKeywords, clone, compute, convertPropertyDatatype, convertShorthandProperty, findProperty, getName, getPercentBase, getPropId, getShorthand, getSubprop, getSubpropMaker, isInherited, make, make, make, makeNewProperty, setByShorthand, setCorresponding, setDatatypeParser, setDefault, setDefault, setInherited, setPercentBase, setSubprop, useGeneric |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BorderWidthPropertyMaker
public BorderWidthPropertyMaker(int propId)
- Create a length property which check the value of the border-*-style
property and return a length of 0 when the style is "none".
- Parameters:
propId
- the border-*-width of the property.
setBorderStyleId
public void setBorderStyleId(int borderStyleId)
- Set the propId of the style property for the same side.
- Parameters:
borderStyleId
-
get
public Property get(int subpropId,
PropertyList propertyList,
boolean bTryInherit,
boolean bTryDefault)
throws PropertyException
- Check the value of the style property and return a length of 0 when
the style is NONE.
- Overrides:
get
in class PropertyMaker
- Parameters:
subpropId
- The subproperty id of the property being retrieved.
Is 0 when retriving a base property.propertyList
- The PropertyList object being built for this FO.bTryInherit
- true if inherited properties should be examined.bTryDefault
- true if the default value should be returned.
- Returns:
- the property value
- Throws:
PropertyException
- if there is a problem evaluating the property- See Also:
PropertyMaker.get(int, PropertyList, boolean, boolean)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.