be.ugent.caagt.jmathtex

Class TeXConstants


public class TeXConstants
extends java.lang.Object

The collection of constants that can be used in the methods of the classes of this package.

Field Summary

static int
ALIGN_BOTTOM
Alignment constant: extra space will be added above the formula
static int
ALIGN_CENTER
Alignment constant: the formula will be centered in the middle.
static int
ALIGN_LEFT
Alignment constant: extra space will be added to the right of the formula
static int
ALIGN_RIGHT
Alignment constant: extra space will be added to the left of the formula
static int
ALIGN_TOP
Alignment constant: extra space will be added under the formula
static int
DELIM_BRACE
Delimiter type constant for putting delimiters over and under formula's: brace
static int
DELIM_BRACKET
Delimiter type constant for putting delimiters over and under formula's: parenthesis
static int
DELIM_DOUBLE_LEFT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left
static int
DELIM_DOUBLE_LEFT_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left and to the right
static int
DELIM_DOUBLE_LINE
Delimiter type constant for putting delimiters over and under formula's: underline twice
static int
DELIM_DOUBLE_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the right
static int
DELIM_LEFT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left
static int
DELIM_LEFT_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left and to the right
static int
DELIM_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the right
static int
DELIM_SINGLE_LINE
Delimiter type constant for putting delimiters over and under formula's: underline once
static int
DELIM_SQUARE_BRACKET
Delimiter type constant for putting delimiters over and under formula's: square bracket
static int
STYLE_DISPLAY
TeX style: display style.
static int
STYLE_SCRIPT
TeX style: script style.
static int
STYLE_SCRIPT_SCRIPT
TeX style: script_script style.
static int
STYLE_TEXT
TeX style: text style.
static int
TYPE_ACCENT
Symbol type: accent, e.g.
static int
TYPE_BIG_OPERATOR
Symbol/Atom type: big operator (= large operator), e.g.
static int
TYPE_BINARY_OPERATOR
Symbol/Atom type: binary operator, e.g.
static int
TYPE_CLOSING
Symbol/Atom type: closing symbol, e.g.
static int
TYPE_INNER
Atom type: inner atom (NOT FOR SYMBOLS!!!)
static int
TYPE_OPENING
Symbol/Atom type: opening symbol, e.g.
static int
TYPE_ORDINARY
Symbol/Atom type: ordinary symbol, e.g.
static int
TYPE_PUNCTUATION
Symbol/Atom type: punctuation symbol, e.g.
static int
TYPE_RELATION
Symbol/Atom type: relation, e.g.
static int
UNIT_EM
Unit constant: em

1 em = the width of the capital 'M' in the current font

static int
UNIT_EX
Unit constant: ex

1 ex = the height of the character 'x' in the current font

static int
UNIT_MU
Unit constant: math unit (mu)

1 mu = 1/18 em (em taken from the "mufont")

static int
UNIT_PICA
Unit constant: pica

1 pica = 12 point

static int
UNIT_PIXEL
Unit constant: pixel
static int
UNIT_POINT
Unit constant: point

Field Details

ALIGN_BOTTOM

public static final int ALIGN_BOTTOM
Alignment constant: extra space will be added above the formula
Field Value:
4

ALIGN_CENTER

public static final int ALIGN_CENTER
Alignment constant: the formula will be centered in the middle. This constant can be used for both horizontal and vertical alignment.
Field Value:
2

ALIGN_LEFT

public static final int ALIGN_LEFT
Alignment constant: extra space will be added to the right of the formula
Field Value:
0

ALIGN_RIGHT

public static final int ALIGN_RIGHT
Alignment constant: extra space will be added to the left of the formula
Field Value:
1

ALIGN_TOP

public static final int ALIGN_TOP
Alignment constant: extra space will be added under the formula
Field Value:
3

DELIM_BRACE

public static final int DELIM_BRACE
Delimiter type constant for putting delimiters over and under formula's: brace
Field Value:
0

DELIM_BRACKET

public static final int DELIM_BRACKET
Delimiter type constant for putting delimiters over and under formula's: parenthesis
Field Value:
2

DELIM_DOUBLE_LEFT_ARROW

public static final int DELIM_DOUBLE_LEFT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left
Field Value:
6

