View Javadoc

1   /*
2    * Copyright 1999-2006 Faculty of Mathematics, Physics and Informatics, Comenius
3    * University, Bratislava. This file is protected by the Mozilla Public License
4    * version 1.1 (the License); you may not use this file except in compliance
5    * with the License. You may obtain a copy of the License at
6    * http://euromath2.sourceforge.net/license.html Unless required by applicable
7    * law or agreed to in writing, software distributed under the License is
8    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9    * KIND, either express or implied. See the License for the specific language
10   * governing permissions and limitations under the License.
11   */
12  package sk.uniba.euromath.foRenderer;
13  
14  import java.awt.Point;
15  import java.awt.geom.Point2D;
16  
17  import org.apache.fop.fo.FONode;
18  import org.apache.fop.fo.XMLObj;
19  
20  import sk.baka.xml.gene.ExportUtils;
21  import sk.uniba.euromath.Const;
22  
23  /***
24   * @author Tomáš Studva 2.10.2005
25   */
26  public class MarkObj extends XMLObj {
27  
28      public MarkObj(FONode parent) {
29          super(parent);
30      }
31  
32      @Override
33      public String getNamespaceURI() {
34          return ExportUtils.GENE_ID_ATTRIBUTE_QNAME.getNamespaceURI();
35      }
36  
37      @Override
38      public Point2D getDimension(Point2D view) {
39        //  return new Point(Integer.valueOf(element
40        //          .getAttributeNS(null, "width")), Integer.valueOf(element
41        //          .getAttributeNS(null, "height")));
42          return new Point (2000,2000);
43      }
44  
45  	/* (non-Javadoc)
46  	 * @see org.apache.fop.fo.FONode#getNormalNamespacePrefix()
47  	 */
48  	@Override
49  	public String getNormalNamespacePrefix() {
50  		return "";
51  	}
52  
53  }