Class SoTextDetail
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.details.SoDetail
com.openinventor.inventor.details.SoTextDetail
Stores detail information about a text node.
This class contains detail information about a point on a text shape (
SoText2
or SoText3
). It contains the part of the text, string, and character that were hit or generated.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns an instance that is a copy of this instance.int
Returns the index of the relevant character within the string.getPart()
ForSoText3
, this returns which part was picked or generated.int
Returns the index of the relevant string within a multiple-value string field of a text node.void
setCharacterIndex
(int i) void
void
setStringIndex
(int i) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoTextDetail
public SoTextDetail()Constructor.
-
-
Method Details
-
setPart
-
setStringIndex
public void setStringIndex(int i) -
getCharacterIndex
public int getCharacterIndex()Returns the index of the relevant character within the string. For example, if the character of detail was the "u" within "Splurmph", the character index would be 3. -
getPart
ForSoText3
, this returns which part was picked or generated. -
copy
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed. -
setCharacterIndex
public void setCharacterIndex(int i) -
getStringIndex
public int getStringIndex()Returns the index of the relevant string within a multiple-value string field of a text node.
-