|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layout.Box
org.apache.fop.layout.Area
org.apache.fop.layout.LineArea
Nested Class Summary | |
class |
LineArea.Leader
|
Field Summary | |
protected int |
allocationHeight
|
protected int |
embeddedLinkStart
|
protected int |
endIndent
|
protected int |
halfLeading
|
protected int |
lineHeight
|
protected static int |
MULTIBYTECHAR
|
protected int |
nominalFontSize
|
protected int |
nominalGlyphHeight
|
protected static int |
NOTHING
|
protected boolean |
prevLTState
|
protected boolean |
prevOlState
|
protected boolean |
prevUlState
|
protected int |
startIndent
|
protected static int |
TEXT
|
protected static int |
WHITESPACE
|
Fields inherited from class org.apache.fop.layout.Area |
allocationWidth, areaClass, background, bp, children, contentRectangleWidth, currentHeight, foCreator, fontState, generatedBy, isFirst, isLast, maxHeight, page, tableCellXOffset |
Fields inherited from class org.apache.fop.layout.Box |
areaTree, parent |
Constructor Summary | |
LineArea(FontState fontState,
int lineHeight,
int halfLeading,
int allocationWidth,
int startIndent,
int endIndent,
LineArea prevLineArea)
|
Method Summary | |
int |
addCharacter(char data,
LinkSet ls,
boolean ul)
adds a single character to the line area tree |
void |
addInlineArea(InlineArea box,
LinkSet ls)
|
void |
addInlineSpace(InlineSpace is,
int spaceWidth)
|
void |
addLeader(int leaderPattern,
int leaderLengthMinimum,
int leaderLengthOptimum,
int leaderLengthMaximum,
int ruleStyle,
int ruleThickness,
int leaderPatternWidth,
int leaderAlignment)
adds a Leader; actually the method receives the leader properties and creates a leader area or an inline area which is appended to the children of the containing line area. |
int |
addPageNumberCitation(java.lang.String refid,
LinkSet ls)
|
void |
addPending()
adds pending inline areas to the line area normally done, when the line area is filled and added as child to the parent block area |
int |
addText(char[] data,
int start,
int end,
LinkSet ls,
TextState textState)
adds text to line area |
void |
align(int type)
Store text alignment. |
void |
changeColor(float red,
float green,
float blue)
|
void |
changeFont(FontState fontState)
|
void |
changeHyphenation(HyphenationProps hyphProps)
sets hyphenation related traits: language, country, hyphenate, hyphenation-character and minimum number of character to remain one the previous line and to be on the next line. |
void |
changeVerticalAlign(int vAlign)
|
void |
changeWhiteSpaceCollapse(int whiteSpaceCollapse)
|
void |
changeWrapOption(int wrapOption)
|
int |
doHyphenation(char[] characters,
int position,
int wordStart,
int remainingWidth,
int startw,
LinkSet ls,
TextState textState)
extracts word for hyphenation and calls hyphenation package, handles cases of inword punctuation and quotation marks at the beginning of words, but not in a internationalized way |
int |
getEndIndent()
|
int |
getHeight()
Returns allocation height of this area. |
java.lang.String |
getLineText()
|
int |
getPlacementOffset()
|
int |
getRemainingWidth()
|
int |
getStartIndent()
|
boolean |
isEmpty()
|
void |
render(Renderer renderer)
|
void |
setLinkSet(LinkSet ls)
|
void |
verticalAlign()
Balance (vertically) the inline areas within this line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int lineHeight
protected int halfLeading
protected int nominalFontSize
protected int nominalGlyphHeight
protected int allocationHeight
protected int startIndent
protected int endIndent
protected int embeddedLinkStart
protected static final int NOTHING
protected static final int WHITESPACE
protected static final int TEXT
protected static final int MULTIBYTECHAR
protected boolean prevUlState
protected boolean prevOlState
protected boolean prevLTState
Constructor Detail |
public LineArea(FontState fontState, int lineHeight, int halfLeading, int allocationWidth, int startIndent, int endIndent, LineArea prevLineArea)
Method Detail |
public void render(Renderer renderer)
render
in class Box
public int addPageNumberCitation(java.lang.String refid, LinkSet ls)
public int addText(char[] data, int start, int end, LinkSet ls, TextState textState)
public void addLeader(int leaderPattern, int leaderLengthMinimum, int leaderLengthOptimum, int leaderLengthMaximum, int ruleStyle, int ruleThickness, int leaderPatternWidth, int leaderAlignment)
public void addPending()
public void align(int type)
public void verticalAlign()
public void changeColor(float red, float green, float blue)
public void changeFont(FontState fontState)
public void changeWhiteSpaceCollapse(int whiteSpaceCollapse)
public void changeWrapOption(int wrapOption)
public void changeVerticalAlign(int vAlign)
public int getEndIndent()
public int getHeight()
Area
getHeight
in class Area
public int getPlacementOffset()
public int getStartIndent()
public boolean isEmpty()
public void changeHyphenation(HyphenationProps hyphProps)
public int doHyphenation(char[] characters, int position, int wordStart, int remainingWidth, int startw, LinkSet ls, TextState textState)
public int getRemainingWidth()
public void setLinkSet(LinkSet ls)
public void addInlineArea(InlineArea box, LinkSet ls)
public void addInlineSpace(InlineSpace is, int spaceWidth)
public int addCharacter(char data, LinkSet ls, boolean ul)
public java.lang.String getLineText()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |