|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.fotree.Property
org.foray.fotree.fo.AbstractFoProperty
org.foray.fotree.fo.prop.AbstractContentDimension
public abstract class AbstractContentDimension
Abstract superclass for the "content-width" and "content-height" properties in XSL-FO.
Field Summary |
---|
Fields inherited from class org.foray.fotree.fo.AbstractFoProperty |
---|
VALID_KEYWORDS_INHERIT_ONLY |
Fields inherited from class org.foray.fotree.Property |
---|
PRECEDENCE_FORCE |
Constructor Summary | |
---|---|
AbstractContentDimension(FObj fobj,
String propertyFullName,
String attributeValue)
Constructor. |
Method Summary | |
---|---|
boolean |
dependsOnPd(FObj fobj,
org.axsl.fo.FoContext context)
Indicates whether the computation of the scaling factor is dependent on the progression dimension (either IPD or BPD). |
protected abstract float |
getInheritedValue(org.axsl.fo.FoContext context,
FObjScaled fobjScaled,
FObj parent)
Returns the inherited value for this property. |
protected FoValue[] |
getValidKeywords()
Returns the valid keywords for this property. |
float |
getValue(org.axsl.fo.FoContext context,
FObj fobj,
FObjScaled fobjScaled)
Returns the implied or stated scaling factor. |
static float |
getValueNoInstance()
Returns the default (initial) value for this property. |
protected abstract int |
intrinsicContentDimension(FObjScaled fobjScaled,
org.axsl.fo.FoContext context)
Returns either the intrinsic height or intrinsic width of the graphic, depending on the subclass. |
PropertyValue |
value()
Returns the value for this property. |
protected abstract 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.fo.AbstractFoProperty |
---|
canEvalBorderStyle, canEvalUri, checkKeywords, convertValueToFoValue, evalBorderStyle, evalUri, getPropertyType, isKeywordInherit, standardParse, standardParse |
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 |
Constructor Detail |
---|
public AbstractContentDimension(FObj fobj, String propertyFullName, String attributeValue) throws PropertyException
fobj
- The FObj to which this property belongs.propertyFullName
- The full name of the property.attributeValue
- The unparsed property value.
PropertyException
- For an invalid property value.Method Detail |
---|
public float getValue(org.axsl.fo.FoContext context, FObj fobj, FObjScaled fobjScaled)
context
- An object that knows how to resolve FO Tree context
issues.fobj
- The FObj instance to which this property is attached.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".
public boolean dependsOnPd(FObj fobj, org.axsl.fo.FoContext context)
fobj
- The FObj instance to which this property is attached.context
- An object that knows how to resolve FO Tree context
issues.
getValue(FoContext, FObj, FObjScaled)
to return a useful
amount.protected abstract float getInheritedValue(org.axsl.fo.FoContext context, FObjScaled fobjScaled, FObj parent)
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.
protected abstract int intrinsicContentDimension(FObjScaled fobjScaled, org.axsl.fo.FoContext context)
fobjScaled
- The object containing the scalable item whose content
dimension is needed.context
- An object that knows how to resolve FO Tree context
issues.
protected abstract int viewportDimension(FObjScaled fobjScaled, org.axsl.fo.FoContext context)
fobjScaled
- The object containing the scalable item whose viewport
dimension is needed.context
- An object that knows how to resolve FO Tree context
issues.
public static float getValueNoInstance()
protected FoValue[] getValidKeywords()
AbstractFoProperty
getValidKeywords
in class AbstractFoProperty
public PropertyValue value()
Property
value
in class Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |