|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.layoutmgr.TraitSetter
This is a helper class used for setting common traits on areas.
Field Summary | |
protected static org.apache.commons.logging.Log |
log
logger |
Constructor Summary | |
TraitSetter()
|
Method Summary | |
static void |
addBackground(Area area,
CommonBorderPaddingBackground backProps,
PercentBaseContext context)
Add background to an area. |
static void |
addBorders(Area area,
CommonBorderPaddingBackground bordProps,
boolean discardBefore,
boolean discardAfter,
boolean discardStart,
boolean discardEnd,
PercentBaseContext context)
Add borders to an area. |
static void |
addBorders(Area area,
CommonBorderPaddingBackground bordProps,
PercentBaseContext context)
Deprecated. Call the other addBorders() method and addPadding separately. |
static void |
addBreaks(Area area,
int breakBefore,
int breakAfter)
Sets the traits for breaks on an area. |
static void |
addCollapsingBorders(Area area,
CommonBorderPaddingBackground bordProps,
boolean[] outer,
PercentBaseContext context)
Add borders to an area for the collapsing border model in tables. |
static void |
addMargins(Area area,
CommonBorderPaddingBackground bpProps,
CommonMarginBlock marginProps,
PercentBaseContext context)
Add space to a block area. |
static void |
addPadding(Area area,
CommonBorderPaddingBackground bordProps,
boolean discardBefore,
boolean discardAfter,
boolean discardStart,
boolean discardEnd,
PercentBaseContext context)
Add padding to an area. |
static void |
addSpaceBeforeAfter(Area area,
double adjust,
MinOptMax spaceBefore,
MinOptMax spaceAfter)
|
static void |
addTextDecoration(Area area,
CommonTextDecoration deco)
Adds the text-decoration traits to the area. |
static int |
getEffectiveSpace(double adjust,
MinOptMax space)
|
static void |
setBorderPaddingTraits(Area area,
CommonBorderPaddingBackground bpProps,
boolean bNotFirst,
boolean bNotLast,
PercentBaseContext context)
Sets border and padding traits on areas. |
static void |
setProducerID(Area area,
java.lang.String id)
Sets the producer's ID as a trait on the area. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public TraitSetter()
Method Detail |
public static void setBorderPaddingTraits(Area area, CommonBorderPaddingBackground bpProps, boolean bNotFirst, boolean bNotLast, PercentBaseContext context)
area
- area to set the traits onbpProps
- border and padding propertiesbNotFirst
- True if the area is not the first areabNotLast
- True if the area is not the last areacontext
- Property evaluation contextpublic static void addBorders(Area area, CommonBorderPaddingBackground bordProps, PercentBaseContext context)
area
- the area to set the traits on.bordProps
- border propertiescontext
- Property evaluation contextpublic static void addBorders(Area area, CommonBorderPaddingBackground bordProps, boolean discardBefore, boolean discardAfter, boolean discardStart, boolean discardEnd, PercentBaseContext context)
area
- the area to set the traits on.bordProps
- border propertiesdiscardBefore
- true if the before border should be discardeddiscardAfter
- true if the after border should be discardeddiscardStart
- true if the start border should be discardeddiscardEnd
- true if the end border should be discardedcontext
- Property evaluation contextpublic static void addCollapsingBorders(Area area, CommonBorderPaddingBackground bordProps, boolean[] outer, PercentBaseContext context)
area
- the area to set the traits on.bordProps
- border propertiesouter
- 4 boolean values indicating if the side represents the
table's outer border. Order: before, after, start, endcontext
- Property evaluation contextpublic static void addPadding(Area area, CommonBorderPaddingBackground bordProps, boolean discardBefore, boolean discardAfter, boolean discardStart, boolean discardEnd, PercentBaseContext context)
area
- the area to set the traits on.bordProps
- border and padding propertiesdiscardBefore
- true if the before padding should be discardeddiscardAfter
- true if the after padding should be discardeddiscardStart
- true if the start padding should be discardeddiscardEnd
- true if the end padding should be discardedcontext
- Property evaluation contextpublic static void addBackground(Area area, CommonBorderPaddingBackground backProps, PercentBaseContext context)
area
- the area to set the traits onbackProps
- the background propertiescontext
- Property evaluation contextpublic static void addMargins(Area area, CommonBorderPaddingBackground bpProps, CommonMarginBlock marginProps, PercentBaseContext context)
area
- the area to set the traits on.bpProps
- the border, padding and background propertiesmarginProps
- the margin properties.context
- the context for evaluation of percentagespublic static int getEffectiveSpace(double adjust, MinOptMax space)
public static void addSpaceBeforeAfter(Area area, double adjust, MinOptMax spaceBefore, MinOptMax spaceAfter)
public static void addBreaks(Area area, int breakBefore, int breakAfter)
area
- the area to set the traits on.breakBefore
- the value for break-beforebreakAfter
- the value for break-afterpublic static void addTextDecoration(Area area, CommonTextDecoration deco)
area
- the area to set the traits ondeco
- the text decorationspublic static void setProducerID(Area area, java.lang.String id)
area
- the area to set the traits onid
- the ID to set
|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |