java.lang.Object
jaxe.equations.element.MathElement
jaxe.equations.element.MathSubSup
- public class MathSubSup
- extends MathElement
This class arange a element lower, and a other
elements upper to an element
- Version:
- %I%, %G%
|
Method Summary |
void |
addMathElement(MathElement child)
Add a math element as a child |
int |
getAscentHeight(boolean dynamicParts)
Return the current height of the upper part
of this component from the baseline |
int |
getDescentHeight(boolean dynamicParts)
Return the current height of the lower part
of this component from the baseline |
int |
getHeight(boolean dynamicParts)
Return the current height of this element |
int |
getWidth(boolean dynamicParts)
Return the current width of this element |
void |
paint(java.awt.Graphics g,
int posX,
int posY)
Paints this element |
void |
setFontSize(int fontsize)
Sets the font size for this component |
| Methods inherited from class jaxe.equations.element.MathElement |
addText, debug, getFont, getFontMetrics, getFontSize, getMathBase, getMathElement, getMathElementCount, getMiddleShift, getParent, getRealHeight, getSymbolFont, getSymbolFontMetrics, getSymbolGlyphVector, getText, setMathBase, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final java.lang.String ELEMENT
- The XML element from this class
- See Also:
- Constant Field Values
MathSubSup
public MathSubSup()
addMathElement
public void addMathElement(MathElement child)
- Add a math element as a child
- Overrides:
addMathElement in class MathElement
setFontSize
public void setFontSize(int fontsize)
- Sets the font size for this component
- Overrides:
setFontSize in class MathElement
paint
public void paint(java.awt.Graphics g,
int posX,
int posY)
- Paints this element
- Overrides:
paint in class MathElement
getWidth
public int getWidth(boolean dynamicParts)
- Return the current width of this element
- Overrides:
getWidth in class MathElement
getHeight
public int getHeight(boolean dynamicParts)
- Return the current height of this element
- Overrides:
getHeight in class MathElement
getAscentHeight
public int getAscentHeight(boolean dynamicParts)
- Return the current height of the upper part
of this component from the baseline
- Overrides:
getAscentHeight in class MathElement
getDescentHeight
public int getDescentHeight(boolean dynamicParts)
- Return the current height of the lower part
of this component from the baseline
- Overrides:
getDescentHeight in class MathElement