|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.dom.AbstractNode org.apache.batik.dom.AbstractParentNode org.apache.batik.dom.AbstractParentChildNode org.apache.batik.dom.AbstractElement org.apache.batik.dom.AbstractElementNS org.apache.batik.dom.GenericElementNS net.sourceforge.jeuclid.elements.AbstractJEuclidElement net.sourceforge.jeuclid.elements.presentation.AbstractContainer net.sourceforge.jeuclid.elements.presentation.table.AbstractTableElement net.sourceforge.jeuclid.elements.presentation.table.Mtable
public final class Mtable
This class presents a table.
Nested Class Summary | |
---|---|
static class |
Mtable.LineType
Class for line types. |
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement |
---|
AbstractElement.ElementTypeInfo, AbstractElement.Entry, AbstractElement.NamedNodeHashMap |
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary | |
---|---|
static String |
ELEMENT
The XML element from this class. |
Fields inherited from class net.sourceforge.jeuclid.elements.AbstractJEuclidElement |
---|
ATTR_CLASS, ATTR_DEPRECATED_BACKGROUND, ATTR_DEPRECATED_COLOR, ATTR_DEPRECATED_FONTFAMILY, ATTR_DEPRECATED_FONTSIZE, ATTR_DEPRECATED_FONTSTYLE, ATTR_DEPRECATED_FONTWEIGHT, ATTR_HREF, ATTR_ID, ATTR_MATHBACKGROUND, ATTR_MATHCOLOR, ATTR_MATHSIZE, ATTR_MATHVARIANT, ATTR_STYLE, ATTR_XREF, TRIVIAL_SPACE_MAX, URI |
Fields inherited from class org.apache.batik.dom.GenericElementNS |
---|
nodeName, readonly |
Fields inherited from class org.apache.batik.dom.AbstractElementNS |
---|
namespaceURI |
Fields inherited from class org.apache.batik.dom.AbstractElement |
---|
attributes, typeInfo |
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode |
---|
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.batik.dom.AbstractParentNode |
---|
childNodes |
Fields inherited from class org.apache.batik.dom.AbstractNode |
---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
Constructor Summary | |
---|---|
Mtable(String qname,
AbstractDocument odoc)
Default constructor. |
Method Summary | |
---|---|
void |
deleteRow(int index)
|
void |
deleteRow(long index)
A convenience method to delete the row of the table at the specified index. |
String |
getAlign()
A string representing the vertical alignment of the table with the adjacent text. |
String |
getAlignmentscope()
A string consisting of the values true or false indicating, for each column, whether it can be used as an alignment scope. |
LayoutContext |
getChildLayoutContext(int childNum,
LayoutContext context)
get the layout context for the given child. |
String |
getColumnlines()
A string specifying whether and what kind of lines should be added between each column. |
String |
getColumnspacing()
A string consisting of a space-separated sequence of specifiers of the form number h-unit representing the space to be added between columns. |
String |
getColumnwidth()
A string consisting of a space-separated sequence of specifiers, each of which can have one of the following forms: auto, number h-unit, namedspace, or fit. |
String |
getDisplaystyle()
A string with the values true or false. |
String |
getEqualcolumns()
A string with the values true or false. |
String |
getEqualrows()
A string with the values true or false. |
String |
getFrame()
A string specifying a frame around the table. |
String |
getFramespacing()
A string of the form number h-unit number v-unit specifying the spacing between table and its frame. |
String |
getMinlabelspacing()
A string of the form number h-unit, specifying the minimum space between a label and the adjacent entry in the labeled row. |
MathMLTableRowElement |
getRow(int index)
|
MathMLTableRowElement |
getRow(long index)
A convenience method to retrieve the index-th row from the table. |
String |
getRowlines()
A string specifying whether and what kind of lines should be added between each row. |
MathMLNodeList |
getRows()
A MathMLNodeList consisting of MathMLTableRowElements and MathMLLabeledRowElements representing the rows of the table. |
String |
getRowspacing()
A string consisting of a space-separated sequence of specifiers of the form number v-unit representing the space to be added between rows. |
String |
getSide()
A string with the values left, right, leftoverlap, or rightoverlap. |
String |
getWidth()
A string that is either of the form number h-unit or is the string auto. |
MathMLLabeledRowElement |
insertEmptyLabeledRow(int index)
|
MathMLLabeledRowElement |
insertEmptyLabeledRow(long index)
A convenience method to insert a new (empty) labeled row (mlabeledtr) in the table before the current index-th row. |
MathMLTableRowElement |
insertEmptyRow(int index)
|
MathMLTableRowElement |
insertEmptyRow(long index)
A convenience method to insert a new (empty) row (mtr) in the table before the current index-th row. |
MathMLTableRowElement |
insertRow(int index,
MathMLTableRowElement newRow)
|
MathMLTableRowElement |
insertRow(long index,
MathMLTableRowElement newRow)
A convenience method to insert the new row or labeled row (mtr or mlabeledtr) represented by newRow in the table before the current index-th row. |
void |
layoutStageInvariant(LayoutView view,
LayoutInfo info,
LayoutStage stage,
LayoutContext context)
Layout for elements which are stage independent. |
protected Node |
newNode()
|
MathMLTableRowElement |
removeRow(int index)
|
MathMLTableRowElement |
removeRow(long index)
A convenience method to delete the row of the table at the specified index and return it to the caller. |
void |
setAlign(String align)
setter for the align attribute. |
void |
setAlignmentscope(String alignmentscope)
setter for the alignmentscope attribute. |
void |
setColumnlines(String columnlines)
setter for the columnlines attribute. |
void |
setColumnspacing(String columnspacing)
setter for the columnspacing attribute. |
void |
setColumnwidth(String columnwidth)
setter for the columnwidth attribute. |
void |
setDisplaystyle(String displaystyle)
setter for the displaystyle attribute. |
void |
setEqualcolumns(String equalcolumns)
setter for the equalcolumns attribute. |
void |
setEqualrows(String equalrows)
setter for the equalrows attribute. |
void |
setFrame(String frame)
setter for the frame attribute. |
void |
setFramespacing(String framespacing)
setter for the framespacing attribute. |
void |
setMinlabelspacing(String minlabelspacing)
setter for the minlabelspacing attribute. |
MathMLTableRowElement |
setRow(int index,
MathMLTableRowElement newRow)
|
MathMLTableRowElement |
setRow(long index,
MathMLTableRowElement newRow)
A method to set the value of the row in the table at the specified index to the mtr or mlabeledtr represented by newRow. |
void |
setRowlines(String rowlines)
setter for the rowlines attribute. |
void |
setRowspacing(String rowspacing)
setter for the rowspacing attribute. |
void |
setSide(String side)
setter for the side attribute. |
void |
setWidth(String width)
setter for the width attribute. |
Methods inherited from class net.sourceforge.jeuclid.elements.presentation.table.AbstractTableElement |
---|
getColumnalign, getGroupalign, getRowalign, setColumnalign, setGroupalign, setRowalign |
Methods inherited from class net.sourceforge.jeuclid.elements.presentation.AbstractContainer |
---|
deleteArgument, deleteDeclaration, getArgument, getArguments, getDeclaration, getDeclarations, getNArguments, insertArgument, insertDeclaration, removeArgument, removeDeclaration, setArgument, setDeclaration |
Methods inherited from class org.apache.batik.dom.GenericElementNS |
---|
copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, setNodeName, setReadonly |
Methods inherited from class org.apache.batik.dom.AbstractElementNS |
---|
getNamespaceURI |
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
---|
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.mathml.MathMLTableElement |
---|
getColumnalign, getGroupalign, getRowalign, setColumnalign, setGroupalign, setRowalign |
Methods inherited from interface org.w3c.dom.mathml.MathMLElement |
---|
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXref |
Methods inherited from interface org.w3c.dom.Element |
---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Field Detail |
---|
public static final String ELEMENT
Constructor Detail |
---|
public Mtable(String qname, AbstractDocument odoc)
qname
- Qualified name.odoc
- Owner Document.Method Detail |
---|
protected Node newNode()
newNode
in class GenericElementNS
public LayoutContext getChildLayoutContext(int childNum, LayoutContext context)
getChildLayoutContext
in interface JEuclidNode
getChildLayoutContext
in class AbstractJEuclidElement
childNum
- 0-based number of the child to check.context
- external context.
public String getRowlines()
getRowlines
in interface MathMLTableElement
public void setRowlines(String rowlines)
setRowlines
in interface MathMLTableElement
rowlines
- new value for rowlines.MathMLTableElement.getRowlines()
public String getColumnlines()
getColumnlines
in interface MathMLTableElement
public void setColumnlines(String columnlines)
setColumnlines
in interface MathMLTableElement
columnlines
- new value for columnlines.MathMLTableElement.getColumnlines()
public String getColumnwidth()
getColumnwidth
in interface MathMLTableElement
public void setColumnwidth(String columnwidth)
setColumnwidth
in interface MathMLTableElement
columnwidth
- new value for columnwidth.MathMLTableElement.getColumnwidth()
public String getWidth()
getWidth
in interface MathMLTableElement
public void setWidth(String width)
setWidth
in interface MathMLTableElement
width
- new value for width.MathMLTableElement.getWidth()
public String getAlign()
getAlign
in interface MathMLTableElement
public void setAlign(String align)
setAlign
in interface MathMLTableElement
align
- new value for align.MathMLTableElement.getAlign()
public String getAlignmentscope()
getAlignmentscope
in interface MathMLTableElement
public void setAlignmentscope(String alignmentscope)
setAlignmentscope
in interface MathMLTableElement
alignmentscope
- new value for alignmentscope.MathMLTableElement.getAlignmentscope()
public String getRowspacing()
getRowspacing
in interface MathMLTableElement
public void setRowspacing(String rowspacing)
setRowspacing
in interface MathMLTableElement
rowspacing
- new value for rowspacing.MathMLTableElement.getRowspacing()
public String getColumnspacing()
getColumnspacing
in interface MathMLTableElement
public void setColumnspacing(String columnspacing)
setColumnspacing
in interface MathMLTableElement
columnspacing
- new value for columnspacing.MathMLTableElement.getColumnspacing()
public String getFrame()
getFrame
in interface MathMLTableElement
public void setFrame(String frame)
setFrame
in interface MathMLTableElement
frame
- new value for frame.MathMLTableElement.getFrame()
public String getFramespacing()
getFramespacing
in interface MathMLTableElement
public void setFramespacing(String framespacing)
setFramespacing
in interface MathMLTableElement
framespacing
- new value for framespacing.MathMLTableElement.getFramespacing()
public String getEqualrows()
getEqualrows
in interface MathMLTableElement
public void setEqualrows(String equalrows)
setEqualrows
in interface MathMLTableElement
equalrows
- new value for equalrows.MathMLTableElement.getEqualrows()
public String getEqualcolumns()
getEqualcolumns
in interface MathMLTableElement
public void setEqualcolumns(String equalcolumns)
setEqualcolumns
in interface MathMLTableElement
equalcolumns
- new value for equalcolumns.MathMLTableElement.getEqualcolumns()
public String getDisplaystyle()
getDisplaystyle
in interface MathMLTableElement
public void setDisplaystyle(String displaystyle)
setDisplaystyle
in interface MathMLTableElement
displaystyle
- new value for displaystyle.MathMLTableElement.getDisplaystyle()
public String getSide()
getSide
in interface MathMLTableElement
public void setSide(String side)
setSide
in interface MathMLTableElement
side
- new value for side.MathMLTableElement.getSide()
public String getMinlabelspacing()
getMinlabelspacing
in interface MathMLTableElement
public void setMinlabelspacing(String minlabelspacing)
setMinlabelspacing
in interface MathMLTableElement
minlabelspacing
- new value for minlabelspacing.MathMLTableElement.getMinlabelspacing()
public MathMLNodeList getRows()
getRows
in interface MathMLTableElement
public MathMLTableRowElement insertEmptyRow(int index)
public MathMLLabeledRowElement insertEmptyLabeledRow(int index)
public MathMLTableRowElement getRow(int index)
public MathMLTableRowElement insertRow(int index, MathMLTableRowElement newRow)
public MathMLTableRowElement setRow(int index, MathMLTableRowElement newRow)
public void deleteRow(int index)
public MathMLTableRowElement removeRow(int index)
public void deleteRow(long index)
deleteRow
in interface MathMLTableElement
index
- Index of row to be deleted, where 0 represents the first
row.public MathMLTableRowElement getRow(long index)
getRow
in interface MathMLTableElement
index
- Index of the row to be returned, where 0 represents the
first row. Negative numbers are used to count backwards from
the last row.
public MathMLLabeledRowElement insertEmptyLabeledRow(long index)
insertEmptyLabeledRow
in interface MathMLTableElement
index
- Position before which to insert the new row, where 0
represents the first row. Negative numbers are used to count
backwards from the last row.
public MathMLTableRowElement insertEmptyRow(long index)
insertEmptyRow
in interface MathMLTableElement
index
- Position before which to insert the new row, where 0
represents the first row. Negative numbers are used to count
backwards from the last row.
public MathMLTableRowElement insertRow(long index, MathMLTableRowElement newRow)
insertRow
in interface MathMLTableElement
index
- Index before which to insert newRow, where 0 represents the
first row. Negative numbers are used to count backwards from
the current last row.newRow
- A MathMLTableRowElement or MathMLLabeledRowElement
representing the row to be inserted.
public MathMLTableRowElement removeRow(long index)
removeRow
in interface MathMLTableElement
index
- Index of row to be removed, where 0 represents the first
row.
public MathMLTableRowElement setRow(long index, MathMLTableRowElement newRow)
setRow
in interface MathMLTableElement
index
- Index of the row to be set to newRow, where 0 represents the
first row. Negative numbers are used to count backwards from
the last row.newRow
- A MathMLTableRowElement representing the row that is to be
the new index-th row.
public void layoutStageInvariant(LayoutView view, LayoutInfo info, LayoutStage stage, LayoutContext context)
This function will layout an element which is layed out the same no matter what stage it is in. This is the case for most elements.
Notable exceptions are mo and tables.
layoutStageInvariant
in class AbstractJEuclidElement
view
- View Object for this layout.info
- An info object which will be filled during layout.stage
- current layout stage.context
- current LayoutContext.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |