org.apache.fop.fo.flow
Class Leader
java.lang.Object
|
+--org.apache.fop.fo.FONode
|
+--org.apache.fop.fo.FObj
|
+--org.apache.fop.fo.FObjMixed
|
+--org.apache.fop.fo.flow.Leader
- public class Leader
- extends FObjMixed
Implements fo:leader; main property of leader leader-pattern.
The following patterns are treated: rule, space, dots.
The pattern use-content is ignored, i.e. it still must be implemented.
Fields inherited from class org.apache.fop.fo.FONode |
areaClass, areasGenerated, BREAK_AFTER, children, forcedStartOffset, forcedWidth, isInTableCell, linkSet, log, marker, parent, START |
Constructor Summary |
Leader(FObj parent,
PropertyList propertyList,
java.lang.String systemId,
int line,
int column)
|
Method Summary |
int |
addLeader(BlockArea ba,
FontState fontState,
float red,
float green,
float blue,
int leaderPattern,
int leaderLengthMinimum,
int leaderLengthOptimum,
int leaderLengthMaximum,
int ruleThickness,
int ruleStyle,
int leaderPatternWidth,
int leaderAlignment)
adds a leader to current line area of containing block area
the actual leader area is created in the line area |
java.lang.String |
getName()
returns the name of the formatting object |
int |
layout(Area area)
generates the area or areas for this formatting object
and adds these to the area. |
static FObj.Maker |
maker()
|
Methods inherited from class org.apache.fop.fo.FONode |
forceStartOffset, forceWidth, getLinkSet, getMarkerSnapshot, getParent, mayPrecedeMarker, removeAreas, resetMarker, rollback, setIsInTableCell, setLinkSet, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Leader
public Leader(FObj parent,
PropertyList propertyList,
java.lang.String systemId,
int line,
int column)
throws FOPException
maker
public static FObj.Maker maker()
getName
public java.lang.String getName()
- Description copied from class:
FObj
- returns the name of the formatting object
- Overrides:
getName
in class FObj
- Following copied from class:
org.apache.fop.fo.FObj
- Returns:
- the name of this formatting objects
layout
public int layout(Area area)
throws FOPException
- Description copied from class:
FObj
- generates the area or areas for this formatting object
and adds these to the area. This method should always be
overridden by all sub classes
- Overrides:
layout
in class FObjMixed
- Following copied from class:
org.apache.fop.fo.FObj
- Parameters:
area
-
addLeader
public int addLeader(BlockArea ba,
FontState fontState,
float red,
float green,
float blue,
int leaderPattern,
int leaderLengthMinimum,
int leaderLengthOptimum,
int leaderLengthMaximum,
int ruleThickness,
int ruleStyle,
int leaderPatternWidth,
int leaderAlignment)
- adds a leader to current line area of containing block area
the actual leader area is created in the line area
- Returns:
- int +1 for success and -1 for none
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.