Package org.apache.batik.gvt.flow
Class LineInfo
- java.lang.Object
-
- org.apache.batik.gvt.flow.LineInfo
-
public class LineInfo extends java.lang.ObjectOne line Class Desc Complete Class Desc
-
-
Constructor Summary
Constructors Constructor Description LineInfo(FlowRegions fr, BlockInfo bi, boolean paraStart)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddWord(WordInfo wi)booleanassignGlyphGroupRanges(int ggSz, GlyphGroupInfo[] ggis)static GlyphGroupInfo[]assureSize(GlyphGroupInfo[] ggis, int sz)doublegetCurrentY()booleangotoY(double y)booleaninsertWord(WordInfo wi)voidlayout()protected voidmergeGlyphGroups(WordInfo wi)This function merges the glyph groups fromwiinto the glyph groups that are already on this line.booleansetLineHeight(double lh)This method updates the line height and recalculates the available flow ranges for the line.voidsetParaEnd(boolean paraEnd)protected voidswapGlyphGroupInfo()protected booleanupdateRangeInfo()
-
-
-
Field Detail
-
FULL_WORD
protected static final int FULL_WORD
- See Also:
- Constant Field Values
-
FULL_ADV
protected static final int FULL_ADV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LineInfo
public LineInfo(FlowRegions fr, BlockInfo bi, boolean paraStart)
-
-
Method Detail
-
setParaEnd
public void setParaEnd(boolean paraEnd)
-
addWord
public boolean addWord(WordInfo wi)
-
insertWord
public boolean insertWord(WordInfo wi)
-
assignGlyphGroupRanges
public boolean assignGlyphGroupRanges(int ggSz, GlyphGroupInfo[] ggis)
-
setLineHeight
public boolean setLineHeight(double lh)
This method updates the line height and recalculates the available flow ranges for the line.
-
getCurrentY
public double getCurrentY()
-
gotoY
public boolean gotoY(double y)
-
updateRangeInfo
protected boolean updateRangeInfo()
-
swapGlyphGroupInfo
protected void swapGlyphGroupInfo()
-
mergeGlyphGroups
protected void mergeGlyphGroups(WordInfo wi)
This function merges the glyph groups fromwiinto the glyph groups that are already on this line. It does no fit checking, just adds them in the proper place in thenewGGISdata member.
-
layout
public void layout()
-
assureSize
public static GlyphGroupInfo[] assureSize(GlyphGroupInfo[] ggis, int sz)
-
-