001    /*
002     * Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    /* $Id: Mtext.java,v 923658a2b249 2009/09/11 09:57:31 max $ */
018    
019    package net.sourceforge.jeuclid.elements.presentation.token;
020    
021    import org.apache.batik.dom.AbstractDocument;
022    import org.w3c.dom.Node;
023    
024    /**
025     * This class presents text in a equation and contains some utility methods.
026     * 
027     * @version $Revision: 923658a2b249 $
028     */
029    public final class Mtext extends AbstractTokenWithTextLayout {
030        /**
031         * The XML element from this class.
032         */
033        public static final String ELEMENT = "mtext";
034    
035        private static final long serialVersionUID = 1L;
036    
037        /**
038         * Default constructor. Sets MathML Namespace.
039         * 
040         * @param qname
041         *            Qualified name.
042         * @param odoc
043         *            Owner Document.
044         */
045        public Mtext(final String qname, final AbstractDocument odoc) {
046            super(qname, odoc);
047        }
048    
049        /** {@inheritDoc} */
050        @Override
051        protected Node newNode() {
052            return new Mtext(this.nodeName, this.ownerDocument);
053        }
054    
055    }