Class TextProperties


  • public class TextProperties
    extends Object

    Defines properties for a chunk of text.

    A note to developers of this API: These properties must not have any meaning or effect beyond rendering of the text to which the properties belong. In an XML-context, these properties are typically inherited from higher levels down to all text nodes. Therefore, properties that cannot be inherited or do not pertain to the text itself, should be added elsewhere.

    • Method Detail

      • getLocale

        public String getLocale()
        Gets the locale of this text properties.
        Returns:
        returns the locale
      • getTranslationMode

        public String getTranslationMode()
        Gets the translation mode.
        Returns:
        the translation mode
      • isHyphenating

        public boolean isHyphenating()
        Returns true if the hyphenating property is true, false otherwise.
        Returns:
        returns true if the hyphenating property is true
      • shouldMarkCapitalLetters

        public boolean shouldMarkCapitalLetters()
        Returns true if the mark capital letters property is true, false otherwise.
        Returns:
        returns true if the mark capital letters property is true
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object