|
||||||||||
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.script.AbstractScriptElement net.sourceforge.jeuclid.elements.presentation.script.Mmultiscripts
public final class Mmultiscripts
Prescripts and Tensor Indices.
Nested Class Summary |
---|
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.presentation.script.AbstractScriptElement |
---|
ATTR_SUBSCRIPTSHIFT, ATTR_SUPERSCRIPTSHIFT |
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 | |
---|---|
Mmultiscripts(String qname,
AbstractDocument odoc)
Default constructor. |
Method Summary | |
---|---|
void |
changeHook()
Override this function to get notified whenever the contents of this element have changed. |
JEuclidElement |
getBase()
A MathMLElement representing the base of the script. |
int |
getNumprescriptcolumns()
The number of script/subscript columns preceding (to the left of) the base. |
int |
getNumscriptcolumns()
The number of script/subscript columns following (to the right of) the base. |
MathMLNodeList |
getPrescripts()
A NodeList representing the prescripts of the script, which appear in the order described by the expression (prescript presuperscript)*. |
MathMLElement |
getPreSubScript(int colIndex)
A convenience method to retrieve pre-subscript children of the element, referenced by column index . |
MathMLElement |
getPreSuperScript(int colIndex)
A convenience method to retrieve pre-superscript children of the element, referenced by column index . |
MathMLNodeList |
getScripts()
A MathMLNodeList representing the scripts of the script, which appear in the order described by the expression (script superscript)*. |
MathMLElement |
getSubScript(int colIndex)
A convenience method to retrieve subscript children of the element, referenced by column index. |
MathMLElement |
getSuperScript(int colIndex)
A convenience method to retrieve superscript children of the element, referenced by column index . |
boolean |
hasChildPostscripts(JEuclidElement child,
LayoutContext context)
returns true is the child has postscripts attached to it. |
boolean |
hasChildPrescripts(JEuclidElement child)
returns true is the child has prescripts attached to it. |
MathMLElement |
insertPreSubScriptBefore(int colIndex,
MathMLElement newScript)
A convenience method to insert a pre-subscript before the position referenced by column index. |
MathMLElement |
insertPreSuperScriptBefore(int colIndex,
MathMLElement newScript)
A convenience method to insert a pre-superscript before the position referenced by column index. |
MathMLElement |
insertSubScriptBefore(int colIndex,
MathMLElement newScript)
A convenience method to insert a subscript before the position referenced by column index. |
MathMLElement |
insertSuperScriptBefore(int colIndex,
MathMLElement newScript)
A convenience method to insert a superscript before the position referenced by column index. |
protected void |
layoutStageInvariant(LayoutView view,
LayoutInfo info,
LayoutStage stage,
LayoutContext context)
Layout for elements which are stage independent. |
protected Node |
newNode()
|
void |
setBase(MathMLElement base)
setter for the base attribute. |
MathMLElement |
setPreSubScriptAt(int colIndex,
MathMLElement newScript)
A convenience method to set the pre-subscript child at the position referenced by colIndex. |
MathMLElement |
setPreSuperScriptAt(int colIndex,
MathMLElement newScript)
A convenience method to set the pre-superscript child at the position referenced by colIndex. |
MathMLElement |
setSubScriptAt(int colIndex,
MathMLElement newScript)
A convenience method to set the subscript child at the position referenced by colIndex. |
MathMLElement |
setSuperScriptAt(int colIndex,
MathMLElement newScript)
A convenience method to set the superscript child at the position referenced by colIndex. |
Methods inherited from class net.sourceforge.jeuclid.elements.presentation.script.AbstractScriptElement |
---|
getChildLayoutContext, getSubscriptshift, getSuperscriptshift, setSubscriptshift, setSuperscriptshift |
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.MathMLMultiScriptsElement |
---|
getSubscriptshift, getSuperscriptshift, setSubscriptshift, setSuperscriptshift |
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 Mmultiscripts(String qname, AbstractDocument odoc)
qname
- Qualified name.odoc
- Owner Document.Method Detail |
---|
protected Node newNode()
newNode
in class GenericElementNS
public void changeHook()
changeHook
in class AbstractJEuclidElement
protected 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.public boolean hasChildPrescripts(JEuclidElement child)
hasChildPrescripts
in interface JEuclidElement
hasChildPrescripts
in class AbstractJEuclidElement
child
- child to test
public boolean hasChildPostscripts(JEuclidElement child, LayoutContext context)
hasChildPostscripts
in interface JEuclidElement
hasChildPostscripts
in class AbstractJEuclidElement
child
- child to testcontext
- current layout context.
public JEuclidElement getBase()
getBase
in interface MathMLMultiScriptsElement
public void setBase(MathMLElement base)
setBase
in interface MathMLMultiScriptsElement
base
- new value for base.MathMLMultiScriptsElement.getBase()
public int getNumprescriptcolumns()
getNumprescriptcolumns
in interface MathMLMultiScriptsElement
public int getNumscriptcolumns()
getNumscriptcolumns
in interface MathMLMultiScriptsElement
public MathMLElement getPreSubScript(int colIndex)
getPreSubScript
in interface MathMLMultiScriptsElement
colIndex
- Column index of prescript (where 1 represents the leftmost
prescript column).
public MathMLElement getPreSuperScript(int colIndex)
getPreSuperScript
in interface MathMLMultiScriptsElement
colIndex
- Column index of pre-superscript (where 1 represents the
leftmost prescript column).
public MathMLNodeList getPrescripts()
getPrescripts
in interface MathMLMultiScriptsElement
public MathMLNodeList getScripts()
getScripts
in interface MathMLMultiScriptsElement
public MathMLElement getSubScript(int colIndex)
getSubScript
in interface MathMLMultiScriptsElement
colIndex
- Column index of script (where 1 represents the leftmost
script column, the first to the right of the base).
public MathMLElement getSuperScript(int colIndex)
getSuperScript
in interface MathMLMultiScriptsElement
colIndex
- Column index of script (where 1 represents the leftmost
script column, the first to the right of the base)
public MathMLElement insertPreSubScriptBefore(int colIndex, MathMLElement newScript)
insertPreSubScriptBefore
in interface MathMLMultiScriptsElement
colIndex
- Column index of pre-subscript (where 1 represents the
leftmost prescript column).newScript
- A MathMLElement representing the element to be inserted as a
pre-subscript.
public MathMLElement insertPreSuperScriptBefore(int colIndex, MathMLElement newScript)
insertPreSuperScriptBefore
in interface MathMLMultiScriptsElement
colIndex
- Column index of pre-superscript (where 1 represents the
leftmost prescript column).newScript
- A MathMLElement representing the element to be inserted as a
pre-superscript.
public MathMLElement insertSubScriptBefore(int colIndex, MathMLElement newScript)
insertSubScriptBefore
in interface MathMLMultiScriptsElement
colIndex
- Column index of subscript, where 1 represents the leftmost
script column (the first to the right of the base).newScript
- A MathMLElement representing the element to be inserted as a
subscript.
public MathMLElement insertSuperScriptBefore(int colIndex, MathMLElement newScript)
insertSuperScriptBefore
in interface MathMLMultiScriptsElement
colIndex
- Column index of superscript, where 1 represents the leftmost
script column (the first to the right of the base).newScript
- A MathMLElement representing the element to be inserted as a
superscript.
public MathMLElement setPreSubScriptAt(int colIndex, MathMLElement newScript)
setPreSubScriptAt
in interface MathMLMultiScriptsElement
colIndex
- Column index of pre-subscript (where 1 represents the
leftmost prescript column).newScript
- MathMLElement representing the element that is to be set as
the colIndex-th pre-subscript child of this element.
public MathMLElement setPreSuperScriptAt(int colIndex, MathMLElement newScript)
setPreSuperScriptAt
in interface MathMLMultiScriptsElement
colIndex
- Column index of pre-superscript (where 1 represents the
leftmost prescript column).newScript
- MathMLElement representing the element that is to be set as
the colIndex-th pre-superscript child of this element.
public MathMLElement setSubScriptAt(int colIndex, MathMLElement newScript)
setSubScriptAt
in interface MathMLMultiScriptsElement
colIndex
- Column index of subscript, where 1 represents the leftmost
script column (the first to the right of the base).newScript
- MathMLElement representing the element that is to be set as
the colIndex-th subscript child of this element.
public MathMLElement setSuperScriptAt(int colIndex, MathMLElement newScript)
setSuperScriptAt
in interface MathMLMultiScriptsElement
colIndex
- Column index of superscript, where 1 represents the leftmost
script column (the first to the right of the base).newScript
- MathMLElement representing the element that is to be set as
the colIndex-th superscript child of this element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |