org.foray.fotree.fo.prop
Class PdContentWidth
java.lang.Object
org.foray.fotree.Property
org.foray.fotree.fo.AbstractFoProperty
org.foray.fotree.fo.prop.AbstractContentDimension
org.foray.fotree.fo.prop.PdContentWidth
public class PdContentWidth
- extends AbstractContentDimension
The "content-width" property in XSL-FO.
- See Also:
- "XSL-FO Recommendation 1.1, Section 7.15.5."
|
Method Summary |
protected float |
getInheritedValue(org.axsl.fo.FoContext context,
FObjScaled fobjScaled,
FObj parent)
Returns the inherited value for this property. |
FoProperty |
getPropertyType()
Returns the type of this property. |
protected int |
intrinsicContentDimension(FObjScaled fobjScaled,
org.axsl.fo.FoContext context)
Returns either the intrinsic height or intrinsic width of the graphic,
depending on the subclass. |
protected int |
viewportDimension(FObjScaled fobjScaled,
org.axsl.fo.FoContext context)
Returns either the viewport height or viewport width of the graphic,
depending on the subclass. |
| Methods inherited from class org.foray.fotree.Property |
convertNumericToInteger, convertValueToLength, getBasePropertyName, getKeywordIndex, getKeywordInSet, getSubPropertyName, invalidPropertyName, keywordInSet, unexpectedInitialValueArgument, unexpectedRetrieval, unexpectedValue, unexpectedValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdContentWidth
public PdContentWidth(FObj fobj,
String propertyFullName,
String attributeValue)
throws PropertyException
- Constructor.
- Parameters:
fobj - The FObj to which this property belongs.propertyFullName - The full name of the property.attributeValue - The unparsed property value.
- Throws:
PropertyException - For an invalid property value.
getPropertyType
public FoProperty getPropertyType()
- Description copied from class:
AbstractFoProperty
- Returns the type of this property.
- Specified by:
getPropertyType in class AbstractFoProperty
- Returns:
- The type of this property.
getInheritedValue
protected float getInheritedValue(org.axsl.fo.FoContext context,
FObjScaled fobjScaled,
FObj parent)
- Description copied from class:
AbstractContentDimension
- Returns the inherited value for this property.
- Specified by:
getInheritedValue in class AbstractContentDimension
- Parameters:
context - An object that knows how to resolve FO Tree context
issues.fobjScaled - The object containing the scalable item whose content
dimension is needed. This may be the same as fobj, but
will not be the same for cases where we are looking for the dimension
using "inherit".parent - The parent FObj instance who should provide the inherited
value.
- Returns:
- The inherited scaling factor.
intrinsicContentDimension
protected int intrinsicContentDimension(FObjScaled fobjScaled,
org.axsl.fo.FoContext context)
- Description copied from class:
AbstractContentDimension
- Returns either the intrinsic height or intrinsic width of the graphic,
depending on the subclass.
- Specified by:
intrinsicContentDimension in class AbstractContentDimension
- Parameters:
fobjScaled - The object containing the scalable item whose content
dimension is needed.context - An object that knows how to resolve FO Tree context
issues.
- Returns:
- The intrinsic dimension of the graphic on the axis being computed
(height for content-height, width for content-width).
viewportDimension
protected int viewportDimension(FObjScaled fobjScaled,
org.axsl.fo.FoContext context)
- Description copied from class:
AbstractContentDimension
- Returns either the viewport height or viewport width of the graphic,
depending on the subclass.
- Specified by:
viewportDimension in class AbstractContentDimension
- Parameters:
fobjScaled - The object containing the scalable item whose viewport
dimension is needed.context - An object that knows how to resolve FO Tree context
issues.
- Returns:
- The intrinsic dimension of the graphic on the axis being computed
(height for content-height, width for content-width).
Copyright © 2017. All rights reserved.