Class Text


  • public class Text
    extends java.lang.Object
    Text class, for defining segments of text with formatting rules.
    • Constructor Summary

      Constructors 
      Constructor Description
      Text()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Text clone()  
      boolean formattingMatches​(Text other)
      Checks if the formatting matches between this and another Text object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Text

        public Text()
    • Method Detail

      • formattingMatches

        public boolean formattingMatches​(Text other)
        Checks if the formatting matches between this and another Text object.
        Parameters:
        other - The other Text object.
        Returns:
        true if the formatting matches the other Text object.
      • clone

        public Text clone()