Class Mstyle

    • 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.NamedNodeHashMap
      • Nested 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

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTR_DISPLAYSTYLE
      Attribute for displaystyle.
      static java.lang.String ATTR_SCRIPTLEVEL
      Attribute for scriptlevel.
      static java.lang.String ATTR_SCRIPTMINSIZE
      Attribute for scriptminsize.
      static java.lang.String ATTR_SCRIPTSIZEMULTIPLIER
      Attribute for scriptsizemultiplier.
      static java.lang.String ELEMENT
      The XML element from this class.
      • 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
      • Fields 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 
      Constructor Description
      Mstyle​(java.lang.String qname, org.apache.batik.dom.AbstractDocument odoc)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBackground()
      A string representation of a color or the string transparent; represents the background attribute for the mstyle element, if specified.
      LayoutContext getChildLayoutContext​(int childNum, LayoutContext context)
      get the layout context for the given child.
      java.lang.String getColor()
      java.lang.String getDisplaystyle()
      Either true or false; a string representing the displaystyle attribute for the mstyle element, if specified.
      java.lang.String getMediummathspace()
      A string of the form number h-unit; represents the mediummathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativemediummathspace()
      A string of the form number h-unit; represents the negativemediummathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativethickmathspace()
      A string of the form number h-unit; represents the negativethickmathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativethinmathspace()
      A string of the form number h-unit; represents the negativethinmathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativeverythickmathspace()
      A string of the form number h-unit; represents the negativeverythickmathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativeverythinmathspace()
      A string of the form number h-unit; represents the negativeverythinmathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativeveryverythickmathspace()
      A string of the form number h-unit; represents the negativeveryverythickmathspace attribute for the mstyle element, if specified.
      java.lang.String getNegativeveryverythinmathspace()
      A string of the form number h-unit; represents the negativeveryverythinmathspace attribute for the mstyle element, if specified.
      java.lang.String getScriptlevel()
      A string of the form +/- unsigned integer; represents the scriptlevel attribute for the mstyle element, if specified.
      java.lang.String getScriptminsize()
      A string of the form number v-unit; represents the scriptminsize attribute for the mstyle element, if specified.
      java.lang.String getScriptsizemultiplier()
      A string of the form number; represents the scriptsizemultiplier attribute for the mstyle element, if specified.
      java.lang.String getThickmathspace()
      A string of the form number h-unit; represents the thickmathspace attribute for the mstyle element, if specified.
      java.lang.String getThinmathspace()
      A string of the form number h-unit; represents the thinmathspace attribute for the mstyle element, if specified.
      java.lang.String getVerythickmathspace()
      A string of the form number h-unit; represents the verythickmathspace attribute for the mstyle element, if specified.
      java.lang.String getVerythinmathspace()
      A string of the form number h-unit; represents the verythinmathspace attribute for the mstyle element, if specified.
      java.lang.String getVeryverythickmathspace()
      A string of the form number h-unit; represents the veryverythickmathspace attribute for the mstyle element, if specified.
      java.lang.String getVeryverythinmathspace()
      A string of the form number h-unit; represents the veryverythinmathspace attribute for the mstyle element, if specified.
      protected org.w3c.dom.Node newNode()
      void setBackground​(java.lang.String background)
      setter for the background attribute.
      void setColor​(java.lang.String color)
      void setDisplaystyle​(java.lang.String displaystyle)
      setter for the displaystyle attribute.
      void setMediummathspace​(java.lang.String mediummathspace)
      setter for the mediummathspace attribute.
      void setNegativemediummathspace​(java.lang.String negativemediummathspace)
      setter for the negativemediummathspace attribute.
      void setNegativethickmathspace​(java.lang.String negativethickmathspace)
      setter for the negativethickmathspace attribute.
      void setNegativethinmathspace​(java.lang.String negativethinmathspace)
      setter for the negativethinmathspace attribute.
      void setNegativeverythickmathspace​(java.lang.String negativeverythickmathspace)
      setter for the negativeverythickmathspace attribute.
      void setNegativeverythinmathspace​(java.lang.String negativeverythinmathspace)
      setter for the negativeverythinmathspace attribute.
      void setNegativeveryverythickmathspace​(java.lang.String negativeveryverythickmathspace)
      setter for the negativeveryverythickmathspace attribute.
      void setNegativeveryverythinmathspace​(java.lang.String negativeveryverythinmathspace)
      setter for the negativeveryverythinmathspace attribute.
      void setScriptlevel​(java.lang.String scriptlevel)
      setter for the scriptlevel attribute.
      void setScriptminsize​(java.lang.String scriptminsize)
      setter for the scriptminsize attribute.
      void setScriptsizemultiplier​(java.lang.String scriptsizemultiplier)
      setter for the scriptsizemultiplier attribute.
      void setThickmathspace​(java.lang.String thickmathspace)
      setter for the thickmathspace attribute.
      void setThinmathspace​(java.lang.String thinmathspace)
      setter for the thinmathspace attribute.
      void setVerythickmathspace​(java.lang.String verythickmathspace)
      setter for the verythickmathspace attribute.
      void setVerythinmathspace​(java.lang.String verythinmathspace)
      setter for the verythinmathspace attribute.
      void setVeryverythickmathspace​(java.lang.String veryverythickmathspace)
      setter for the veryverythickmathspace attribute.
      void setVeryverythinmathspace​(java.lang.String veryverythinmathspace)
      setter for the veryverythinmathspace attribute.
      • 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.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, setIdAttributeNS
      • 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 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, willTriggerNS
      • 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.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

      • ATTR_SCRIPTMINSIZE

        public static final java.lang.String ATTR_SCRIPTMINSIZE
        Attribute for scriptminsize.
        See Also:
        Constant Field Values
      • ATTR_SCRIPTLEVEL

        public static final java.lang.String ATTR_SCRIPTLEVEL
        Attribute for scriptlevel.
        See Also:
        Constant Field Values
      • ATTR_SCRIPTSIZEMULTIPLIER

        public static final java.lang.String ATTR_SCRIPTSIZEMULTIPLIER
        Attribute for scriptsizemultiplier.
        See Also:
        Constant Field Values
      • ATTR_DISPLAYSTYLE

        public static final java.lang.String ATTR_DISPLAYSTYLE
        Attribute for displaystyle.
        See Also:
        Constant Field Values
      • ELEMENT

        public static final java.lang.String ELEMENT
        The XML element from this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Mstyle

        public Mstyle​(java.lang.String qname,
                      org.apache.batik.dom.AbstractDocument odoc)
        Default constructor. Sets MathML Namespace.
        Parameters:
        qname - Qualified name.
        odoc - Owner Document.
    • Method Detail

      • newNode

        protected org.w3c.dom.Node newNode()
        Overrides:
        newNode in class org.apache.batik.dom.GenericElementNS
      • getScriptlevel

        public java.lang.String getScriptlevel()
        Description copied from interface: MathMLStyleElement
        A 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:
        getScriptlevel in interface MathMLStyleElement
        Returns:
        Script level
      • getScriptminsize

        public java.lang.String getScriptminsize()
        Description copied from interface: MathMLStyleElement
        A 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:
        getScriptminsize in interface MathMLStyleElement
        Returns:
        Minimum of script size
      • getBackground

        public java.lang.String 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:
        getBackground in interface MathMLStyleElement
        Returns:
        value of the background attribute.
      • getColor

        public java.lang.String getColor()
      • getDisplaystyle

        public java.lang.String 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:
        getDisplaystyle in interface MathMLStyleElement
        Returns:
        value of the displaystyle attribute.
      • getScriptsizemultiplier

        public java.lang.String 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:
        getScriptsizemultiplier in interface MathMLStyleElement
        Returns:
        value of the scriptsizemultiplier attribute.
      • setColor

        public void setColor​(java.lang.String color)
      • getMediummathspace

        public java.lang.String 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:
        getMediummathspace in interface MathMLStyleElement
        Returns:
        value of the mediummathspace attribute.
      • getNegativemediummathspace

        public java.lang.String 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:
        getNegativemediummathspace in interface MathMLStyleElement
        Returns:
        value of the negativemediummathspace attribute.
      • getNegativethickmathspace

        public java.lang.String 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:
        getNegativethickmathspace in interface MathMLStyleElement
        Returns:
        value of the negativethickmathspace attribute.
      • getNegativethinmathspace

        public java.lang.String 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:
        getNegativethinmathspace in interface MathMLStyleElement
        Returns:
        value of the negativethinmathspace attribute.
      • getNegativeverythickmathspace

        public java.lang.String 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:
        getNegativeverythickmathspace in interface MathMLStyleElement
        Returns:
        value of the negativeverythickmathspace attribute.
      • getNegativeverythinmathspace

        public java.lang.String 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:
        getNegativeverythinmathspace in interface MathMLStyleElement
        Returns:
        value of the negativeverythinmathspace attribute.
      • getNegativeveryverythickmathspace

        public java.lang.String 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:
        getNegativeveryverythickmathspace in interface MathMLStyleElement
        Returns:
        value of the negativeveryverythickmathspace attribute.
      • getNegativeveryverythinmathspace

        public java.lang.String 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:
        getNegativeveryverythinmathspace in interface MathMLStyleElement
        Returns:
        value of the negativeveryverythinmathspace attribute.
      • getThickmathspace

        public java.lang.String 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:
        getThickmathspace in interface MathMLStyleElement
        Returns:
        value of the thickmathspace attribute.
      • getThinmathspace

        public java.lang.String 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:
        getThinmathspace in interface MathMLStyleElement
        Returns:
        value of the thinmathspace attribute.
      • getVerythickmathspace

        public java.lang.String 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:
        getVerythickmathspace in interface MathMLStyleElement
        Returns:
        value of the verythickmathspace attribute.
      • getVerythinmathspace

        public java.lang.String 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:
        getVerythinmathspace in interface MathMLStyleElement
        Returns:
        value of the verythinmathspace attribute.
      • getVeryverythickmathspace

        public java.lang.String 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:
        getVeryverythickmathspace in interface MathMLStyleElement
        Returns:
        value of the veryverythickmathspace attribute.
      • getVeryverythinmathspace

        public java.lang.String 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:
        getVeryverythinmathspace in interface MathMLStyleElement
        Returns:
        value of the veryverythinmathspace attribute.