org.foray.fotree.fo.prop
Class PdVerticalAlign

java.lang.Object
  extended by org.foray.fotree.Property
      extended by org.foray.fotree.fo.AbstractFoProperty
          extended by org.foray.fotree.fo.prop.PdVerticalAlign

public class PdVerticalAlign
extends AbstractFoProperty

The "vertical-align" property in XSL-FO.

See Also:
"XSL-FO Recommendation 1.1, Section 7.31.22."

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
PdVerticalAlign(FObj fobj, String propertyFullName, String attributeValue)
          Constructor.
 
Method Summary
 int getAlignmentAdjust(FObj fobj, org.axsl.fo.FoContext context, org.axsl.fo.FoInlineContext inlineContext)
          Returns the alignment-adjust component of this shorthand property.
 org.axsl.common.value.AlignmentBaseline getAlignmentBaseline()
          Returns the alignment-baseline component of this shorthand property.
 int getBaselineShift(FObj fobj, org.axsl.fo.FoContext context)
          Returns the baseline-shift component of this shorthand property.
 org.axsl.common.value.Baseline getDominantBaseline(FObj fobj, org.axsl.fo.FoContext context)
          Returns the dominant-baseline component of this shorthand property.
 FoProperty getPropertyType()
          Returns the type of this property.
protected  FoValue[] getValidKeywords()
          Returns the valid keywords for this property.
 PropertyValue value()
          Returns the value for this property.
 
Methods inherited from class org.foray.fotree.fo.AbstractFoProperty
canEvalBorderStyle, canEvalUri, checkKeywords, convertValueToFoValue, evalBorderStyle, evalUri, 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

PdVerticalAlign

public PdVerticalAlign(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.
Method Detail

getAlignmentBaseline

public org.axsl.common.value.AlignmentBaseline getAlignmentBaseline()
Returns the alignment-baseline component of this shorthand property.

Returns:
The alignment-baseline component of this shorthand property.

getAlignmentAdjust

public int getAlignmentAdjust(FObj fobj,
                              org.axsl.fo.FoContext context,
                              org.axsl.fo.FoInlineContext inlineContext)
Returns the alignment-adjust component of this shorthand property.

Parameters:
fobj - The FO for which this value is needed.
context - An object that knows how to resolve FO context issues.
inlineContext - An object that knows how to resolve FO Tree context issues that apply to inline objects.
Returns:
The alignment-adjust component of this shorthand property.

getBaselineShift

public int getBaselineShift(FObj fobj,
                            org.axsl.fo.FoContext context)
Returns the baseline-shift component of this shorthand property.

Parameters:
fobj - The FO for which this value is needed.
context - An object that knows how to resolve FO context issues.
Returns:
The baseline-shift component of this shorthand property.

getDominantBaseline

public org.axsl.common.value.Baseline getDominantBaseline(FObj fobj,
                                                          org.axsl.fo.FoContext context)
Returns the dominant-baseline component of this shorthand property.

Parameters:
fobj - The FO for which this value is needed.
context - An object that knows how to resolve FO context issues.
Returns:
The dominant-baseline component of this shorthand property.

getValidKeywords

protected FoValue[] getValidKeywords()
Description copied from class: AbstractFoProperty
Returns the valid keywords for this property.

Specified by:
getValidKeywords in class AbstractFoProperty
Returns:
The valid keywords for this property.

value

public PropertyValue value()
Description copied from class: Property
Returns the value for this property.

Specified by:
value in class Property
Returns:
The value for this property.

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.


Copyright © 2017. All rights reserved.