org.apache.fop.fo.properties
public class CommonBorderPaddingBackground extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommonBorderPaddingBackground.BorderInfo |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CommonBorderPaddingBackground()
Construct a CommonBorderPaddingBackground object.
|
CommonBorderPaddingBackground(PropertyList pList)
Construct a CommonBorderPaddingBackground object.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
public CommonBorderPaddingBackground()
public CommonBorderPaddingBackground(PropertyList pList) throws PropertyException
pList
- The PropertyList to get properties from.PropertyException
- if there's an error while binding the propertiespublic 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 retrievepublic 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 sidepublic 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 evaluationpublic 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()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.