org.foray.fotree.fo.prop
Class AbstractBorder

java.lang.Object
  extended by org.foray.fotree.Property
      extended by org.foray.fotree.fo.AbstractFoProperty
          extended by org.foray.fotree.fo.prop.AbstractBorder
Direct Known Subclasses:
PdBorder, PdBorderBottom, PdBorderLeft, PdBorderRight, PdBorderTop

public abstract class AbstractBorder
extends AbstractFoProperty

Abstract superclass for the shorthand properties "border", "border-left", "border-right", "border-top", and "border-bottom".


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
AbstractBorder(FObj fobj, String propertyFullName, String attributeValue)
          Constructor.
 
Method Summary
 AbstractBorderColor getBorderColor()
          Returns the border-color component of this compound property.
 AbstractBorderStyle getBorderStyle()
          Returns the border-style component of this compound property.
 AbstractBorderWidth getBorderWidth()
          Returns the border-width component of this compound property.
protected  FoValue[] getValidKeywords()
          Returns the valid keywords for this property.
static FoProperty rawPropertyType(org.axsl.common.value.AbsoluteCompass direction)
          Converts a raw direction into its related property.
 PropertyValue value()
          Returns the value for this property.
 
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

AbstractBorder

public AbstractBorder(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

getBorderStyle

public AbstractBorderStyle getBorderStyle()
Returns the border-style component of this compound property.

Returns:
The border-style component of this compound property.

getBorderWidth

public AbstractBorderWidth getBorderWidth()
Returns the border-width component of this compound property.

Returns:
The border-width component of this compound property.

getBorderColor

public AbstractBorderColor getBorderColor()
Returns the border-color component of this compound property.

Returns:
The border-color component of this compound 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.

rawPropertyType

public static FoProperty rawPropertyType(org.axsl.common.value.AbsoluteCompass direction)
Converts a raw direction into its related property.

Parameters:
direction - One of the directional constants.
Returns:
The property related to direction.


Copyright © 2017. All rights reserved.