Package org.apache.fop.fo.properties
Class CommonBorderPaddingBackground.BorderInfo
- java.lang.Object
-
- org.apache.fop.fo.properties.CommonBorderPaddingBackground.BorderInfo
-
- Enclosing class:
- CommonBorderPaddingBackground
public static final class CommonBorderPaddingBackground.BorderInfo extends java.lang.Object
Utility class to express border info.
-
-
Field Summary
Fields Modifier and Type Field Description private static PropertyCache<CommonBorderPaddingBackground.BorderInfo>
CACHE
cache holding all canonical instancesprivate int
hash
private java.awt.Color
mColor
private int
mStyle
private CondLengthProperty
mWidth
private CondLengthProperty
radiusEnd
private CondLengthProperty
radiusStart
-
Constructor Summary
Constructors Modifier Constructor Description private
BorderInfo(int style, CondLengthProperty width, java.awt.Color color, CondLengthProperty radiusStart, CondLengthProperty radiusEnd)
Hidden constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.awt.Color
getColor()
static CommonBorderPaddingBackground.BorderInfo
getInstance(int style, CondLengthProperty width, java.awt.Color color, CondLengthProperty radiusStart, CondLengthProperty radiusEnd)
Returns a BorderInfo instance corresponding to the given values.CondLengthProperty
getRadiusEnd()
CondLengthProperty
getRadiusStart()
int
getRetainedWidth()
Convenience method returning the border-width, taking into account values of "none" and "hidden"int
getStyle()
CondLengthProperty
getWidth()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
CACHE
private static final PropertyCache<CommonBorderPaddingBackground.BorderInfo> CACHE
cache holding all canonical instances
-
mStyle
private int mStyle
-
mColor
private java.awt.Color mColor
-
mWidth
private CondLengthProperty mWidth
-
radiusStart
private CondLengthProperty radiusStart
-
radiusEnd
private CondLengthProperty radiusEnd
-
hash
private int hash
-
-
Constructor Detail
-
BorderInfo
private BorderInfo(int style, CondLengthProperty width, java.awt.Color color, CondLengthProperty radiusStart, CondLengthProperty radiusEnd)
Hidden constructor
-
-
Method Detail
-
getInstance
public static CommonBorderPaddingBackground.BorderInfo getInstance(int style, CondLengthProperty width, java.awt.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
public java.awt.Color getColor()
- Returns:
- the border-color
-
getWidth
public CondLengthProperty 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
public CondLengthProperty getRadiusStart()
- Returns:
- the border-*-start-radius
-
getRadiusEnd
public CondLengthProperty getRadiusEnd()
- Returns:
- the border-*-end-radius
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-