Class ODFStyleCreator

java.lang.Object
com.nomagic.magicreport.format.html.ODFStyleCreator

@OpenApiAll public final class ODFStyleCreator extends Object
ODFStyleCreator provide creating of ODF style tag.
Since:
Apr 9, 2008 11:26:05 AM
  • Method Details

    • getItalicStyle

      public static String getItalicStyle(String name)
      Return String that represent Italic format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      Returns:
      String that represent Italic format in ODF document.
    • getBoldStyle

      public static String getBoldStyle(String name)
      Returns String that represent Bold format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      Returns:
      String that represent Bold format in ODF document.
    • getUnderLineStyle

      public static String getUnderLineStyle(String name)
      Returns String that represent Underline format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      Returns:
      String that represent Underline format in ODF document.
    • getStrikeStyle

      public static String getStrikeStyle(String name)
      Returns String that represent Underline format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      Returns:
      String that represent Underline format in ODF document.
    • getColorStyle

      public static String getColorStyle(String name, Color color)
      Returns String that represent Color format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      color - the Color to return.
      Returns:
      String that represent Color format in ODF document.
    • getFontStyle

      public static String getFontStyle(String name, Font font)
      Returns String that represent Font format in ODF document.
      Parameters:
      name - the tag name in ODF document.
      font - the Font object to return.
      Returns:
      String that represent Font format in ODF document.
    • colorToString

      public static String colorToString(Color c)
      Convert color into string.
      Parameters:
      c - the color
      Returns:
      string value for the color
    • lengthConversion

      public static double lengthConversion(String length, String targetUnit)
      Convert length into another unit.
      Parameters:
      length - input length
      targetUnit - target unit. One of (cm)|(mm)|(in)|(pt)|(pc)|(px).
      Returns:
      string with new length