Package org.apache.fop.layoutmgr.inline
Class HyphContext
- java.lang.Object
-
- org.apache.fop.layoutmgr.inline.HyphContext
-
public class HyphContext extends java.lang.Object
This class is used to pass information to the getNextBreakPoss() method concerning hyphenation. A reference to an instance of the class is contained in the LayoutContext object passed to each LayoutManager. It contains information concerning the hyphenation points in a word and the how many of those have previously been processed by a Layout Manager to generate size information.
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentIndex
private int
currentOffset
private int[]
hyphPoints
-
Constructor Summary
Constructors Constructor Description HyphContext(int[] hyphPoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNextHyphPoint()
boolean
hasMoreHyphPoints()
void
updateOffset(int iCharsProcessed)
-
-
-
Method Detail
-
getNextHyphPoint
public int getNextHyphPoint()
- Returns:
- next hyphenation point
-
hasMoreHyphPoints
public boolean hasMoreHyphPoints()
- Returns:
- true if more hyphenation points
-
updateOffset
public void updateOffset(int iCharsProcessed)
- Parameters:
iCharsProcessed
- amount to extend offset
-
-