org.apache.fop.fo.properties

Class CorrespondingPropertyMaker

Known Direct Subclasses:
DimensionPropertyMaker, IndentPropertyMaker, SpacePropertyMaker

public class CorrespondingPropertyMaker
extends java.lang.Object

Field Summary

protected PropertyMaker
baseMaker
protected int
lr_tb
protected int
rl_tb
protected int
tb_rl
protected boolean
useParent

Constructor Summary

CorrespondingPropertyMaker(PropertyMaker baseMaker)

Method Summary

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)

Field Details

baseMaker

protected PropertyMaker baseMaker

lr_tb

protected int lr_tb

rl_tb

protected int rl_tb

tb_rl

protected int tb_rl

useParent

protected boolean useParent

Constructor Details

CorrespondingPropertyMaker

public CorrespondingPropertyMaker(PropertyMaker baseMaker)

Method Details

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.
Parameters:
propertyList - The PropertyList for the FO.
Returns:
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.
Parameters:
propertyList - collection of properties to be tested
Returns:
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.