1 /*
2 * Copyright 1999-2006 Faculty of Mathematics, Physics
3 * and Informatics, Comenius University, Bratislava. This file is protected by
4 * the Mozilla Public License version 1.1 (the License); you may not use this
5 * file except in compliance with the License. You may obtain a copy of the
6 * License at http://euromath2.sourceforge.net/license.html Unless required by
7 * applicable law or agreed to in writing, software distributed under the
8 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 * OF ANY KIND, either express or implied. See the License for the specific
10 * language governing permissions and limitations under the License.
11 */
12 package sk.uniba.euromath.foRenderer.figures;
13
14 import org.apache.fop.area.Area;
15 import org.eclipse.draw2d.Graphics;
16
17 /***
18 * @author TV
19 * Created on 3.6.2004
20 *
21 */
22 public class UnsupportedFigure extends BasicFOPFigure {
23
24 private static final String TEXT = "Unsupported Area class";
25
26 public UnsupportedFigure(Object data) {
27 super(new Area());
28 setSize(100, 25);
29 }
30
31 /* (non-Javadoc)
32 * @see sk.uniba.euromath.fo.figures.BasicFOPFigure#paintFigure(org.eclipse.draw2d.Graphics)
33 */
34 protected void paintFigure(Graphics g) {
35 g.drawText(TEXT, 0, 0);
36 }
37
38
39 }