* @return The computed value, or {@link FObj#DIMENSION_AUTO} for
* "auto".
*/
private int getRelativeDimension(final FObj fobj, final FoContext context,
final RelativeAxis relativeAxis, final LengthRange subProperty) {
AbstractRelativeDimension property = null;
if (relativeAxis == RelativeAxis.BLOCK_PROGRESSION) {
property = (AbstractRelativeDimension)
getProperty(FoProperty.BLOCK_PROGRESSION_DIMENSION);
} else {
property = (AbstractRelativeDimension)
getProperty(FoProperty.INLINE_PROGRESSION_DIMENSION);
}
if (property != null) {
return property.getValue(context, subProperty, fobj);
}
/* Try the corresponding absolute dimension. */
AbstractAbsoluteDimension absDimProperty = null;
final DtWritingMode writingMode = this.getWritingMode(fobj, context);