DimensionPropertyMaker
, IndentPropertyMaker
, SpacePropertyMaker
public class CorrespondingPropertyMaker
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected PropertyMaker |
baseMaker |
base property maker
|
protected int |
lrtb |
corresponding property for lr-tb writing mode
|
protected int |
rltb |
corresponding property for rl-tb writing mode
|
protected int |
tblr |
corresponding property for tb-lr writing mode
|
protected int |
tbrl |
corresponding property for tb-rl writing mode
|
protected boolean |
useParent |
user parent property list
|
Constructor | Description |
---|---|
CorrespondingPropertyMaker(PropertyMaker baseMaker) |
Construct a corresponding property maker.
|
Modifier and Type | Method | 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 lrtb,
int rltb,
int tbrl,
int tblr) |
Set corresponding property identifiers.
|
void |
setRelative(boolean relative) |
Set relative flag.
|
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 lrtb
protected int rltb
protected int tbrl
protected int tblr
protected boolean useParent
public CorrespondingPropertyMaker(PropertyMaker baseMaker)
baseMaker
- the base property makerpublic void setCorresponding(int lrtb, int rltb, int tbrl, int tblr)
lrtb
- the property that corresponds with lr-tb writing moderltb
- the property that corresponds with rl-tb writing modetbrl
- the property that corresponds with tb-lr writing modetblr
- the property that corresponds with tb-lr writing modepublic void setUseParent(boolean useParent)
useParent
- true if the parent property list should be used.public void setRelative(boolean relative)
relative
- true if properties operate on a relative directionpublic boolean isCorrespondingForced(PropertyList propertyList)
propertyList
- collection of properties to be testedpublic Property compute(PropertyList propertyList) throws PropertyException
propertyList
- The PropertyList for the FO.PropertyException
- if a property exception occursprotected PropertyList getWMPropertyList(PropertyList pList)
pList
- a property listCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.