public class CorrespondingPropertyMaker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PropertyMaker |
baseMaker |
protected int |
lr_tb |
protected int |
rl_tb |
protected int |
tb_rl |
protected boolean |
useParent |
Constructor and Description |
---|
CorrespondingPropertyMaker(PropertyMaker baseMaker) |
Modifier and Type | Method and Description |
---|---|
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)
Controls whether the PropertyMaker accesses the parent property list or the current
property list for determining the writing mode.
|
protected PropertyMaker baseMaker
protected int lr_tb
protected int rl_tb
protected int tb_rl
protected boolean useParent
public CorrespondingPropertyMaker(PropertyMaker baseMaker)
public void setCorresponding(int lr_tb, int rl_tb, int tb_rl)
public void setUseParent(boolean useParent)
useParent
- true if the parent property list should be used.public void setRelative(boolean relative)
public boolean isCorrespondingForced(PropertyList propertyList)
propertyList
- collection of properties to be testedpublic Property compute(PropertyList propertyList) throws PropertyException
propertyList
- The PropertyList for the FO.FOPException
- for invalid or inconsistent FO inputPropertyException
protected PropertyList getWMPropertyList(PropertyList pList)
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.