public class InlineRun
extends java.lang.Object
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 and Description |
---|
InlineRun(InlineArea inline,
int[] levels)
Primary constructor.
|
InlineRun(InlineArea inline,
int level,
int count)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 indicespublic 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
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.