* @return The scaling factor that should be applied to the intrinsic
* height of the content.
*/
public float getContentHeight(final FObj fobj, final FoContext context,
final FObjScaled fobjScaled) {
final PdContentHeight property = (PdContentHeight) getProperty(
FoProperty.CONTENT_HEIGHT);
if (property == null) {
/* Height scaling is not set. If we are scaling uniformly, use the
* width scaling if available. */
if (fobj.scalingUniform(context)) {
final PdContentWidth widthProperty =
(PdContentWidth) getProperty(FoProperty.CONTENT_WIDTH);
if (widthProperty == null) {
return AbstractContentDimension.getValueNoInstance();
} else {
return widthProperty.getValue(context, fobj, fobjScaled);
}
} else {
/* Scaling is not uniform. Just return the default. */
return AbstractContentDimension.getValueNoInstance();
}
} else {
return property.getValue(context, fobj, fobjScaled);
}
}