Package com.nomagic.magicreport.format
Class LaTeXFormatter
java.lang.Object
com.nomagic.magicreport.format.DefaultFormatter
com.nomagic.magicreport.format.LaTeXFormatter
- All Implemented Interfaces:
IFormatter
This class provides implementation for LaTeX format output. Extend from DefaultFormatter, this class provide
additional support for BufferedImage.
-
Field Summary
Fields inherited from class com.nomagic.magicreport.format.DefaultFormatter
properties, styledDocumentFields inherited from interface com.nomagic.magicreport.format.IFormatter
DOT_PER_INCH -
Constructor Summary
ConstructorsConstructorDescriptionLaTeXFormatter(Properties properties) Create a HTML formatter with specific properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringfilter(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.Convert an Object value into HTML format.Methods inherited from class com.nomagic.magicreport.format.DefaultFormatter
getImageFlag, getObjectFormater, getProperties, registerObjectFormatter, setProperties, setStyledDocument, writeImage, writeImage, writeImage
-
Constructor Details
-
LaTeXFormatter
Create a HTML formatter with specific properties.- Parameters:
properties- template properties
-
-
Method Details
-
format
Convert an Object value into HTML format.- Specified by:
formatin interfaceIFormatter- Overrides:
formatin classDefaultFormatter- Parameters:
value- converting value- Returns:
- object in default format.
-
filter
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
-