|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.CommonBorderPaddingBackground
public class CommonBorderPaddingBackground
Stores all common border and padding properties. See Sec. 7.7 of the XSL-FO Standard.
Nested Class Summary | |
---|---|
static class |
CommonBorderPaddingBackground.BorderInfo
|
Field Summary | |
---|---|
static int |
AFTER
the "after" edge |
int |
backgroundAttachment
The "background-attachment" property. |
java.awt.Color |
backgroundColor
The "background-color" property. |
java.lang.String |
backgroundImage
The "background-image" property. |
Length |
backgroundPositionHorizontal
The "background-position-horizontal" property. |
Length |
backgroundPositionVertical
The "background-position-vertical" property. |
int |
backgroundRepeat
The "background-repeat" property. |
static int |
BEFORE
the "before" edge |
static int |
END
the "end" edge |
static int |
START
the "start" edge |
Constructor Summary | |
---|---|
CommonBorderPaddingBackground()
Construct a CommonBorderPaddingBackground object. |
|
CommonBorderPaddingBackground(PropertyList pList)
Construct a CommonBorderPaddingBackground object. |
Method Summary | |
---|---|
int |
getBorderAfterWidth(boolean bDiscard)
|
int |
getBorderBeforeWidth(boolean bDiscard)
|
java.awt.Color |
getBorderColor(int side)
|
int |
getBorderEndWidth(boolean bDiscard)
|
CommonBorderPaddingBackground.BorderInfo |
getBorderInfo(int side)
|
int |
getBorderStartWidth(boolean bDiscard)
|
int |
getBorderStyle(int side)
|
int |
getBorderWidth(int side,
boolean bDiscard)
|
int |
getBPPaddingAndBorder(boolean bDiscard,
PercentBaseContext context)
Return all the border and padding height in the block progression dimension. |
static CommonBorderPaddingBackground.BorderInfo |
getDefaultBorderInfo()
Returns a default BorderInfo of style none. |
org.apache.xmlgraphics.image.loader.ImageInfo |
getImageInfo()
|
int |
getIPPaddingAndBorder(boolean bDiscard,
PercentBaseContext context)
Return all the border and padding width in the inline progression dimension. |
int |
getPadding(int side,
boolean bDiscard,
PercentBaseContext context)
|
int |
getPaddingAfter(boolean bDiscard,
PercentBaseContext context)
|
int |
getPaddingBefore(boolean bDiscard,
PercentBaseContext context)
|
int |
getPaddingEnd(boolean bDiscard,
PercentBaseContext context)
|
CondLengthProperty |
getPaddingLengthProperty(int side)
Returns the CondLengthProperty for the padding on one side. |
int |
getPaddingStart(boolean bDiscard,
PercentBaseContext context)
|
boolean |
hasBackground()
|
boolean |
hasBorder()
|
boolean |
hasBorderInfo()
|
boolean |
hasPadding(PercentBaseContext context)
|
void |
setBorderInfo(CommonBorderPaddingBackground.BorderInfo info,
int side)
Sets a border. |
void |
setPadding(CommonBorderPaddingBackground source)
Set padding. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int backgroundAttachment
public java.awt.Color backgroundColor
public java.lang.String backgroundImage
public int backgroundRepeat
public Length backgroundPositionHorizontal
public Length backgroundPositionVertical
public static final int BEFORE
public static final int AFTER
public static final int START
public static final int END
Constructor Detail |
---|
public CommonBorderPaddingBackground()
public CommonBorderPaddingBackground(PropertyList pList) throws PropertyException
pList
- The PropertyList to get properties from.
PropertyException
- if there's an error while binding the propertiesMethod Detail |
---|
public static CommonBorderPaddingBackground.BorderInfo getDefaultBorderInfo()
Constants.EN_NONE
public void setBorderInfo(CommonBorderPaddingBackground.BorderInfo info, int side)
info
- the border informationside
- the side to apply the info topublic CommonBorderPaddingBackground.BorderInfo getBorderInfo(int side)
side
- the side to retrieve
public void setPadding(CommonBorderPaddingBackground source)
source
- the padding info to copy frompublic org.apache.xmlgraphics.image.loader.ImageInfo getImageInfo()
public int getBorderStartWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (start of a reference-area)public int getBorderEndWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (end of a reference-area)public int getBorderBeforeWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (start of a reference-area)public int getBorderAfterWidth(boolean bDiscard)
bDiscard
- indicates whether the .conditionality component should be
considered (end of a reference-area)public int getPaddingStart(boolean bDiscard, PercentBaseContext context)
public int getPaddingEnd(boolean bDiscard, PercentBaseContext context)
public int getPaddingBefore(boolean bDiscard, PercentBaseContext context)
public int getPaddingAfter(boolean bDiscard, PercentBaseContext context)
public int getBorderWidth(int side, boolean bDiscard)
public java.awt.Color getBorderColor(int side)
public int getBorderStyle(int side)
public int getPadding(int side, boolean bDiscard, PercentBaseContext context)
public CondLengthProperty getPaddingLengthProperty(int side)
side
- the side
public int getIPPaddingAndBorder(boolean bDiscard, PercentBaseContext context)
bDiscard
- the discard flag.context
- for percentage evaluation.
public int getBPPaddingAndBorder(boolean bDiscard, PercentBaseContext context)
bDiscard
- the discard flag.context
- for percentage evaluation
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasBackground()
public boolean hasBorder()
public boolean hasPadding(PercentBaseContext context)
context
- for percentage based evaluation.
public boolean hasBorderInfo()
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |