Package org.apache.batik.gvt.flow
Class LineInfo
java.lang.Object
org.apache.batik.gvt.flow.LineInfo
One line Class Desc
Complete Class Desc
- Version:
- $Id: LineInfo.java 1808001 2017-09-11 09:51:29Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double
(package private) double
(package private) BlockInfo
(package private) static final float
(package private) double
(package private) FlowRegions
protected static final int
protected static final int
(package private) GlyphGroupInfo[]
(package private) double
(package private) double
(package private) static final float
(package private) GlyphGroupInfo[]
(package private) int
(package private) int
(package private) int
(package private) boolean
(package private) boolean
(package private) double[]
(package private) double[]
(package private) int
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
assignGlyphGroupRanges
(int ggSz, GlyphGroupInfo[] ggis) static GlyphGroupInfo[]
assureSize
(GlyphGroupInfo[] ggis, int sz) double
boolean
gotoY
(double y) boolean
insertWord
(WordInfo wi) void
layout()
protected void
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
protected boolean
-
Field Details
-
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:
-
FULL_ADV
protected static final int FULL_ADV- See Also:
-
MAX_COMPRESS
static final float MAX_COMPRESS- See Also:
-
COMRESS_SCALE
static final float COMRESS_SCALE- See Also:
-
-
Constructor Details
-
LineInfo
-
-
Method Details
-
setParaEnd
public void setParaEnd(boolean paraEnd) -
addWord
-
insertWord
-
assignGlyphGroupRanges
-
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
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
-