Class SoTextDetail


public class SoTextDetail extends SoDetail
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:
  • Constructor Details

    • SoTextDetail

      public SoTextDetail()
      Constructor.
  • Method Details

    • copy

      public SoDetail 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.
      Overrides:
      copy in class SoDetail
    • getPart

      public SoText3.PartType getPart()
      For SoText3, this returns which part was picked or generated.
    • 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.
    • setStringIndex

      public void setStringIndex(int i)
    • getStringIndex

      public int getStringIndex()
      Returns the index of the relevant string within a multiple-value string field of a text node.
    • setCharacterIndex

      public void setCharacterIndex(int i)
    • setPart

      public void setPart(SoText3.PartType p)