Package org.scilab.forge.jlatexmath
Class Dummy
java.lang.Object
org.scilab.forge.jlatexmath.Dummy
Used by RowAtom. The "textSymbol"-property and the type of an atom can change
(according to the TeX-algorithms used). Or this atom can be replaced by a ligature,
(if it was a CharAtom). But atoms cannot be changed, otherwise
different boxes could be made from the same TeXFormula, and that is not desired!
This "dummy atom" makes sure that changes to an atom (during the createBox-method of
a RowAtom) will be reset.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Changes this atom into the given "ligature atom".getCharFont
(TeXFont tf) This method will only be called if isCharSymbol returns true.int
int
int
getType()
Changes the type of the atomboolean
boolean
isKern()
void
void
setPreviousAtom
(Dummy prev) void
setType
(int t) Changes the type of the atom
-
Constructor Details
-
Dummy
Creates a new Dummy for the given atom.- Parameters:
a
- an atom
-
-
Method Details
-
setType
public void setType(int t) Changes the type of the atom- Parameters:
t
- the new type
-
getType
public int getType()Changes the type of the atom- Parameters:
t
- the new type
-
getLeftType
public int getLeftType()- Returns:
- the changed type, or the old left type if it hasn't been changed
-
getRightType
public int getRightType()- Returns:
- the changed type, or the old right type if it hasn't been changed
-
isCharSymbol
public boolean isCharSymbol() -
getCharFont
This method will only be called if isCharSymbol returns true. -
changeAtom
Changes this atom into the given "ligature atom".- Parameters:
a
- the ligature atom
-
createBox
-
markAsTextSymbol
public void markAsTextSymbol() -
isKern
public boolean isKern() -
setPreviousAtom
-