Package org.scilab.forge.jlatexmath
Class ForeignTextBox
java.lang.Object
org.scilab.forge.jlatexmath.Box
org.scilab.forge.jlatexmath.ForeignTextBox
The box of a
ForeignTextAtom: its text, drawn by the canvas.-
Field Summary
Fields inherited from class org.scilab.forge.jlatexmath.Box
background, children, DEBUG, depth, elderParent, foreground, height, markForDEBUG, parent, shift, type, width -
Constructor Summary
ConstructorsConstructorDescriptionForeignTextBox(String text, float width, float height, float depth, float fontSize) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(TeXGraphics g2, float x, float y) Paints this box at the given coordinates using the given graphics context.intGet the id of the font that will be used the last when this box will be painted.
-
Constructor Details
-
ForeignTextBox
- Parameters:
fontSize- the font size, in the units of the box (the size of 1 em)
-
-
Method Details
-
draw
Description copied from class:BoxPaints this box at the given coordinates using the given graphics context. -
getLastFontId
public int getLastFontId()Description copied from class:BoxGet the id of the font that will be used the last when this box will be painted.- Specified by:
getLastFontIdin classBox- Returns:
- the id of the last font that will be used.
-