Package org.apache.fop.fo.properties
Class CommonBorderPaddingBackground.BorderInfo
java.lang.Object
org.apache.fop.fo.properties.CommonBorderPaddingBackground.BorderInfo
- Enclosing class:
- CommonBorderPaddingBackground
Utility class to express border info.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getColor()
getInstance
(int style, CondLengthProperty width, Color color, CondLengthProperty radiusStart, CondLengthProperty radiusEnd) Returns a BorderInfo instance corresponding to the given values.int
Convenience method returning the border-width, taking into account values of "none" and "hidden"int
getStyle()
getWidth()
int
hashCode()
toString()
-
Method Details
-
getInstance
public static CommonBorderPaddingBackground.BorderInfo getInstance(int style, CondLengthProperty width, Color color, CondLengthProperty radiusStart, CondLengthProperty radiusEnd) Returns a BorderInfo instance corresponding to the given values.- Parameters:
style
- the border-stylewidth
- the border-widthcolor
- the border-colorradiusStart
- the start radius for rounded bordersradiusEnd
- the end radius for rounded borders- Returns:
- a cached BorderInfo instance
-
getStyle
public int getStyle()- Returns:
- the border-style
-
getColor
- Returns:
- the border-color
-
getWidth
- Returns:
- the border-width
-
getRetainedWidth
public int getRetainedWidth()Convenience method returning the border-width, taking into account values of "none" and "hidden"- Returns:
- the retained border-width
-
getRadiusStart
- Returns:
- the border-*-start-radius
-
getRadiusEnd
- Returns:
- the border-*-end-radius
-
toString
-
equals
-
hashCode
public int hashCode()
-