* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
* @return The value of this property.
*/
public int getValue(final FoContext context, final FObj fobj) {
final RelativeCompass direction = this.getRelativeCompass(context,
fobj);
if (value().canEvalKeyword()) {
return getKeywordValue(context, direction, fobj);
}
if (value().canEvalLength()) {
final int length = this.convertValueToLength(value(), fobj,
context);
return Math.max(length, 0);
}
if (value() instanceof DtLengthConditional
&& direction.isRelative()) {
final DtLengthConditional lengthConditional
= (DtLengthConditional) value();
/*
* TODO: I'm not sure we have enough information here yet. We may
* need to know the writing mode of the reference-area. If so,