Package org.apache.batik.gvt.flow
Class LineInfo
- java.lang.Object
-
- org.apache.batik.gvt.flow.LineInfo
-
public class LineInfo extends java.lang.Object
One line Class Desc Complete Class Desc- Version:
- $Id: LineInfo.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
ascent
(package private) double
baseline
(package private) BlockInfo
bi
(package private) static float
COMRESS_SCALE
(package private) double
descent
(package private) FlowRegions
fr
protected static int
FULL_ADV
protected static int
FULL_WORD
(package private) GlyphGroupInfo[]
ggis
(package private) double
hLeading
(package private) double
lineHeight
(package private) static float
MAX_COMPRESS
(package private) GlyphGroupInfo[]
newGGIS
(package private) int
newSize
(package private) int
numGlyphs
(package private) int
numRanges
(package private) boolean
paraEnd
(package private) boolean
paraStart
(package private) double[]
rangeAdv
(package private) double[]
ranges
(package private) int
size
(package private) int
words
-
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 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 fromwi
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()
-
-
-
Field Detail
-
fr
FlowRegions fr
-
lineHeight
double lineHeight
-
ascent
double ascent
-
descent
double descent
-
hLeading
double hLeading
-
baseline
double baseline
-
numGlyphs
int numGlyphs
-
words
int words
-
size
int size
-
ggis
GlyphGroupInfo[] ggis
-
newSize
int newSize
-
newGGIS
GlyphGroupInfo[] newGGIS
-
numRanges
int numRanges
-
ranges
double[] ranges
-
rangeAdv
double[] rangeAdv
-
bi
BlockInfo bi
-
paraStart
boolean paraStart
-
paraEnd
boolean paraEnd
-
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
-
MAX_COMPRESS
static final float MAX_COMPRESS
- See Also:
- Constant Field Values
-
COMRESS_SCALE
static final float COMRESS_SCALE
- 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 fromwi
into the glyph groups that are already on this line. It does no fit checking, just adds them in the proper place in thenewGGIS
data member.
-
layout
public void layout()
-
assureSize
public static GlyphGroupInfo[] assureSize(GlyphGroupInfo[] ggis, int sz)
-
-