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: AbstractInvisibleJEuclidElement.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
018
019 package net.sourceforge.jeuclid.elements;
020
021 import java.util.ArrayList;
022 import java.util.List;
023
024 import net.sourceforge.jeuclid.layout.LayoutableNode;
025
026 import org.apache.batik.dom.AbstractDocument;
027
028 /**
029 * Represents a MathElement with no content.
030 *
031 * @version $Revision: bc1d5fde7b73 $
032 */
033 public abstract class AbstractInvisibleJEuclidElement extends
034 AbstractJEuclidElement {
035
036 /**
037 * Default constructor. Sets MathML Namespace.
038 *
039 * @param qname
040 * Qualified name.
041 * @param odoc
042 * Owner Document.
043 */
044 public AbstractInvisibleJEuclidElement(final String qname,
045 final AbstractDocument odoc) {
046 super(qname, odoc);
047 }
048
049 /** {@inheritDoc} */
050 @Override
051 public List<LayoutableNode> getChildrenToLayout() {
052 return new ArrayList<LayoutableNode>(0);
053 }
054
055 /** {@inheritDoc} */
056 @Override
057 public List<LayoutableNode> getChildrenToDraw() {
058 return new ArrayList<LayoutableNode>(0);
059 }
060
061 }