|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.text.BidiProcessor
A helper class for a BlockFlow that does Bidi evaluation of all the text in that block.
WARNING: This class is not intended to be subclassed by clients. This class is for INTERNAL use only.
| Field Summary | |
static BidiProcessor |
INSTANCE
A singleton instance. |
| Method Summary | |
void |
add(FlowFigure fig,
String str)
FlowFigures can make textual contributions for its block. |
void |
addControlText(String str)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final BidiProcessor INSTANCE
| Method Detail |
public void add(FlowFigure fig,
String str)
fig - the figure that is contributing the given textstr - the text contributed by the given figureaddControlText(String)public void addControlText(String str)
str - the contributed textpublic void process()
The assigned Bidi levels are in the form on an int array that contains sets of the Bidi level and the offset of the first character that that level applies to. For instance, {1, 0, 2, 5, 1, 9} would mean that characters at index 0-4 are of level 1, 5-8 of level 2 and the remaining characters (starting at offset 9) are of level 1.
public void setOrientation(int newOrientation)
newOrientation - SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||