DELIM_DOUBLE_LEFT_RIGHT_ARROW

public static final int DELIM_DOUBLE_LEFT_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the left and to the right
Field Value:
8

DELIM_DOUBLE_LINE

public static final int DELIM_DOUBLE_LINE
Delimiter type constant for putting delimiters over and under formula's: underline twice
Field Value:
10

DELIM_DOUBLE_RIGHT_ARROW

public static final int DELIM_DOUBLE_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with two lines pointing to the right
Field Value:
7

DELIM_LEFT_ARROW

public static final int DELIM_LEFT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left
Field Value:
3

DELIM_LEFT_RIGHT_ARROW

public static final int DELIM_LEFT_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the left and to the right
Field Value:
5

DELIM_RIGHT_ARROW

public static final int DELIM_RIGHT_ARROW
Delimiter type constant for putting delimiters over and under formula's: arrow with single line pointing to the right
Field Value:
4

DELIM_SINGLE_LINE

public static final int DELIM_SINGLE_LINE
Delimiter type constant for putting delimiters over and under formula's: underline once
Field Value:
9

DELIM_SQUARE_BRACKET

public static final int DELIM_SQUARE_BRACKET
Delimiter type constant for putting delimiters over and under formula's: square bracket
Field Value:
1

STYLE_DISPLAY

public static final int STYLE_DISPLAY
TeX style: display style.

The large versions of big operators are used and limits are placed under and over these operators (default). Symbols are rendered in the largest size.

Field Value:
0

STYLE_SCRIPT

public static final int STYLE_SCRIPT
TeX style: script style.

The same as the text style, but symbols are rendered in a smaller size.

Field Value:
4

STYLE_SCRIPT_SCRIPT

public static final int STYLE_SCRIPT_SCRIPT
TeX style: script_script style.

The same as the script style, but symbols are rendered in a smaller size.

Field Value:
6

STYLE_TEXT

public static final int STYLE_TEXT
TeX style: text style.

The small versions of big operators are used and limits are attached to these operators as scripts (default). The same size as in the display style is used to render symbols.

Field Value:
2

TYPE_ACCENT

public static final int TYPE_ACCENT
Symbol type: accent, e.g. "hat"
Field Value:
10

TYPE_BIG_OPERATOR

public static final int TYPE_BIG_OPERATOR
Symbol/Atom type: big operator (= large operator), e.g. "sum"
Field Value:
1

TYPE_BINARY_OPERATOR

public static final int TYPE_BINARY_OPERATOR
Symbol/Atom type: binary operator, e.g. "plus"
Field Value:
2

TYPE_CLOSING

public static final int TYPE_CLOSING
Symbol/Atom type: closing symbol, e.g. "rbrace"
Field Value:
5

TYPE_INNER

public static final int TYPE_INNER
Atom type: inner atom (NOT FOR SYMBOLS!!!)
Field Value:
7

TYPE_OPENING

public static final int TYPE_OPENING
Symbol/Atom type: opening symbol, e.g. "lbrace"
Field Value:
4

TYPE_ORDINARY

public static final int TYPE_ORDINARY
Symbol/Atom type: ordinary symbol, e.g. "slash"
Field Value:
0

TYPE_PUNCTUATION

public static final int TYPE_PUNCTUATION
Symbol/Atom type: punctuation symbol, e.g. "comma"
Field Value:
6

TYPE_RELATION

public static final int TYPE_RELATION
Symbol/Atom type: relation, e.g. "equals"
Field Value:
3

UNIT_EM

public static final int UNIT_EM
Unit constant: em

1 em = the width of the capital 'M' in the current font

Field Value:
0

UNIT_EX

public static final int UNIT_EX
Unit constant: ex

1 ex = the height of the character 'x' in the current font

Field Value:
1

UNIT_MU

public static final int UNIT_MU
Unit constant: math unit (mu)

1 mu = 1/18 em (em taken from the "mufont")

Field Value:
5

UNIT_PICA

public static final int UNIT_PICA
Unit constant: pica

1 pica = 12 point

Field Value:
4

UNIT_PIXEL

public static final int UNIT_PIXEL
Unit constant: pixel
Field Value:
2

UNIT_POINT

public static final int UNIT_POINT
Unit constant: point
Field Value:
3