org.apache.batik.gvt.flow

Class LineInfo

public class LineInfo extends Object

One line Class Desc Complete Class Desc
Field Summary
protected static intFULL_ADV
protected static intFULL_WORD
Constructor Summary
LineInfo(FlowRegions fr, BlockInfo bi, boolean paraStart)
Method Summary
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 from wi into 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_ADV

protected static final int FULL_ADV

FULL_WORD

protected static final int FULL_WORD

Constructor Detail

LineInfo

public LineInfo(FlowRegions fr, BlockInfo bi, boolean paraStart)

Method Detail

addWord

public boolean addWord(WordInfo wi)

assignGlyphGroupRanges

public boolean assignGlyphGroupRanges(int ggSz, GlyphGroupInfo[] ggis)

assureSize

public static GlyphGroupInfo[] assureSize(GlyphGroupInfo[] ggis, int sz)

getCurrentY

public double getCurrentY()

gotoY

public boolean gotoY(double y)

insertWord

public boolean insertWord(WordInfo wi)

layout

public void layout()

mergeGlyphGroups

protected void mergeGlyphGroups(WordInfo wi)
This function merges the glyph groups from wi into the glyph groups that are already on this line. It does no fit checking, just adds them in the proper place in the newGGIS data member.

setLineHeight

public boolean setLineHeight(double lh)
This method updates the line height and recalculates the available flow ranges for the line.

setParaEnd

public void setParaEnd(boolean paraEnd)

swapGlyphGroupInfo

protected void swapGlyphGroupInfo()

updateRangeInfo

protected boolean updateRangeInfo()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.