java.lang.Cloneable
AccentedAtom
, BigDelimiterAtom
, BigOperatorAtom
, BoldAtom
, BreakMarkAtom
, CedillaAtom
, CharSymbol
, ColorAtom
, CumulativeScriptsAtom
, DdotsAtom
, DynamicAtom
, EmptyAtom
, FBoxAtom
, FcscoreAtom
, FencedAtom
, FractionAtom
, GeoGebraLogoAtom
, GraphicsAtom
, HlineAtom
, IddotsAtom
, IJAtom
, ItAtom
, JavaFontRenderingAtom
, LapedAtom
, LaTeXAtom
, LCaronAtom
, MathAtom
, MatrixAtom
, MiddleAtom
, MulticolumnAtom
, MultlineAtom
, NthRoot
, OgonekAtom
, OverlinedAtom
, OverUnderDelimiter
, PhantomAtom
, RaiseAtom
, ReflectAtom
, ResizeAtom
, RomanAtom
, RotateAtom
, RowAtom
, RuleAtom
, ScaleAtom
, ScriptsAtom
, SmallCapAtom
, SmashedAtom
, SpaceAtom
, SsAtom
, StrikeThroughAtom
, StyleAtom
, tcaronAtom
, TextCircledAtom
, TextStyleAtom
, TStrokeAtom
, TtAtom
, TypedAtom
, UnderOverArrowAtom
, UnderOverAtom
, UnderscoreAtom
, VCenteredAtom
, VdotsAtom
, VlineAtom
, VRowAtom
, XArrowAtom
public abstract class Atom
extends java.lang.Object
implements java.lang.Cloneable
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).Modifier and Type | Field | Description |
---|---|---|
int |
alignment |
|
int |
type |
The type of the atom (default value: ordinary atom)
|
int |
type_limits |
Constructor | Description |
---|---|
Atom() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public int type
public int type_limits
public int alignment
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 settingspublic int getLeftType()
public int getRightType()
public Atom clone()
clone
in class java.lang.Object