|
Eclipse Platform Kepler (4.3) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.equinox.bidi.custom.StructuredTextCharTypes
public class StructuredTextCharTypes
Provides services related to the bidi classification of characters.
Field Summary | |
---|---|
protected StructuredTextEnvironment |
environment
The environment associated with the expert. |
protected IStructuredTextExpert |
expert
The IStructuredTextExpert instance which created this instance. |
protected StructuredTextTypeHandler |
handler
The StructuredTextTypeHandler instance utilized by the expert. |
protected java.lang.String |
text
The source text whose characters are analyzed. |
Constructor Summary | |
---|---|
StructuredTextCharTypes(IStructuredTextExpert expert,
java.lang.String text)
Constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IStructuredTextExpert expert
protected final StructuredTextTypeHandler handler
protected final StructuredTextEnvironment environment
protected final java.lang.String text
Constructor Detail |
---|
public StructuredTextCharTypes(IStructuredTextExpert expert, java.lang.String text)
expert
- IStructuredTextExpert instance through which this handler
is invoked. The handler can use IStructuredTextExpert methods to
query items stored in the expert instance, like the current
environment
.text
- is the text whose characters are analyzed.Method Detail |
---|
public int getDirection()
DIR_LTR
or
DIR_RTL
.public byte getBidiTypeAt(int index)
index
- position of the character in the lean text
Character.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()
StructuredTextEnvironment.ORIENT_LTR
,
StructuredTextEnvironment.ORIENT_RTL
,
StructuredTextEnvironment.ORIENT_UNKNOWN
or
StructuredTextEnvironment.ORIENT_IGNORE
.
|
Eclipse Platform Kepler (4.3) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.