org.eclipse.equinox.bidi.custom
public class STextCharTypes extends Object
| Modifier and Type | Field and Description |
|---|---|
protected STextEnvironment |
environment
The environment associated with the expert.
|
protected ISTextExpert |
expert
The ISTextExpert instance which created this instance.
|
protected STextTypeHandler |
handler
The STextTypeHandler instance utilized by the expert.
|
protected String |
text
The source text whose characters are analyzed.
|
| Constructor and Description |
|---|
STextCharTypes(ISTextExpert expert,
String text)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getBidiTypeAt(int index)
Gets the directionality of the character in the original string
at the specified index.
|
int |
getDirection()
Indicates the base text direction appropriate for an instance of
structured text.
|
int |
resolveOrientation()
Gets the orientation of the component in which the text will
be displayed.
|
void |
setBidiTypeAt(int index,
byte charType)
Forces a bidi type on a character.
|
protected final ISTextExpert expert
protected final STextTypeHandler handler
protected final STextEnvironment environment
protected final String text
public STextCharTypes(ISTextExpert expert, String text)
expert - ISTextExpert instance through which this handler
is invoked. The handler can use ISTextExpert methods to
query items stored in the expert instance, like the current
environment.text - is the text whose characters are analyzed.public int getDirection()
public byte getBidiTypeAt(int index)
index - position of the character in the lean textCharacter.getDirectionality(char).public void setBidiTypeAt(int index,
byte charType)
index - position of the character whose bidi type is set.charType - bidirectional type of the character. It must be
one of the values which can be returned by
java.lang.Character.getDirectionality.public int resolveOrientation()
STextEnvironment.ORIENT_LTR,
STextEnvironment.ORIENT_RTL,
STextEnvironment.ORIENT_UNKNOWN or
STextEnvironment.ORIENT_IGNORE.Guidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.