View Javadoc

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: Mtr.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
18  
19  package net.sourceforge.jeuclid.elements.presentation.table;
20  
21  import org.apache.batik.dom.AbstractDocument;
22  import org.w3c.dom.Node;
23  
24  /**
25   * This class presents a row in MathTable.
26   * 
27   * @version $Revision: bc1d5fde7b73 $
28   */
29  public final class Mtr extends AbstractTableRow {
30  
31      /**
32       * The XML element from this class.
33       */
34      public static final String ELEMENT = "mtr";
35  
36      private static final long serialVersionUID = 1L;
37  
38      /**
39       * Default constructor. Sets MathML Namespace.
40       * 
41       * @param qname
42       *            Qualified name.
43       * @param odoc
44       *            Owner Document.
45       */
46      public Mtr(final String qname, final AbstractDocument odoc) {
47          super(qname, odoc);
48      }
49  
50      /** {@inheritDoc} */
51      @Override
52      protected Node newNode() {
53          return new Mtr(this.nodeName, this.ownerDocument);
54      }
55  
56  }