Class Markup

java.lang.Object
com.aowagie.text.html.Markup

public class Markup extends Object
A class that contains all the possible tagnames and their attributes.
  • Field Details

  • Constructor Details

    • Markup

      public Markup()
  • Method Details

    • parseLength

      public static float parseLength(String string)
      Parses a length.
      Parameters:
      string - a length in the form of an optional + or -, followed by a number and a unit.
      Returns:
      a float
    • parseLength

      public static float parseLength(String string, float actualFontSize)
      New method contributed by: Lubos Strapko
      Parameters:
      string - String
      actualFontSize - Actual Font Size
      Returns:
      Length
      Since:
      2.1.3
    • decodeColor

      public static Color decodeColor(String s)
      Converts a Color into a HTML representation of this Color.
      Parameters:
      s - the Color that has to be converted.
      Returns:
      the HTML representation of this Color
    • parseAttributes

      public static Properties parseAttributes(String string)
      This method parses a String with attributes and returns a Properties object.
      Parameters:
      string - a String of this form: 'key1="value1"; key2="value2";... keyN="valueN" '
      Returns:
      a Properties object