public class LineInfo
extends java.lang.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(WordInfo wi) |
boolean |
assignGlyphGroupRanges(int ggSz,
GlyphGroupInfo[] ggis) |
static GlyphGroupInfo[] |
assureSize(GlyphGroupInfo[] ggis,
int sz) |
double |
getCurrentY() |
boolean |
gotoY(double y) |
boolean |
insertWord(WordInfo wi) |
void |
layout() |
protected void |
mergeGlyphGroups(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(WordInfo wi)
public boolean insertWord(WordInfo wi)
public boolean assignGlyphGroupRanges(int ggSz, GlyphGroupInfo[] ggis)
public boolean setLineHeight(double lh)
public double getCurrentY()
public boolean gotoY(double y)
protected boolean updateRangeInfo()
protected void swapGlyphGroupInfo()
protected void mergeGlyphGroups(WordInfo wi)
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.public void layout()
public static GlyphGroupInfo[] assureSize(GlyphGroupInfo[] ggis, int sz)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.