|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.jlatexmath.Atom
public abstract class Atom
An abstract superclass for all logical mathematical constructions that can be
a part of a TeXFormula. All subclasses must implement the abstract
createBox(TeXEnvironment)
method that transforms this logical unit into
a concrete box (that can be painted). They also must define their type, used for
determining what glue to use between adjacent atoms in a "row construction". That can
be one single type by asigning one of the type constants to the type
field.
But they can also be defined as having two types: a "left type" and a "right type".
This can be done by implementing the methods getLeftType()
and
getRightType()
.
The left type will then be used for determining the glue between this atom and the
previous one (in a row, if any) and the right type for the glue between this atom and
the following one (in a row, if any).
Field Summary | |
---|---|
int |
alignment
|
int |
type
The type of the atom (default value: ordinary atom) |
int |
type_limits
|
Constructor Summary | |
---|---|
Atom()
|
Method Summary | |
---|---|
Atom |
clone()
|
abstract Box |
createBox(TeXEnvironment env)
Convert this atom into a Box , using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ... |
int |
getLeftType()
Get the type of the leftermost child atom. |
int |
getRightType()
Get the type of the rightermost child atom. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int type
public int type_limits
public int alignment
Constructor Detail |
---|
public Atom()
Method Detail |
---|
public abstract Box createBox(TeXEnvironment env)
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...
env
- the current environment settings
public int getLeftType()
public int getRightType()
public Atom clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |