|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.jlatexmath.Dummy
public class 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 | |
---|---|
Dummy(Atom a)
Creates a new Dummy for the given atom. |
Method Summary | |
---|---|
void |
changeAtom(FixedCharAtom a)
Changes this atom into the given "ligature atom". |
Box |
createBox(TeXEnvironment rs)
|
CharFont |
getCharFont(TeXFont tf)
This method will only be called if isCharSymbol returns true. |
int |
getLeftType()
|
int |
getRightType()
|
int |
getType()
Changes the type of the atom |
boolean |
isCharSymbol()
|
boolean |
isKern()
|
void |
markAsTextSymbol()
|
void |
setPreviousAtom(Dummy prev)
|
void |
setType(int t)
Changes the type of the atom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dummy(Atom a)
a
- an atomMethod Detail |
---|
public void setType(int t)
t
- the new typepublic int getType()
t
- the new typepublic int getLeftType()
public int getRightType()
public boolean isCharSymbol()
public CharFont getCharFont(TeXFont tf)
public void changeAtom(FixedCharAtom a)
a
- the ligature atompublic Box createBox(TeXEnvironment rs)
public void markAsTextSymbol()
public boolean isKern()
public void setPreviousAtom(Dummy prev)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |