org.apache.fop.fo.properties
Class CorrespondingPropertyMaker
java.lang.Object
org.apache.fop.fo.properties.CorrespondingPropertyMaker
public class CorrespondingPropertyMaker
extends java.lang.Object
Property | compute(PropertyList propertyList) - Return a Property object representing the value of this property,
based on other property values for this FO.
|
protected PropertyList | getWMPropertyList(PropertyList pList) - Return the property list to use for fetching writing mode depending property
ids.
|
boolean | isCorrespondingForced(PropertyList propertyList) - For properties that operate on a relative direction (before, after,
start, end) instead of an absolute direction (top, bottom, left,
right), this method determines whether a corresponding property
is specified on the corresponding absolute direction.
|
void | setCorresponding(int lr_tb, int rl_tb, int tb_rl)
|
void | setRelative(boolean relative)
|
void | setUseParent(boolean useParent)
|
useParent
protected boolean useParent
CorrespondingPropertyMaker
public CorrespondingPropertyMaker(PropertyMaker baseMaker)
compute
public Property compute(PropertyList propertyList)
throws PropertyException
Return a Property object representing the value of this property,
based on other property values for this FO.
A special case is properties which inherit the specified value,
rather than the computed value.
propertyList
- The PropertyList for the FO.
- Property A computed Property value or null if no rules
are specified (in foproperties.xml) to compute the value.
getWMPropertyList
protected PropertyList getWMPropertyList(PropertyList pList)
Return the property list to use for fetching writing mode depending property
ids.
isCorrespondingForced
public boolean isCorrespondingForced(PropertyList propertyList)
For properties that operate on a relative direction (before, after,
start, end) instead of an absolute direction (top, bottom, left,
right), this method determines whether a corresponding property
is specified on the corresponding absolute direction. For example,
the border-start-color property in a lr-tb writing-mode specifies
the same thing that the border-left-color property specifies. In this
example, if the Maker for the border-start-color property is testing,
and if the border-left-color is specified in the properties,
this method should return true.
propertyList
- collection of properties to be tested
- true iff 1) the property operates on a relative direction,
AND 2) the property has a corresponding property on an absolute
direction, AND 3) the corresponding property on that absolute
direction has been specified in the input properties
setCorresponding
public void setCorresponding(int lr_tb,
int rl_tb,
int tb_rl)
setRelative
public void setRelative(boolean relative)
setUseParent
public void setUseParent(boolean useParent)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.