public final class JLaTeXMathCache
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clear the cache
|
static java.lang.Object |
getCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset) |
static java.lang.Object |
getCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
Get a cached formula
|
static int[] |
getCachedTeXFormulaDimensions(java.lang.Object o) |
static int[] |
getCachedTeXFormulaDimensions(java.lang.String f,
int style,
int size,
int inset) |
static int[] |
getCachedTeXFormulaDimensions(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor) |
static java.awt.Image |
getCachedTeXFormulaImage(java.lang.Object o)
Get a cached formula
|
static java.awt.Image |
getCachedTeXFormulaImage(java.lang.String f,
int style,
int size,
int inset) |
static java.awt.Image |
getCachedTeXFormulaImage(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
Get a cached formula
|
static java.lang.Object |
paintCachedTeXFormula(java.lang.Object o,
java.awt.Graphics2D g)
Paint a cached formula
|
static java.lang.Object |
paintCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset,
java.awt.Graphics2D g) |
static java.lang.Object |
paintCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor,
java.awt.Graphics2D g)
Paint a cached formula
|
static void |
removeCachedTeXFormula(java.lang.Object o)
Remove a formula from the cache.
|
static void |
removeCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset) |
static void |
removeCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
Remove a formula from the cache
|
static void |
setMaxCachedObjects(int max)
Set max size.
|
public static void setMaxCachedObjects(int max)
max - the max sizepublic static int[] getCachedTeXFormulaDimensions(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
throws ParseException
f - a formulastyle - a style like TeXConstants.STYLE_DISPLAYsize - the size of fontinset - the inset to add on the top, bottom, left and rightParseExceptionpublic static int[] getCachedTeXFormulaDimensions(java.lang.String f,
int style,
int size,
int inset)
throws ParseException
ParseExceptionpublic static int[] getCachedTeXFormulaDimensions(java.lang.Object o)
throws ParseException
o - an Object to identify the image in the cacheParseExceptionpublic static java.lang.Object getCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
throws ParseException
f - a formulastyle - a style like TeXConstants.STYLE_DISPLAYsize - the size of fontinset - the inset to add on the top, bottom, left and rightParseExceptionpublic static java.lang.Object getCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset)
throws ParseException
ParseExceptionpublic static void clearCache()
public static void removeCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
throws ParseException
f - a formulastyle - a style like TeXConstants.STYLE_DISPLAYsize - the size of fontinset - the inset to add on the top, bottom, left and rightParseExceptionpublic static void removeCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset)
throws ParseException
ParseExceptionpublic static void removeCachedTeXFormula(java.lang.Object o)
throws ParseException
o - an Object to identify the image in the cacheParseExceptionpublic static java.lang.Object paintCachedTeXFormula(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor,
java.awt.Graphics2D g)
throws ParseException
f - a formulastyle - a style like TeXConstants.STYLE_DISPLAYsize - the size of fontinset - the inset to add on the top, bottom, left and rightParseExceptionpublic static java.lang.Object paintCachedTeXFormula(java.lang.String f,
int style,
int size,
int inset,
java.awt.Graphics2D g)
throws ParseException
ParseExceptionpublic static java.lang.Object paintCachedTeXFormula(java.lang.Object o,
java.awt.Graphics2D g)
throws ParseException
o - an Object to identify the image in the cacheg - the graphics where to paint the imageParseExceptionpublic static java.awt.Image getCachedTeXFormulaImage(java.lang.String f,
int style,
int type,
int size,
int inset,
java.awt.Color fgcolor)
throws ParseException
f - a formulastyle - a style like TeXConstants.STYLE_DISPLAYsize - the size of fontinset - the inset to add on the top, bottom, left and rightParseExceptionpublic static java.awt.Image getCachedTeXFormulaImage(java.lang.String f,
int style,
int size,
int inset)
throws ParseException
ParseExceptionpublic static java.awt.Image getCachedTeXFormulaImage(java.lang.Object o)
throws ParseException
o - an Object to identify the image in the cacheParseException