jaxe.equations.element
Class MathIdentifier

java.lang.Object
  extended by jaxe.equations.element.MathElement
      extended by jaxe.equations.element.MathText
          extended by jaxe.equations.element.MathIdentifier

public class MathIdentifier
extends MathText

This class presents a mathematical idenifier, like "x"

Version:
%I%, %G%
Author:
Stephan Michels, Marco Sielaff

Field Summary
static java.lang.String ELEMENT
          The XML element from this class
 
Fields inherited from class jaxe.equations.element.MathElement
FO_URI, SVG_URI, URI
 
Constructor Summary
MathIdentifier()
           
 
Method Summary
 int getWidth(boolean dynamicParts)
          Return the current width of this element
 void paint(java.awt.Graphics g, int posX, int posY)
          Paints this element
 
Methods inherited from class jaxe.equations.element.MathText
getAscentHeight, getDescentHeight, getHeight
 
Methods inherited from class jaxe.equations.element.MathElement
addMathElement, addText, debug, getFont, getFontMetrics, getFontSize, getMathBase, getMathElement, getMathElementCount, getMiddleShift, getParent, getSymbolFont, getSymbolFontMetrics, getSymbolGlyphVector, getText, setFontSize, setMathBase, setMathElementAt, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT

public static final java.lang.String ELEMENT
The XML element from this class

See Also:
Constant Field Values
Constructor Detail

MathIdentifier

public MathIdentifier()
Method Detail

paint

public void paint(java.awt.Graphics g,
                  int posX,
                  int posY)
Paints this element

Overrides:
paint in class MathText
Parameters:
g - The graphics context to use for painting
posX - The first left position for painting
posY - The position of the baseline

getWidth

public int getWidth(boolean dynamicParts)
Description copied from class: MathText
Return the current width of this element

Overrides:
getWidth in class MathText
Parameters:
dynamicParts - Should be true, if the calculation consider the elements, which has not fixed sizes
Returns:
Width of this element