Package snap.text

Interface TextFormat

All Superinterfaces:
XMLArchiver.Archivable
All Known Implementing Classes:
NumberFormat

public interface TextFormat extends XMLArchiver.Archivable
An interface for text formating.
  • Method Details

    • getPattern

      String getPattern()
      Returns a format pattern string.
    • setPattern

      default void setPattern(String format)
      Sets a format pattern string.
    • format

      String format(Object anObj)
      Returns a formatted string.
    • formatStyle

      default TextStyle formatStyle(Object anObj)
      Returns a format style. This should go - need formatRich() returning RichText instead.