Class Mstyle
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.general.Mstyle
- All Implemented Interfaces:
Serializable,JEuclidElement,JEuclidNode,LayoutableNode,org.apache.batik.dom.events.NodeEventTarget,org.apache.batik.dom.ExtendedNode,org.apache.batik.dom.xbl.NodeXBL,org.apache.batik.dom.xbl.XBLManagerData,org.apache.batik.w3c.dom.ElementTraversal,Element,EventTarget,MathMLContainer,MathMLElement,MathMLPresentationContainer,MathMLPresentationElement,MathMLStyleElement,Node
This class arrange an element lower to an other element.
- Version:
- $Revision: bc1d5fde7b73 $
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement
org.apache.batik.dom.AbstractElement.ElementTypeInfo, org.apache.batik.dom.AbstractElement.Entry, org.apache.batik.dom.AbstractElement.NamedNodeHashMapNested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentNode.ChildNodes, org.apache.batik.dom.AbstractParentNode.ElementsByTagName, org.apache.batik.dom.AbstractParentNode.ElementsByTagNameNS -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute for displaystyle.static final StringAttribute for scriptlevel.static final StringAttribute for scriptminsize.static final StringAttribute for scriptsizemultiplier.static final StringThe 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, URIFields inherited from class org.apache.batik.dom.GenericElementNS
nodeName, readonlyFields inherited from class org.apache.batik.dom.AbstractElementNS
namespaceURIFields inherited from class org.apache.batik.dom.AbstractElement
attributes, typeInfoFields inherited from class org.apache.batik.dom.AbstractParentChildNode
nextSibling, parentNode, previousSiblingFields inherited from class org.apache.batik.dom.AbstractParentNode
childNodesFields 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, userDataHandlersFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA string representation of a color or the string transparent; represents the background attribute for the mstyle element, if specified.getChildLayoutContext(int childNum, LayoutContext context) get the layout context for the given child.getColor()Either true or false; a string representing the displaystyle attribute for the mstyle element, if specified.A string of the form number h-unit; represents the mediummathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativemediummathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativethickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativethinmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativeverythickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativeverythinmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativeveryverythickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the negativeveryverythinmathspace attribute for the mstyle element, if specified.A string of the form +/- unsigned integer; represents the scriptlevel attribute for the mstyle element, if specified.A string of the form number v-unit; represents the scriptminsize attribute for the mstyle element, if specified.A string of the form number; represents the scriptsizemultiplier attribute for the mstyle element, if specified.A string of the form number h-unit; represents the thickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the thinmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the verythickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the verythinmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the veryverythickmathspace attribute for the mstyle element, if specified.A string of the form number h-unit; represents the veryverythinmathspace attribute for the mstyle element, if specified.protected NodenewNode()voidsetBackground(String background) setter for the background attribute.voidvoidsetDisplaystyle(String displaystyle) setter for the displaystyle attribute.voidsetMediummathspace(String mediummathspace) setter for the mediummathspace attribute.voidsetNegativemediummathspace(String negativemediummathspace) setter for the negativemediummathspace attribute.voidsetNegativethickmathspace(String negativethickmathspace) setter for the negativethickmathspace attribute.voidsetNegativethinmathspace(String negativethinmathspace) setter for the negativethinmathspace attribute.voidsetNegativeverythickmathspace(String negativeverythickmathspace) setter for the negativeverythickmathspace attribute.voidsetNegativeverythinmathspace(String negativeverythinmathspace) setter for the negativeverythinmathspace attribute.voidsetNegativeveryverythickmathspace(String negativeveryverythickmathspace) setter for the negativeveryverythickmathspace attribute.voidsetNegativeveryverythinmathspace(String negativeveryverythinmathspace) setter for the negativeveryverythinmathspace attribute.voidsetScriptlevel(String scriptlevel) setter for the scriptlevel attribute.voidsetScriptminsize(String scriptminsize) setter for the scriptminsize attribute.voidsetScriptsizemultiplier(String scriptsizemultiplier) setter for the scriptsizemultiplier attribute.voidsetThickmathspace(String thickmathspace) setter for the thickmathspace attribute.voidsetThinmathspace(String thinmathspace) setter for the thinmathspace attribute.voidsetVerythickmathspace(String verythickmathspace) setter for the verythickmathspace attribute.voidsetVerythinmathspace(String verythinmathspace) setter for the verythinmathspace attribute.voidsetVeryverythickmathspace(String veryverythickmathspace) setter for the veryverythickmathspace attribute.voidsetVeryverythinmathspace(String veryverythinmathspace) setter for the veryverythinmathspace attribute.Methods inherited from class net.sourceforge.jeuclid.elements.presentation.AbstractContainer
deleteArgument, deleteDeclaration, getArgument, getArguments, getDeclaration, getDeclarations, getNArguments, insertArgument, insertDeclaration, removeArgument, removeDeclaration, setArgument, setDeclarationMethods inherited from class net.sourceforge.jeuclid.elements.AbstractJEuclidElement
addMathElement, applyLocalAttributesToContext, changeHook, dispatchEvent, getChildrenToDraw, getChildrenToLayout, getClassName, getContents, getFont, getFontMetrics, getHref, getId, getIndexOfMathElement, getMathAttribute, getMathAttribute, getMathbackground, getMathcolor, getMathElement, getMathElementCount, getMathElementStyle, getMathsize, getMathvariant, getMathvariantAsVariant, getMiddleShift, getOwnerMathElement, getParent, getText, getXref, hasChildPostscripts, hasChildPrescripts, layoutStage1, layoutStage2, layoutStageInvariant, setClassName, setDefaultMathAttribute, setFakeParent, setHref, setId, setMathbackground, setMathcolor, setMathElement, setMathElementStyle, setMathsize, setMathvariant, setXrefMethods inherited from class org.apache.batik.dom.GenericElementNS
copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, setNodeName, setReadonlyMethods inherited from class org.apache.batik.dom.AbstractElementNS
getNamespaceURIMethods inherited from class org.apache.batik.dom.AbstractElement
attrAdded, attrModified, attrRemoved, checkChildType, createAttributes, fireDOMAttrModifiedEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getFirstElementChild, getIdAttribute, getLastElementChild, getNextElementSibling, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, nodeAdded, nodeToBeRemoved, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from class org.apache.batik.dom.AbstractParentChildNode
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSiblingMethods inherited from class org.apache.batik.dom.AbstractParentNode
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChildMethods inherited from class org.apache.batik.dom.AbstractNode
addEventListener, addEventListenerNS, cloneNode, compareDocumentPosition, compareNamedNodeMaps, compareStrings, createDOMException, fireDOMCharacterDataModifiedEvent, fireUserDataHandlers, getBaseURI, getBaseURI, getCascadedXMLBase, getCurrentDocument, getEventSupport, getFeature, getLocalName, getManagerData, getNodeValue, getOwnerDocument, getParentNodeEventTarget, getPrefix, getUserData, getXblBoundElement, getXblChildNodes, getXblDefinitions, getXblFirstChild, getXblFirstElementChild, getXblLastChild, getXblLastElementChild, getXblNextElementSibling, getXblNextSibling, getXblParentNode, getXblPreviousElementSibling, getXblPreviousSibling, getXblScopedChildNodes, getXblShadowTree, hasEventListenerNS, initializeEventSupport, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, removeEventListener, removeEventListenerNS, setManagerData, setNodeValue, setOwnerDocument, setPrefix, setSpecified, setTextContent, setUserData, willTriggerNSMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setIdAttributeNSMethods inherited from interface org.w3c.dom.mathml.MathMLContainer
deleteArgument, deleteDeclaration, getArgument, getArguments, getDeclaration, getDeclarations, getNArguments, insertArgument, insertDeclaration, removeArgument, removeDeclaration, setArgument, setDeclarationMethods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods 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 Details
-
ATTR_SCRIPTMINSIZE
Attribute for scriptminsize.- See Also:
-
ATTR_SCRIPTLEVEL
Attribute for scriptlevel.- See Also:
-
ATTR_SCRIPTSIZEMULTIPLIER
Attribute for scriptsizemultiplier.- See Also:
-
ATTR_DISPLAYSTYLE
Attribute for displaystyle.- See Also:
-
ELEMENT
The XML element from this class.- See Also:
-
-
Constructor Details
-
Mstyle
Default constructor. Sets MathML Namespace.- Parameters:
qname- Qualified name.odoc- Owner Document.
-
-
Method Details
-
newNode
- Overrides:
newNodein classorg.apache.batik.dom.GenericElementNS
-
getScriptlevel
Description copied from interface:MathMLStyleElementA string of the form +/- unsigned integer; represents the scriptlevel attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getScriptlevelin interfaceMathMLStyleElement- Returns:
- Script level
-
setScriptlevel
Description copied from interface:MathMLStyleElementsetter for the scriptlevel attribute.- Specified by:
setScriptlevelin interfaceMathMLStyleElement- Parameters:
scriptlevel- script level- See Also:
-
getScriptminsize
Description copied from interface:MathMLStyleElementA string of the form number v-unit; represents the scriptminsize attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getScriptminsizein interfaceMathMLStyleElement- Returns:
- Minimum of script size
-
setScriptminsize
Description copied from interface:MathMLStyleElementsetter for the scriptminsize attribute.- Specified by:
setScriptminsizein interfaceMathMLStyleElement- Parameters:
scriptminsize- Minimum of script size- See Also:
-
getChildLayoutContext
get the layout context for the given child.- Specified by:
getChildLayoutContextin interfaceJEuclidNode- Overrides:
getChildLayoutContextin classAbstractJEuclidElement- Parameters:
childNum- 0-based number of the child to check.context- external context.- Returns:
- layout context to use.
-
getBackground
A string representation of a color or the string transparent; represents the background attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getBackgroundin interfaceMathMLStyleElement- Returns:
- value of the background attribute.
-
getColor
-
getDisplaystyle
Either true or false; a string representing the displaystyle attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getDisplaystylein interfaceMathMLStyleElement- Returns:
- value of the displaystyle attribute.
-
getScriptsizemultiplier
A string of the form number; represents the scriptsizemultiplier attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getScriptsizemultiplierin interfaceMathMLStyleElement- Returns:
- value of the scriptsizemultiplier attribute.
-
setBackground
setter for the background attribute.- Specified by:
setBackgroundin interfaceMathMLStyleElement- Parameters:
background- new value for background.- See Also:
-
setColor
-
setDisplaystyle
setter for the displaystyle attribute.- Specified by:
setDisplaystylein interfaceMathMLStyleElement- Parameters:
displaystyle- new value for displaystyle.- See Also:
-
setScriptsizemultiplier
setter for the scriptsizemultiplier attribute.- Specified by:
setScriptsizemultiplierin interfaceMathMLStyleElement- Parameters:
scriptsizemultiplier- new value for scriptsizemultiplier.- See Also:
-
getMediummathspace
A string of the form number h-unit; represents the mediummathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getMediummathspacein interfaceMathMLStyleElement- Returns:
- value of the mediummathspace attribute.
-
getNegativemediummathspace
A string of the form number h-unit; represents the negativemediummathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativemediummathspacein interfaceMathMLStyleElement- Returns:
- value of the negativemediummathspace attribute.
-
getNegativethickmathspace
A string of the form number h-unit; represents the negativethickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativethickmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativethickmathspace attribute.
-
getNegativethinmathspace
A string of the form number h-unit; represents the negativethinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativethinmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativethinmathspace attribute.
-
getNegativeverythickmathspace
A string of the form number h-unit; represents the negativeverythickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativeverythickmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativeverythickmathspace attribute.
-
getNegativeverythinmathspace
A string of the form number h-unit; represents the negativeverythinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativeverythinmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativeverythinmathspace attribute.
-
getNegativeveryverythickmathspace
A string of the form number h-unit; represents the negativeveryverythickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativeveryverythickmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativeveryverythickmathspace attribute.
-
getNegativeveryverythinmathspace
A string of the form number h-unit; represents the negativeveryverythinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getNegativeveryverythinmathspacein interfaceMathMLStyleElement- Returns:
- value of the negativeveryverythinmathspace attribute.
-
getThickmathspace
A string of the form number h-unit; represents the thickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getThickmathspacein interfaceMathMLStyleElement- Returns:
- value of the thickmathspace attribute.
-
getThinmathspace
A string of the form number h-unit; represents the thinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getThinmathspacein interfaceMathMLStyleElement- Returns:
- value of the thinmathspace attribute.
-
getVerythickmathspace
A string of the form number h-unit; represents the verythickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getVerythickmathspacein interfaceMathMLStyleElement- Returns:
- value of the verythickmathspace attribute.
-
getVerythinmathspace
A string of the form number h-unit; represents the verythinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getVerythinmathspacein interfaceMathMLStyleElement- Returns:
- value of the verythinmathspace attribute.
-
getVeryverythickmathspace
A string of the form number h-unit; represents the veryverythickmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getVeryverythickmathspacein interfaceMathMLStyleElement- Returns:
- value of the veryverythickmathspace attribute.
-
getVeryverythinmathspace
A string of the form number h-unit; represents the veryverythinmathspace attribute for the mstyle element, if specified. See also the discussion of this attribute.- Specified by:
getVeryverythinmathspacein interfaceMathMLStyleElement- Returns:
- value of the veryverythinmathspace attribute.
-
setMediummathspace
setter for the mediummathspace attribute.- Specified by:
setMediummathspacein interfaceMathMLStyleElement- Parameters:
mediummathspace- new value for mediummathspace.- See Also:
-
setNegativemediummathspace
setter for the negativemediummathspace attribute.- Specified by:
setNegativemediummathspacein interfaceMathMLStyleElement- Parameters:
negativemediummathspace- new value for negativemediummathspace.- See Also:
-
setNegativethickmathspace
setter for the negativethickmathspace attribute.- Specified by:
setNegativethickmathspacein interfaceMathMLStyleElement- Parameters:
negativethickmathspace- new value for negativethickmathspace.- See Also:
-
setNegativethinmathspace
setter for the negativethinmathspace attribute.- Specified by:
setNegativethinmathspacein interfaceMathMLStyleElement- Parameters:
negativethinmathspace- new value for negativethinmathspace.- See Also:
-
setNegativeverythickmathspace
setter for the negativeverythickmathspace attribute.- Specified by:
setNegativeverythickmathspacein interfaceMathMLStyleElement- Parameters:
negativeverythickmathspace- new value for negativeverythickmathspace.- See Also:
-
setNegativeverythinmathspace
setter for the negativeverythinmathspace attribute.- Specified by:
setNegativeverythinmathspacein interfaceMathMLStyleElement- Parameters:
negativeverythinmathspace- new value for negativeverythinmathspace.- See Also:
-
setNegativeveryverythickmathspace
setter for the negativeveryverythickmathspace attribute.- Specified by:
setNegativeveryverythickmathspacein interfaceMathMLStyleElement- Parameters:
negativeveryverythickmathspace- new value for negativeveryverythickmathspace.- See Also:
-
setNegativeveryverythinmathspace
setter for the negativeveryverythinmathspace attribute.- Specified by:
setNegativeveryverythinmathspacein interfaceMathMLStyleElement- Parameters:
negativeveryverythinmathspace- new value for negativeveryverythinmathspace.- See Also:
-
setThickmathspace
setter for the thickmathspace attribute.- Specified by:
setThickmathspacein interfaceMathMLStyleElement- Parameters:
thickmathspace- new value for thickmathspace.- See Also:
-
setThinmathspace
setter for the thinmathspace attribute.- Specified by:
setThinmathspacein interfaceMathMLStyleElement- Parameters:
thinmathspace- new value for thinmathspace.- See Also:
-
setVerythickmathspace
setter for the verythickmathspace attribute.- Specified by:
setVerythickmathspacein interfaceMathMLStyleElement- Parameters:
verythickmathspace- new value for verythickmathspace.- See Also:
-
setVerythinmathspace
setter for the verythinmathspace attribute.- Specified by:
setVerythinmathspacein interfaceMathMLStyleElement- Parameters:
verythinmathspace- new value for verythinmathspace.- See Also:
-
setVeryverythickmathspace
setter for the veryverythickmathspace attribute.- Specified by:
setVeryverythickmathspacein interfaceMathMLStyleElement- Parameters:
veryverythickmathspace- new value for veryverythickmathspace.- See Also:
-
setVeryverythinmathspace
setter for the veryverythinmathspace attribute.- Specified by:
setVeryverythinmathspacein interfaceMathMLStyleElement- Parameters:
veryverythinmathspace- new value for veryverythinmathspace.- See Also:
-