1 /*
2 * Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /* $Id: Mtext.java,v 923658a2b249 2009/09/11 09:57:31 max $ */
18
19 package net.sourceforge.jeuclid.elements.presentation.token;
20
21 import org.apache.batik.dom.AbstractDocument;
22 import org.w3c.dom.Node;
23
24 /**
25 * This class presents text in a equation and contains some utility methods.
26 *
27 * @version $Revision: 923658a2b249 $
28 */
29 public final class Mtext extends AbstractTokenWithTextLayout {
30 /**
31 * The XML element from this class.
32 */
33 public static final String ELEMENT = "mtext";
34
35 private static final long serialVersionUID = 1L;
36
37 /**
38 * Default constructor. Sets MathML Namespace.
39 *
40 * @param qname
41 * Qualified name.
42 * @param odoc
43 * Owner Document.
44 */
45 public Mtext(final String qname, final AbstractDocument odoc) {
46 super(qname, odoc);
47 }
48
49 /** {@inheritDoc} */
50 @Override
51 protected Node newNode() {
52 return new Mtext(this.nodeName, this.ownerDocument);
53 }
54
55 }