public class LineInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
FULL_ADV |
protected static int |
FULL_WORD |
Constructor and Description |
---|
LineInfo(FlowRegions fr,
BlockInfo bi,
boolean paraStart) |
Modifier and Type | Method and Description |
---|---|
boolean |
addWord(org.apache.batik.gvt.flow.WordInfo wi) |
boolean |
assignGlyphGroupRanges(int ggSz,
org.apache.batik.gvt.flow.GlyphGroupInfo[] ggis) |
static org.apache.batik.gvt.flow.GlyphGroupInfo[] |
assureSize(org.apache.batik.gvt.flow.GlyphGroupInfo[] ggis,
int sz) |
double |
getCurrentY() |
boolean |
gotoY(double y) |
boolean |
insertWord(org.apache.batik.gvt.flow.WordInfo wi) |
void |
layout() |
protected void |
mergeGlyphGroups(org.apache.batik.gvt.flow.WordInfo wi)
This function merges the glyph groups from wi
into the glyph groups that are already on this line.
|
boolean |
setLineHeight(double lh)
This method updates the line height and recalculates
the available flow ranges for the line.
|
void |
setParaEnd(boolean paraEnd) |
protected void |
swapGlyphGroupInfo() |
protected boolean |
updateRangeInfo() |
protected static final int FULL_WORD
protected static final int FULL_ADV
public LineInfo(FlowRegions fr, BlockInfo bi, boolean paraStart)
public void setParaEnd(boolean paraEnd)
public boolean addWord(org.apache.batik.gvt.flow.WordInfo wi)
public boolean insertWord(org.apache.batik.gvt.flow.WordInfo wi)
public boolean assignGlyphGroupRanges(int ggSz, org.apache.batik.gvt.flow.GlyphGroupInfo[] ggis)
public boolean setLineHeight(double lh)
public double getCurrentY()
public boolean gotoY(double y)
protected boolean updateRangeInfo()
protected void swapGlyphGroupInfo()
protected void mergeGlyphGroups(org.apache.batik.gvt.flow.WordInfo wi)
public void layout()
public static org.apache.batik.gvt.flow.GlyphGroupInfo[] assureSize(org.apache.batik.gvt.flow.GlyphGroupInfo[] ggis, int sz)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.