Package org.scilab.forge.jlatexmath
Class CharAtom
- java.lang.Object
-
- org.scilab.forge.jlatexmath.Atom
-
- org.scilab.forge.jlatexmath.CharSymbol
-
- org.scilab.forge.jlatexmath.CharAtom
-
- All Implemented Interfaces:
java.lang.Cloneable
public class CharAtom extends CharSymbol
An atom representing exactly one alphanumeric character and the text style in which it should be drawn.
-
-
Field Summary
-
Fields inherited from class org.scilab.forge.jlatexmath.Atom
alignment, type, type_limits
-
-
Constructor Summary
Constructors Constructor Description CharAtom(char c, java.lang.String textStyle)Creates a CharAtom that will represent the given character in the given text style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoxcreateBox(TeXEnvironment env)Convert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...chargetCharacter()CharFontgetCharFont(TeXFont tf)Get the CharFont-object that uniquely identifies the character that is represented by this atom.java.lang.StringtoString()-
Methods inherited from class org.scilab.forge.jlatexmath.CharSymbol
isMarkedAsTextSymbol, markAsTextSymbol, removeMark
-
Methods inherited from class org.scilab.forge.jlatexmath.Atom
clone, getLeftType, getRightType
-
-
-
-
Constructor Detail
-
CharAtom
public CharAtom(char c, java.lang.String textStyle)Creates a CharAtom that will represent the given character in the given text style. Null for the text style means the default text style.- Parameters:
c- the alphanumeric charactertextStyle- the text style in which the character should be drawn
-
-
Method Detail
-
createBox
public Box createBox(TeXEnvironment env)
Description copied from class:AtomConvert this atom into aBox, using properties set by "parent" atoms, like the TeX style, the last used font, color settings, ...
-
getCharacter
public char getCharacter()
-
getCharFont
public CharFont getCharFont(TeXFont tf)
Description copied from class:CharSymbolGet the CharFont-object that uniquely identifies the character that is represented by this atom.- Specified by:
getCharFontin classCharSymbol- Parameters:
tf- the TeXFont containing all font related information- Returns:
- a CharFont
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-