Class LaTeXFormatter

java.lang.Object
com.nomagic.magicreport.format.DefaultFormatter
com.nomagic.magicreport.format.LaTeXFormatter
All Implemented Interfaces:
IFormatter

@OpenApiAll public class LaTeXFormatter extends DefaultFormatter
This class provides implementation for LaTeX format output. Extend from DefaultFormatter, this class provide additional support for BufferedImage.
  • Constructor Details

    • LaTeXFormatter

      public LaTeXFormatter(Properties properties)
      Create a HTML formatter with specific properties.
      Parameters:
      properties - template properties
  • Method Details

    • format

      public Object format(Object value)
      Convert an Object value into HTML format.
      Specified by:
      format in interface IFormatter
      Overrides:
      format in class DefaultFormatter
      Parameters:
      value - converting value
      Returns:
      object in default format.
    • filter

      public static String filter(CharSequence value)
      Filter the specified string for characters that are sensitive to LaTeX interpreters, returning the string with these characters replaced by the corresponding character entities.
      Parameters:
      value - The string to be filtered and returned
      Returns:
      string after filtered