Class PlainText.Word

  • Enclosing class:
    PlainText

    static class PlainText.Word
    extends java.lang.Object
    An individual word. A word is defined as a string which must be kept on the same line.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.text.AttributedString attributedString  
      private java.lang.String textContent  
    • Constructor Summary

      Constructors 
      Constructor Description
      Word​(java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.text.AttributedString getAttributes()  
      (package private) java.lang.String getText()  
      (package private) void setAttributes​(java.text.AttributedString as)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • attributedString

        private java.text.AttributedString attributedString
      • textContent

        private final java.lang.String textContent
    • Constructor Detail

      • Word

        Word​(java.lang.String text)
    • Method Detail

      • getText

        java.lang.String getText()
      • getAttributes

        java.text.AttributedString getAttributes()
      • setAttributes

        void setAttributes​(java.text.AttributedString as)