|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.complexscripts.bidi.InlineRun
public class InlineRun
The InlineRun
class is a utility class, the instances of which are used
to capture a sequence of reordering levels associated with an inline area.
This work was originally authored by Glenn Adams (gadams@apache.org).
Constructor Summary | |
---|---|
InlineRun(InlineArea inline,
int[] levels)
Primary constructor. |
|
InlineRun(InlineArea inline,
int level,
int count)
Alternate constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
InlineArea |
getInline()
Obtain inline area that generated this inline run. |
int |
getMaxLevel()
Obtain maximum bidi level for this run. |
int |
getMinLevel()
Obtain minimum bidi level for this run. |
int |
hashCode()
|
boolean |
isHomogenous()
Determine if this run has homogenous (same valued) bidi levels. |
boolean |
maybeNeedsMirroring()
Determine if run needs mirroring. |
void |
maybeReverseWord(boolean mirror)
Reverse inline area if it is a word area and it requires reversal. |
void |
reverse()
Reverse run (by incrementing reversal count, not actually reversing). |
java.util.List |
split()
Split this inline run into homogenous runs. |
java.lang.String |
toString()
|
void |
updateMinMax(int[] mm)
Update a min/max array to correspond with this run's min/max values. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InlineRun(InlineArea inline, int[] levels)
inline
- which generated this inline runlevels
- levels arraypublic InlineRun(InlineArea inline, int level, int count)
inline
- which generated this inline runlevel
- for each indexcount
- of indicesMethod Detail |
---|
public InlineArea getInline()
public int getMinLevel()
public int getMaxLevel()
public boolean isHomogenous()
public java.util.List split()
public void updateMinMax(int[] mm)
mm
- reference to min/max arraypublic boolean maybeNeedsMirroring()
public void reverse()
public void maybeReverseWord(boolean mirror)
mirror
- if true then also mirror characterspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |