Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jaxe.equations.element
Class MathTable  view MathTable download MathTable.java

java.lang.Object
  extended byjaxe.equations.element.MathElement
      extended byjaxe.equations.element.MathTable

public class MathTable
extends MathElement

This class presents a table

Version:
%I%, %G%

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
MathTable()
           
 
Method Summary
 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
private  int getMaxColumnCount()
          Returns the maximal count of columns
private  int getMaxColumnWidth(int column)
          Returns the maximal width of a column in this table
private  int getMaxRowAscentHeight(int row)
          Returns the maximal ascent height of a row in this table
private  int getMaxRowDescentHeight(int row)
          Returns the maximal descent height of a row in this table
 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.MathElement
addMathElement, addText, debug, getFont, getFontMetrics, getFontSize, getMathBase, getMathElement, getMathElementCount, getMiddleShift, getParent, getRealHeight, getSymbolFont, getSymbolFontMetrics, getSymbolGlyphVector, getText, setFontSize, setMathBase, 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

MathTable

public MathTable()
Method Detail

paint

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

Overrides:
paint in class MathElement

getMaxRowAscentHeight

private int getMaxRowAscentHeight(int row)
Returns the maximal ascent height of a row in this table


getMaxRowDescentHeight

private int getMaxRowDescentHeight(int row)
Returns the maximal descent height of a row in this table


getMaxColumnWidth

private int getMaxColumnWidth(int column)
Returns the maximal width of a column in this table


getMaxColumnCount

private int getMaxColumnCount()
Returns the maximal count of columns


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