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 rightParseException
public static int[] getCachedTeXFormulaDimensions(java.lang.String f, int style, int size, int inset) throws ParseException
ParseException
public static int[] getCachedTeXFormulaDimensions(java.lang.Object o) throws ParseException
o
- an Object to identify the image in the cacheParseException
public 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 rightParseException
public static java.lang.Object getCachedTeXFormula(java.lang.String f, int style, int size, int inset) throws ParseException
ParseException
public 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 rightParseException
public static void removeCachedTeXFormula(java.lang.String f, int style, int size, int inset) throws ParseException
ParseException
public static void removeCachedTeXFormula(java.lang.Object o) throws ParseException
o
- an Object to identify the image in the cacheParseException
public 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 rightParseException
public static java.lang.Object paintCachedTeXFormula(java.lang.String f, int style, int size, int inset, java.awt.Graphics2D g) throws ParseException
ParseException
public 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 imageParseException
public 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 rightParseException
public static java.awt.Image getCachedTeXFormulaImage(java.lang.String f, int style, int size, int inset) throws ParseException
ParseException
public static java.awt.Image getCachedTeXFormulaImage(java.lang.Object o) throws ParseException
o
- an Object to identify the image in the cacheParseException