public final class JLaTeXMathCache extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clear the cache
|
static Object |
getCachedTeXFormula(String f,
int style,
int size,
int inset) |
static Object |
getCachedTeXFormula(String f,
int style,
int type,
int size,
int inset,
Color fgcolor)
Get a cached formula
|
static int[] |
getCachedTeXFormulaDimensions(Object o) |
static int[] |
getCachedTeXFormulaDimensions(String f,
int style,
int size,
int inset) |
static int[] |
getCachedTeXFormulaDimensions(String f,
int style,
int type,
int size,
int inset,
Color fgcolor) |
static Image |
getCachedTeXFormulaImage(Object o)
Get a cached formula
|
static Image |
getCachedTeXFormulaImage(String f,
int style,
int size,
int inset) |
static Image |
getCachedTeXFormulaImage(String f,
int style,
int type,
int size,
int inset,
Color fgcolor)
Get a cached formula
|
static Object |
paintCachedTeXFormula(Object o,
Graphics2D g)
Paint a cached formula
|
static Object |
paintCachedTeXFormula(String f,
int style,
int size,
int inset,
Graphics2D g) |
static Object |
paintCachedTeXFormula(String f,
int style,
int type,
int size,
int inset,
Color fgcolor,
Graphics2D g)
Paint a cached formula
|
static void |
removeCachedTeXFormula(Object o)
Remove a formula from the cache.
|
static void |
removeCachedTeXFormula(String f,
int style,
int size,
int inset) |
static void |
removeCachedTeXFormula(String f,
int style,
int type,
int size,
int inset,
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(String f, int style, int type, int size, int inset, 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(String f, int style, int size, int inset) throws ParseException
ParseExceptionpublic static int[] getCachedTeXFormulaDimensions(Object o) throws ParseException
o - an Object to identify the image in the cacheParseExceptionpublic static Object getCachedTeXFormula(String f, int style, int type, int size, int inset, 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 Object getCachedTeXFormula(String f, int style, int size, int inset) throws ParseException
ParseExceptionpublic static void clearCache()
public static void removeCachedTeXFormula(String f, int style, int type, int size, int inset, 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(String f, int style, int size, int inset) throws ParseException
ParseExceptionpublic static void removeCachedTeXFormula(Object o) throws ParseException
o - an Object to identify the image in the cacheParseExceptionpublic static Object paintCachedTeXFormula(String f, int style, int type, int size, int inset, Color fgcolor, 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 Object paintCachedTeXFormula(String f, int style, int size, int inset, Graphics2D g) throws ParseException
ParseExceptionpublic static Object paintCachedTeXFormula(Object o, Graphics2D g) throws ParseException
o - an Object to identify the image in the cacheg - the graphics where to paint the imageParseExceptionpublic static Image getCachedTeXFormulaImage(String f, int style, int type, int size, int inset, 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 Image getCachedTeXFormulaImage(String f, int style, int size, int inset) throws ParseException
ParseExceptionpublic static Image getCachedTeXFormulaImage(Object o) throws ParseException
o - an Object to identify the image in the cacheParseExceptionCopyright © 2014–2018. All rights reserved.