Stores all common border and padding properties.
See Sec. 7.7 of the XSL-FO Standard.
AFTER
public static final int AFTER
the "after" edge
BEFORE
public static final int BEFORE
the "before" edge
END
public static final int END
the "end" edge
START
public static final int START
the "start" edge
backgroundAttachment
public int backgroundAttachment
The "background-attachment" property.
backgroundColor
public Color backgroundColor
The "background-color" property.
backgroundImage
public String backgroundImage
The "background-image" property.
backgroundPositionHorizontal
public Length backgroundPositionHorizontal
The "background-position-horizontal" property.
backgroundPositionVertical
public Length backgroundPositionVertical
The "background-position-vertical" property.
backgroundRepeat
public int backgroundRepeat
The "background-repeat" property.
getBPPaddingAndBorder
public int getBPPaddingAndBorder(boolean bDiscard,
PercentBaseContext context)
Return all the border and padding height in the block progression
dimension.
bDiscard
- the discard flag.context
- for percentage evaluation
- all the padding and border height.
getBorderAfterWidth
public int getBorderAfterWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (end of a reference-area)
getBorderBeforeWidth
public int getBorderBeforeWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (start of a reference-area)
getBorderColor
public Color getBorderColor(int side)
getBorderEndWidth
public int getBorderEndWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (end of a reference-area)
getBorderStartWidth
public int getBorderStartWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (start of a reference-area)
getBorderStyle
public int getBorderStyle(int side)
getBorderWidth
public int getBorderWidth(int side,
boolean bDiscard)
getFopImage
public FopImage getFopImage()
- the background image as a preloaded FopImage, null if there is
no background image.
getIPPaddingAndBorder
public int getIPPaddingAndBorder(boolean bDiscard,
PercentBaseContext context)
Return all the border and padding width in the inline progression
dimension.
bDiscard
- the discard flag.context
- for percentage evaluation.
- all the padding and border width.
getPaddingLengthProperty
public CondLengthProperty getPaddingLengthProperty(int side)
Returns the CondLengthProperty for the padding on one side.
- the requested CondLengthProperty
hasBackground
public boolean hasBackground()
- true if there is any kind of background to be painted
hasBorder
public boolean hasBorder()
- true if border is non-zero.
hasBorderInfo
public boolean hasBorderInfo()
- true if there are any borders defined.
hasPadding
public boolean hasPadding(PercentBaseContext context)
context
- for percentage based evaluation.
- true if padding is non-zero.
toString
public String toString()
java.lang.Object.toString()