org.apache.fop.layout
Class BlockArea
org.apache.fop.layout.Box
|
+--org.apache.fop.layout.Area
|
+--org.apache.fop.layout.BlockArea
- public class BlockArea
- extends Area
Fields inherited from class org.apache.fop.layout.Area |
borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderStyleBottom, borderStyleLeft, borderStyleRight, borderStyleTop, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop |
Constructor Summary |
BlockArea(FontState fontState, int allocationWidth, int maxHeight, int startIndent, int endIndent, int textIndent, int align, int alignLastLine, int lineHeight) |
Method Summary |
void | addCharacter(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, char data, boolean ul) |
int | addLeader(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 |
void | addLineArea(LineArea la) |
int | addPageNumberCitation(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, String refid) |
int | addText(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, char[] data, int start, int end, boolean ul) |
void | end() |
int | getEndIndent() |
int | getHalfLeading() |
int | getStartIndent() |
void | render(Renderer renderer) |
void | setHyphenation(String language, String country, int hyphenate, char hyphenationChar, int hyphenationPushCharacterCount, int hyphenationRemainCharacterCount) |
void | setIndents(int startIndent, int endIndent) |
int | spaceLeft() |
void | start() |
Methods inherited from class org.apache.fop.layout.Area |
addChild, addChildAtStart, addDisplaySpace, getAbsoluteHeight, getAllocationWidth, getBackgroundColor, getChildren, getContentHeight, getContentWidth, getFontInfo, getFontState, getHeight, getIDReferences, getMaxHeight, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPage, getParent, getTableCellXOffset, increaseAbsoluteHeight, increaseHeight, remove, removeChild, removeChild, setAbsoluteHeight, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setHeight, setIDReferences, setMaxHeight, setPadding, setPage, setTableCellXOffset |
BlockArea
public BlockArea(FontState fontState, int allocationWidth, int maxHeight, int startIndent, int endIndent, int textIndent, int align, int alignLastLine, int lineHeight)
addCharacter
public void addCharacter(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, char data, boolean ul)
addLeader
public int addLeader(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
addLineArea
public void addLineArea(LineArea la)
addPageNumberCitation
public int addPageNumberCitation(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, String refid)
addText
public int addText(FontState fontState, float red, float green, float blue, int wrapOption, LinkSet ls, int whiteSpaceCollapse, char[] data, int start, int end, boolean ul)
end
public void end()
getEndIndent
public int getEndIndent()
getHalfLeading
public int getHalfLeading()
getStartIndent
public int getStartIndent()
render
public void render(Renderer renderer)
setHyphenation
public void setHyphenation(String language, String country, int hyphenate, char hyphenationChar, int hyphenationPushCharacterCount, int hyphenationRemainCharacterCount)
setIndents
public void setIndents(int startIndent, int endIndent)
spaceLeft
public int spaceLeft()
start
public void start()
to Class org.apache.fop.layout.LineArea
to Class org.apache.fop.layout.LinkSet
to Class java.lang.String
to Class java.lang.String