public final class BidiProcessor
extends java.lang.Object
WARNING: This class is for INTERNAL use only.
Modifier and Type | Field and Description |
---|---|
static BidiProcessor |
INSTANCE
A singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FlowFigure fig,
char c)
Records a character contribution for this bidi context.
|
void |
add(FlowFigure fig,
java.lang.String str)
Records a String contribution for this bidi context.
|
void |
addControlChar(char c)
This methods allows FlowFigures to contribute text that may effect the
bidi evaluation, but is not text that is visible on the screen.
|
void |
process()
Processes the contributed text, determines the Bidi levels, and assigns
them to the FlowFigures that made thet contributions.
|
void |
setOrientation(int newOrientation)
Sets the paragraph embedding.
|
public static final BidiProcessor INSTANCE
public void add(FlowFigure fig, java.lang.String str)
fig
- the figure that is contributing the given textstr
- the text contributed by the given figureaddControlChar(char)
public void add(FlowFigure fig, char c)
fig
- the figure that is contributing the given textc
- the character being addedaddControlChar(char)
public void addControlChar(char c)
c
- the control characterpublic void process()
public void setOrientation(int newOrientation)
newOrientation
- SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFTCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.