Class AbstractJEuclidElement

    • 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_CLASS
      Constant for class attribute.
      static java.lang.String ATTR_DEPRECATED_BACKGROUND
      Constant for background attribute.
      static java.lang.String ATTR_DEPRECATED_COLOR
      Constant for color attribute.
      static java.lang.String ATTR_DEPRECATED_FONTFAMILY
      Constant for fontfamily attribute.
      static java.lang.String ATTR_DEPRECATED_FONTSIZE
      Constant for fontsize attribute.
      static java.lang.String ATTR_DEPRECATED_FONTSTYLE
      Constant for fontstyle attribute.
      static java.lang.String ATTR_DEPRECATED_FONTWEIGHT
      Constant for fontweight attribute.
      static java.lang.String ATTR_HREF
      Constant for href attribute.
      static java.lang.String ATTR_ID
      Constant for id attribute.
      static java.lang.String ATTR_MATHBACKGROUND
      The mathbackground attribute.
      static java.lang.String ATTR_MATHCOLOR
      Constant for mathcolor attribute.
      static java.lang.String ATTR_MATHSIZE
      Constant for mathsize attribute.
      static java.lang.String ATTR_MATHVARIANT
      Constant for mathvariant attribute.
      static java.lang.String ATTR_STYLE
      Constant for style attribute.
      static java.lang.String ATTR_XREF
      Constant for xref attribute.
      static int TRIVIAL_SPACE_MAX
      largest value for all trivial spaces (= spaces that can be ignored / shortened).
      static java.lang.String URI
      The URI from MathML.
      • 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
      AbstractJEuclidElement​(java.lang.String nsUri, java.lang.String qname, org.apache.batik.dom.AbstractDocument odoc)
      Constructor to explicitly set the namespace.
      AbstractJEuclidElement​(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
      void addMathElement​(MathMLElement child)
      Add a math element as a child.
      LayoutContext applyLocalAttributesToContext​(LayoutContext context)
      Retrieve the LayoutContext valid for the current node.
      protected void changeHook()
      Override this function to get notified whenever the contents of this element have changed.
      boolean dispatchEvent​(org.w3c.dom.events.Event evt)
      LayoutContext getChildLayoutContext​(int childNum, LayoutContext context)
      get the layout context for the given child.
      java.util.List<LayoutableNode> getChildrenToDraw()
      java.util.List<LayoutableNode> getChildrenToLayout()
      java.lang.String getClassName()
      The class attribute of the element.
      MathMLNodeList getContents()
      Returns the children as a MathML NodeList.
      java.awt.Font getFont​(LayoutContext context)
      Gets the used font.
      java.awt.FontMetrics getFontMetrics​(java.awt.Graphics2D g, LayoutContext context)
      Gets the font metrics of the used font.
      java.lang.String getHref()
      The xlink:href attribute of the element.
      java.lang.String getId()
      The element's identifier.
      int getIndexOfMathElement​(JEuclidElement element)
      Gets index of child element.
      protected java.lang.String getMathAttribute​(java.lang.String attrName)
      retrieve an attribute from the MathML or default name space, returning the default value if the attribute is not set.
      protected java.lang.String getMathAttribute​(java.lang.String attrName, boolean useDefault)
      retrieve an attribute from the MathML or default name space.
      java.lang.String getMathbackground()
      Returns value of mathbackground attribute.
      java.lang.String getMathcolor()
      Returns value of mathcolor attribute.
      protected JEuclidElement getMathElement​(int index)
      Gets a child from this element.
      int getMathElementCount()
      Returns the count of children for this element.
      java.lang.String getMathElementStyle()
      A string identifying the element's style attribute.
      java.lang.String getMathsize()
      Retrieve the mathsize attribute.
      java.lang.String getMathvariant()
      Returns value of mathvariant attribute (style of the element).
      MathVariant getMathvariantAsVariant()
      Gets the current mathvariant.
      float getMiddleShift​(java.awt.Graphics2D g, LayoutContext context)
      Returns the distance of the baseline and the middleline.
      MathMLMathElement getOwnerMathElement()
      The MathMLMathElement corresponding to the nearest math element ancestor of this element.
      JEuclidElement getParent()
      Returns parent of this element.
      java.lang.String getText()
      Returns the text content of this element.
      java.lang.String getXref()
      The xref attribute of the element.
      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.
      void layoutStage1​(LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context)
      context insensitive layout.
      void layoutStage2​(LayoutView view, LayoutInfo info, LayoutContext context)
      context sensitive layout.
      protected void layoutStageInvariant​(LayoutView view, LayoutInfo info, LayoutStage stage, LayoutContext context)
      Layout for elements which are stage independent.
      void setClassName​(java.lang.String className)
      setter for the className attribute.
      protected void setDefaultMathAttribute​(java.lang.String key, java.lang.String value)
      Sets default values for math attributes.
      void setFakeParent​(JEuclidElement parent)
      Sets the parent of this element.
      void setHref​(java.lang.String href)
      setter for the href attribute.
      void setId​(java.lang.String id)
      setter for the id attribute.
      void setMathbackground​(java.lang.String mathbackground)
      Sets the value of the machbackground attribute.
      void setMathcolor​(java.lang.String mathcolor)
      Sets value of math color attribute.
      protected void setMathElement​(int index, MathMLElement newElement)
      Sets a specific child to the newElement, creating other subelements as necessary.
      void setMathElementStyle​(java.lang.String mathElementStyle)
      setter for the mathElementStyle attribute.
      void setMathsize​(java.lang.String mathsize)
      Sets mathsize to a new value.
      void setMathvariant​(java.lang.String mathvariant)
      Sets value of mathvariant attribute (style of the element).
      void setXref​(java.lang.String xref)
      setter for the xref attribute.
      • Methods inherited from class org.apache.batik.dom.GenericElementNS

        copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, newNode, 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_MATHVARIANT

        public static final java.lang.String ATTR_MATHVARIANT
        Constant for mathvariant attribute.
        See Also:
        Constant Field Values
      • ATTR_MATHCOLOR

        public static final java.lang.String ATTR_MATHCOLOR
        Constant for mathcolor attribute.
        See Also:
        Constant Field Values
      • ATTR_MATHSIZE

        public static final java.lang.String ATTR_MATHSIZE
        Constant for mathsize attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_FONTFAMILY

        public static final java.lang.String ATTR_DEPRECATED_FONTFAMILY
        Constant for fontfamily attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_FONTSTYLE

        public static final java.lang.String ATTR_DEPRECATED_FONTSTYLE
        Constant for fontstyle attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_FONTWEIGHT

        public static final java.lang.String ATTR_DEPRECATED_FONTWEIGHT
        Constant for fontweight attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_FONTSIZE

        public static final java.lang.String ATTR_DEPRECATED_FONTSIZE
        Constant for fontsize attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_COLOR

        public static final java.lang.String ATTR_DEPRECATED_COLOR
        Constant for color attribute.
        See Also:
        Constant Field Values
      • ATTR_DEPRECATED_BACKGROUND

        public static final java.lang.String ATTR_DEPRECATED_BACKGROUND
        Constant for background attribute.
        See Also:
        Constant Field Values
      • ATTR_CLASS

        public static final java.lang.String ATTR_CLASS
        Constant for class attribute.
        See Also:
        Constant Field Values
      • ATTR_STYLE

        public static final java.lang.String ATTR_STYLE
        Constant for style attribute.
        See Also:
        Constant Field Values
      • ATTR_ID

        public static final java.lang.String ATTR_ID
        Constant for id attribute.
        See Also:
        Constant Field Values
      • ATTR_HREF

        public static final java.lang.String ATTR_HREF
        Constant for href attribute.
        See Also:
        Constant Field Values
      • ATTR_XREF

        public static final java.lang.String ATTR_XREF
        Constant for xref attribute.
        See Also:
        Constant Field Values
      • ATTR_MATHBACKGROUND

        public static final java.lang.String ATTR_MATHBACKGROUND
        The mathbackground attribute.
        See Also:
        Constant Field Values
      • TRIVIAL_SPACE_MAX

        public static final int TRIVIAL_SPACE_MAX
        largest value for all trivial spaces (= spaces that can be ignored / shortened).
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractJEuclidElement

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

        public AbstractJEuclidElement​(java.lang.String nsUri,
                                      java.lang.String qname,
                                      org.apache.batik.dom.AbstractDocument odoc)
        Constructor to explicitly set the namespace.
        Parameters:
        nsUri - Namespace URI.
        qname - Qualified name.
        odoc - Owner Document.
    • Method Detail

      • getFont

        public java.awt.Font getFont​(LayoutContext context)
        Gets the used font. Everything regardes font, processed by MathBase object.
        Parameters:
        context - LayoutContext to use.
        Returns:
        Font Font object.
      • addMathElement

        public final void addMathElement​(MathMLElement child)
        Add a math element as a child.
        Parameters:
        child - Math element object.
      • getMathElement

        protected JEuclidElement getMathElement​(int index)
        Gets a child from this element.

        Please note, that unlike the MathML DOM model functions this function uses a 0-based index.

        Parameters:
        index - Index of the child (0-based).
        Returns:
        The child MathElement object.
      • setMathElement

        protected void setMathElement​(int index,
                                      MathMLElement newElement)
        Sets a specific child to the newElement, creating other subelements as necessary.
        Parameters:
        index - the index to set (0=the first child)
        newElement - new element to be set as child.
      • getIndexOfMathElement

        public int getIndexOfMathElement​(JEuclidElement element)
        Gets index of child element.
        Specified by:
        getIndexOfMathElement in interface JEuclidElement
        Parameters:
        element - Child element.
        Returns:
        Index of the element, -1 if element was not found
      • getMathElementCount

        public int getMathElementCount()
        Returns the count of children for this element.
        Specified by:
        getMathElementCount in interface JEuclidElement
        Returns:
        number of children.
      • getText

        public java.lang.String getText()
        Returns the text content of this element.
        Returns:
        Text content.
      • setMathvariant

        public void setMathvariant​(java.lang.String mathvariant)
        Sets value of mathvariant attribute (style of the element).
        Parameters:
        mathvariant - Value of mathvariant.
      • getMathvariant

        public java.lang.String getMathvariant()
        Returns value of mathvariant attribute (style of the element).
        Returns:
        Value of mathvariant.
      • getFontMetrics

        public java.awt.FontMetrics getFontMetrics​(java.awt.Graphics2D g,
                                                   LayoutContext context)
        Gets the font metrics of the used font.
        Parameters:
        context - LayoutContext to use.
        g - Graphics2D context to use.
        Returns:
        Font metrics.
      • setMathcolor

        public void setMathcolor​(java.lang.String mathcolor)
        Sets value of math color attribute.
        Parameters:
        mathcolor - Color object.
      • getMathcolor

        public java.lang.String getMathcolor()
        Returns value of mathcolor attribute.
        Returns:
        Color as string.
      • getMathsize

        public java.lang.String getMathsize()
        Retrieve the mathsize attribute.
        Returns:
        the mathsize attribute.
      • setMathsize

        public void setMathsize​(java.lang.String mathsize)
        Sets mathsize to a new value.
        Parameters:
        mathsize - value of mathsize.
      • setDefaultMathAttribute

        protected void setDefaultMathAttribute​(java.lang.String key,
                                               java.lang.String value)
        Sets default values for math attributes. Default values are returned through getMathAttribute, but not stored in the actual DOM tree. This is necessary to support proper serialization.
        Parameters:
        key - the attribute to set.
        value - value of the attribute.
      • getMathAttribute

        protected java.lang.String getMathAttribute​(java.lang.String attrName)
        retrieve an attribute from the MathML or default name space, returning the default value if the attribute is not set.
        Parameters:
        attrName - the name of the attribute
        Returns:
        attribute value or null if not set.
        See Also:
        getMathAttribute(String, boolean)
      • getMathAttribute

        protected java.lang.String getMathAttribute​(java.lang.String attrName,
                                                    boolean useDefault)
        retrieve an attribute from the MathML or default name space.
        Parameters:
        attrName - the name of the attribute
        useDefault - is true, the default value is used if the attribute is not set.
        Returns:
        attribute value or null if not set.
        See Also:
        getMathAttribute(String)
      • getMathbackground

        public java.lang.String getMathbackground()
        Returns value of mathbackground attribute.
        Returns:
        Color as string.
      • setMathbackground

        public void setMathbackground​(java.lang.String mathbackground)
        Sets the value of the machbackground attribute.
        Parameters:
        mathbackground - a string to be used as background color.
      • getMiddleShift

        public float getMiddleShift​(java.awt.Graphics2D g,
                                    LayoutContext context)
        Returns the distance of the baseline and the middleline.
        Parameters:
        context - Layout Context to use
        g - Graphics2D context to use.
        Returns:
        Distance baseline - middleline.
      • getClassName

        public java.lang.String getClassName()
        The class attribute of the element. See the discussion elsewhere in this document of the class attribute; see also the HTML definition of this attribute.
        Specified by:
        getClassName in interface MathMLElement
        Returns:
        value of the className attribute.
      • getMathElementStyle

        public java.lang.String getMathElementStyle()
        A string identifying the element's style attribute.
        Specified by:
        getMathElementStyle in interface MathMLElement
        Returns:
        value of the mathElementStyle attribute.
      • getId

        public java.lang.String getId()
        The element's identifier. See the discussion elsewhere in this document of the id attribute; see also the HTML definition.
        Specified by:
        getId in interface MathMLElement
        Overrides:
        getId in class org.apache.batik.dom.AbstractElement
        Returns:
        value of the id attribute.
      • setId

        public void setId​(java.lang.String id)
        setter for the id attribute.
        Specified by:
        setId in interface MathMLElement
        Parameters:
        id - new value for id.
        See Also:
        MathMLElement.getId()
      • getXref

        public java.lang.String getXref()
        The xref attribute of the element. See the discussion elsewhere in this document of the xref attribute.
        Specified by:
        getXref in interface MathMLElement
        Returns:
        value of the xref attribute.
      • getHref

        public java.lang.String getHref()
        The xlink:href attribute of the element. See the discussion elsewhere in this document of the xlink:href attribute; see also the definition of this attribute in the XLink specification.
        Specified by:
        getHref in interface MathMLElement
        Returns:
        value of the href attribute.
      • getOwnerMathElement

        public MathMLMathElement getOwnerMathElement()
        The MathMLMathElement corresponding to the nearest math element ancestor of this element. Should be null if this element is a top-level math element.
        Specified by:
        getOwnerMathElement in interface MathMLElement
        Returns:
        value of the ownerMathElement attribute.
      • hasChildPrescripts

        public boolean hasChildPrescripts​(JEuclidElement child)
        returns true is the child has prescripts attached to it. In this case, there should be no extra space on the left.
        Specified by:
        hasChildPrescripts in interface JEuclidElement
        Parameters:
        child - child to test
        Returns:
        true if there are attached prescripts
      • hasChildPostscripts

        public boolean hasChildPostscripts​(JEuclidElement child,
                                           LayoutContext context)
        returns true is the child has postscripts attached to it. In this case, there should be no extra space on the left.
        Specified by:
        hasChildPostscripts in interface JEuclidElement
        Parameters:
        child - child to test
        context - current layout context.
        Returns:
        true if there are attached postscripts
      • getContents

        public MathMLNodeList getContents()
        Returns the children as a MathML NodeList.
        Returns:
        a list of children
      • getChildLayoutContext

        public LayoutContext getChildLayoutContext​(int childNum,
                                                   LayoutContext context)
        get the layout context for the given child.
        Specified by:
        getChildLayoutContext in interface JEuclidNode
        Parameters:
        childNum - 0-based number of the child to check.
        context - external context.
        Returns:
        layout context to use.
      • applyLocalAttributesToContext

        public LayoutContext applyLocalAttributesToContext​(LayoutContext context)
        Retrieve the LayoutContext valid for the current node.
        Parameters:
        context - external context.
        Returns:
        the current layout context.
      • layoutStageInvariant

        protected void layoutStageInvariant​(LayoutView view,
                                            LayoutInfo info,
                                            LayoutStage stage,
                                            LayoutContext context)
        Layout for elements which are stage independent.

        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.

        Parameters:
        view - View Object for this layout.
        info - An info object which will be filled during layout.
        stage - current layout stage.
        context - current LayoutContext.
      • layoutStage1

        public void layoutStage1​(LayoutView view,
                                 LayoutInfo info,
                                 LayoutStage childMinStage,
                                 LayoutContext context)
        context insensitive layout.
        Specified by:
        layoutStage1 in interface LayoutableNode
        Parameters:
        view - LayoutView to use.
        info - LayoutInfo to manipulate.
        childMinStage - minimum stage of children. Either STAGE1 or STAGE2.
        context - LayoutContext for this element.
      • layoutStage2

        public void layoutStage2​(LayoutView view,
                                 LayoutInfo info,
                                 LayoutContext context)
        context sensitive layout.
        Specified by:
        layoutStage2 in interface LayoutableNode
        Parameters:
        view - LayoutView to use.
        info - LayoutInfo to manipulate.
        context - LayoutContext for this element.
      • changeHook

        protected void changeHook()
        Override this function to get notified whenever the contents of this element have changed.
      • dispatchEvent

        public boolean dispatchEvent​(org.w3c.dom.events.Event evt)
        Specified by:
        dispatchEvent in interface org.w3c.dom.events.EventTarget
        Specified by:
        dispatchEvent in interface org.apache.batik.dom.events.NodeEventTarget
        Overrides:
        dispatchEvent in class org.apache.batik.dom.AbstractNode