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: AbstractInvisibleJEuclidElement.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
18  
19  package net.sourceforge.jeuclid.elements;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  
24  import net.sourceforge.jeuclid.layout.LayoutableNode;
25  
26  import org.apache.batik.dom.AbstractDocument;
27  
28  /**
29   * Represents a MathElement with no content.
30   * 
31   * @version $Revision: bc1d5fde7b73 $
32   */
33  public abstract class AbstractInvisibleJEuclidElement extends
34          AbstractJEuclidElement {
35  
36      /**
37       * Default constructor. Sets MathML Namespace.
38       * 
39       * @param qname
40       *            Qualified name.
41       * @param odoc
42       *            Owner Document.
43       */
44      public AbstractInvisibleJEuclidElement(final String qname,
45              final AbstractDocument odoc) {
46          super(qname, odoc);
47      }
48  
49      /** {@inheritDoc} */
50      @Override
51      public List<LayoutableNode> getChildrenToLayout() {
52          return new ArrayList<LayoutableNode>(0);
53      }
54  
55      /** {@inheritDoc} */
56      @Override
57      public List<LayoutableNode> getChildrenToDraw() {
58          return new ArrayList<LayoutableNode>(0);
59      }
60  
61  }