Class TextStyle

java.lang.Object
com.motivewave.platform.sdk.common.TextStyle
All Implemented Interfaces:
Cloneable

public class TextStyle extends Object implements Cloneable
  • Constructor Details

    • TextStyle

      public TextStyle(Font font, Color color, Color bgColor)
  • Method Details

    • getFont

      public Font getFont()
    • getColor

      public Color getColor()
    • setColor

      public TextStyle setColor(Color c)
    • getBgColor

      public Color getBgColor()
    • setBgColor

      public TextStyle setBgColor(Color c)
    • getFontMetrics

      public FontMetrics getFontMetrics()
    • equals

      public boolean equals(Object o)
      Compares the give object with this object and returns true if they are equal.
      Overrides:
      equals in class Object
      Returns:
      true if the given object equals this TextStyle
    • clone

      public TextStyle clone()
      Creates a clone (copy) of this object.
      Overrides:
      clone in class Object
      Returns:
      clone of this object
    • toJson

      public Object toJson()
    • fromJson

      public static TextStyle fromJson(Object json)
    • readStyle

      public static TextStyle readStyle(String str)
    • writeStyle

      public static String writeStyle(TextStyle ts)