|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.jlatexmath.TeXFormula.TeXIconBuilder
public class TeXFormula.TeXIconBuilder
Apply the Builder pattern instead of using the createTeXIcon(...) factories
Constructor Summary | |
---|---|
TeXFormula.TeXIconBuilder()
|
Method Summary | |
---|---|
TeXIcon |
build()
Create a TeXIcon from the information gathered by the (chained) setXXX() methods. |
TeXFormula.TeXIconBuilder |
setFGColor(java.awt.Color fgcolor)
Specify the background color for rendering the given TeXFormula |
TeXFormula.TeXIconBuilder |
setInterLineSpacing(int interLineUnit,
float interLineSpacing)
Specify the inter line spacing unit and value. |
TeXFormula.TeXIconBuilder |
setIsMaxWidth(boolean isMaxWidth)
Specifies whether the width is the exact or the maximum width |
TeXFormula.TeXIconBuilder |
setSize(float size)
Specify the font size for rendering the given TeXFormula |
TeXFormula.TeXIconBuilder |
setStyle(int style)
Specify the style for rendering the given TeXFormula |
TeXFormula.TeXIconBuilder |
setTrueValues(boolean trueValues)
Specify the "true values" parameter for rendering the given TeXFormula |
TeXFormula.TeXIconBuilder |
setType(int type)
Specify the font type for rendering the given TeXFormula |
TeXFormula.TeXIconBuilder |
setWidth(int widthUnit,
float textWidth,
int align)
Specify the width of the formula (may be exact or maximum width, see setIsMaxWidth(boolean) ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TeXFormula.TeXIconBuilder()
Method Detail |
---|
public TeXFormula.TeXIconBuilder setStyle(int style)
style
- the style
public TeXFormula.TeXIconBuilder setSize(float size)
size
- the size
public TeXFormula.TeXIconBuilder setType(int type)
type
- the font type
public TeXFormula.TeXIconBuilder setFGColor(java.awt.Color fgcolor)
fgcolor
- the foreground color
public TeXFormula.TeXIconBuilder setTrueValues(boolean trueValues)
trueValues
- the "true values" value
public TeXFormula.TeXIconBuilder setWidth(int widthUnit, float textWidth, int align)
setIsMaxWidth(boolean)
)
widthUnit
- the width unittextWidth
- the widthalign
- the alignment
public TeXFormula.TeXIconBuilder setIsMaxWidth(boolean isMaxWidth)
isMaxWidth
- whether the width is a maximum width
public TeXFormula.TeXIconBuilder setInterLineSpacing(int interLineUnit, float interLineSpacing)
interLineUnit
- the unitinterLineSpacing
- the value
public TeXIcon build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |