KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > render > rtf > rtflib > tools > ImageConstants


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /* $Id: ImageConstants.java 426576 2006-07-28 15:44:37Z jeremias $ */
19
20
21 /*
22  * This file is part of the RTF library of the FOP project, which was originally
23  * created by Bertrand Delacretaz <bdelacretaz@codeconsult.ch> and by other
24  * contributors to the jfor project (www.jfor.org), who agreed to donate jfor to
25  * the FOP project.
26  */

27
28 package org.apache.fop.render.rtf.rtflib.tools;
29
30
31 /** Here will be defined all supported image formats.
32  * This class belongs to the <fo:external-graphic> tag processing.
33  * @author a.putz@skynamics.com (Andreas Putz)
34  */

35
36 public class ImageConstants {
37     //////////////////////////////////////////////////
38
// @@ Symbolic constants
39
//////////////////////////////////////////////////
40

41     /** Defines the case, if image is not supported */
42     public static final int I_NOT_SUPPORTED = -1;
43     /** Integer equivalent for EMF */
44     public static final int I_EMF = 0;
45     /** Integer equivalent for PNG */
46     public static final int I_PNG = 1;
47     /** Integer equivalent for JPG */
48     public static final int I_JPG = 2;
49     /** Integer equivalent for BMP */
50     public static final int I_BMP = 3;
51
52     /** Integer equivalent for GIF */
53     public static final int I_GIF = 50;
54     /** Integer equivalent for JPEG C (??) */
55     public static final int I_JPG_C = 51;
56
57     /** EMF file extension */
58     public static final String JavaDoc EMF_EXT = "emf";
59     /** PNG file extension */
60     public static final String JavaDoc PNG_EXT = "png";
61     /** JPG file extension */
62     public static final String JavaDoc JPG_EXT = "jpg";
63     /** JPEG file extension */
64     public static final String JavaDoc JPEG_EXT = "jpeg";
65     /** GIF file extension */
66     public static final String JavaDoc GIF_EXT = "gif";
67
68     //////////////////////////////////////////////////
69
// @@ Construction
70
//////////////////////////////////////////////////
71

72     /**
73      * Private constructor.
74      */

75     private ImageConstants() {
76     }
77 }
78
Popular Tags