|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.jlatexmath.cache.JLaTeXMathCache
public final class JLaTeXMathCache
Class to cache generated image from formulas
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 right
ParseException
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 cache
ParseException
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 right
ParseException
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 right
ParseException
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 cache
ParseException
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 right
ParseException
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 image
ParseException
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 right
ParseException
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 cache
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |