| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Mphantom |
|
| 1.0;1 |
| 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: Mphantom.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */ | |
| 18 | ||
| 19 | package net.sourceforge.jeuclid.elements.presentation.general; | |
| 20 | ||
| 21 | import java.util.Collections; | |
| 22 | import java.util.List; | |
| 23 | ||
| 24 | import net.sourceforge.jeuclid.elements.presentation.AbstractContainer; | |
| 25 | import net.sourceforge.jeuclid.layout.LayoutableNode; | |
| 26 | ||
| 27 | import org.apache.batik.dom.AbstractDocument; | |
| 28 | import org.w3c.dom.Node; | |
| 29 | ||
| 30 | /** | |
| 31 | * This class represents a phantom of a math element. This is used as spacer. | |
| 32 | * | |
| 33 | * @version $Revision: bc1d5fde7b73 $ | |
| 34 | */ | |
| 35 | public final class Mphantom extends AbstractContainer { | |
| 36 | ||
| 37 | /** | |
| 38 | * The XML element from this class. | |
| 39 | */ | |
| 40 | public static final String ELEMENT = "mphantom"; | |
| 41 | ||
| 42 | private static final long serialVersionUID = 1L; | |
| 43 | ||
| 44 | /** | |
| 45 | * Default constructor. Sets MathML Namespace. | |
| 46 | * | |
| 47 | * @param qname | |
| 48 | * Qualified name. | |
| 49 | * @param odoc | |
| 50 | * Owner Document. | |
| 51 | */ | |
| 52 | public Mphantom(final String qname, final AbstractDocument odoc) { | |
| 53 | 209 | super(qname, odoc); |
| 54 | 209 | } |
| 55 | ||
| 56 | /** {@inheritDoc} */ | |
| 57 | @Override | |
| 58 | protected Node newNode() { | |
| 59 | 0 | return new Mphantom(this.nodeName, this.ownerDocument); |
| 60 | } | |
| 61 | ||
| 62 | /** {@inheritDoc} */ | |
| 63 | @Override | |
| 64 | public List<LayoutableNode> getChildrenToDraw() { | |
| 65 | 0 | return Collections.emptyList(); |
| 66 | } | |
| 67 | } |