Class FontInfo

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

public class FontInfo extends BaseInfo
Describes settings information for a font and optional text/background colors.
  • Constructor Details

    • FontInfo

      public FontInfo(Font font, Color color)
      Constructor
      Parameters:
      font - font
      color - text color
    • FontInfo

      public FontInfo(Font font, Color color, boolean enabled)
      Constructor
      Parameters:
      font - font
      color - text color
      enabled - true if this font is enabled
    • FontInfo

      public FontInfo(Font font, Color color, Color bgColor, boolean enabled)
      Constructor
      Parameters:
      font - font
      color - text color
      bgColor - background color
      enabled - true if this font is enabled
    • FontInfo

      public FontInfo(TextStyle style, boolean enabled)
      Constructor
      Parameters:
      enabled - true if this font is enabled
      font - font
      color - text color
      bgColor - background color
  • Method Details

    • getValue

      public TextStyle getValue()
    • getFont

      public Font getFont()
      Gets the font.
      Returns:
      font
    • getColor

      public Color getColor()
      Gets the text color for displaying this font.
      Returns:
      text color for displaying this font
    • getBgColor

      public Color getBgColor()
      Gets the background color for displaying this font.
      Returns:
      background color for displaying this font
    • equals

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

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

      public Object toJson(BaseInfo def)
      Specified by:
      toJson in class BaseInfo
    • fromJson

      public static FontInfo fromJson(Object json, FontInfo def)