root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / v02 / FConstant.java @ 20701
History | View | Annotate | Download (6 KB)
1 |
/*
|
---|---|
2 |
* Created on 02-mar-2004
|
3 |
*
|
4 |
* To change the template for this generated file go to
|
5 |
* Window>Preferences>Java>Code Generation>Code and Comments
|
6 |
*/
|
7 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
8 |
*
|
9 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or (at your option) any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
24 |
*
|
25 |
* For more information, contact:
|
26 |
*
|
27 |
* Generalitat Valenciana
|
28 |
* Conselleria d'Infraestructures i Transport
|
29 |
* Av. Blasco Ib??ez, 50
|
30 |
* 46010 VALENCIA
|
31 |
* SPAIN
|
32 |
*
|
33 |
* +34 963862235
|
34 |
* gvsig@gva.es
|
35 |
* www.gvsig.gva.es
|
36 |
*
|
37 |
* or
|
38 |
*
|
39 |
* IVER T.I. S.A
|
40 |
* Salamanca 50
|
41 |
* 46005 Valencia
|
42 |
* Spain
|
43 |
*
|
44 |
* +34 963163400
|
45 |
* dac@iver.es
|
46 |
*/
|
47 |
package com.iver.cit.gvsig.fmap.core.v02; |
48 |
|
49 |
|
50 |
/**
|
51 |
* Clase utilizada para almacenar las variables est?ticas.
|
52 |
*
|
53 |
* @author Vicente Caballero Navarro
|
54 |
*/
|
55 |
public class FConstant { |
56 |
/** Nombre de las unidades de medida, utilizadas. */
|
57 |
public static String[] NAMES = null; |
58 |
public final static int SHAPE_TYPE_NULL = 0; |
59 |
public final static int SHAPE_TYPE_POINT = 1; |
60 |
public final static int SHAPE_TYPE_POLYLINE = 3; |
61 |
public final static int SHAPE_TYPE_POLYGON = 5; |
62 |
public final static int SHAPE_TYPE_MULTIPOINT = 8; |
63 |
public final static int SHAPE_TYPE_POINTZ = 11; |
64 |
public final static int SHAPE_TYPE_POLYLINEZ = 13; |
65 |
public final static int SHAPE_TYPE_POLYGONZ = 15; |
66 |
public final static int SHAPE_TYPE_MULTIPOINTZ = 18; |
67 |
public final static int SHAPE_TYPE_POINTM = 21; |
68 |
public final static int SHAPE_TYPE_POLYLINEM = 23; |
69 |
public final static int SHAPE_TYPE_POLYGONM = 25; |
70 |
public final static int SHAPE_TYPE_MULTIPOINTM = 28; |
71 |
public final static int LAYER_TYPE_DGN = 1; |
72 |
public final static int LAYER_TYPE_DWG = 2; |
73 |
public final static int LAYER_TYPE_DXF = 3; |
74 |
public final static int LAYER_TYPE_JPEG2000 = 4; |
75 |
public final static int LAYER_TYPE_SHP = 5; |
76 |
public final static int LAYER_TYPE_WMS = 6; |
77 |
public final static int LEGEND_TYPE_BREAK = 3; |
78 |
public final static int LEGEND_TYPE_DEFAULT = 1; |
79 |
public final static int LEGEND_TYPE_VALUE = 2; |
80 |
public final static int SYMBOL_TYPE_DEFAULT = 5; |
81 |
public final static int SYMBOL_TYPE_POINT = 1; |
82 |
public final static int SYMBOL_TYPE_LINE = 2; |
83 |
public final static int SYMBOL_TYPE_FILL = 4; |
84 |
public final static int SYMBOL_TYPE_TEXT = 7; |
85 |
public final static int SYMBOL_TYPE_ICON = 9; |
86 |
public final static int SYMBOL_TYPE_POINTZ = 11; |
87 |
public final static int SYMBOL_TYPE_MULTIPOINT = 8; |
88 |
public final static int SYMBOL_STYLE_POINTZ = 0; |
89 |
public final static int SYMBOL_TYPE_POLYLINEZ = 13; |
90 |
public final static int SYMBOL_TYPE_POLYGONZ = 15; |
91 |
|
92 |
// Para s?mbolos de tipo pol?gono.
|
93 |
public final static int SYMBOL_STYLE_FILL_SOLID = 1; |
94 |
public final static int SYMBOL_STYLE_FILL_TRANSPARENT = 2; |
95 |
public final static int SYMBOL_STYLE_FILL_HORIZONTAL = 3; |
96 |
public final static int SYMBOL_STYLE_FILL_VERTICAL = 4; |
97 |
public final static int SYMBOL_STYLE_FILL_CROSS = 5; |
98 |
public final static int SYMBOL_STYLE_FILL_UPWARD_DIAGONAL = 6; |
99 |
public final static int SYMBOL_STYLE_FILL_DOWNWARD_DIAGONAL = 7; |
100 |
public final static int SYMBOL_STYLE_FILL_CROSS_DIAGONAL = 8; |
101 |
public final static int SYMBOL_STYLE_FILL_GRAYFILL = 9; |
102 |
public final static int SYMBOL_STYLE_FILL_LIGHTGRAYFILL = 10; |
103 |
public final static int SYMBOL_STYLE_FILL_DARKGRAYFILL = 11; |
104 |
|
105 |
// Para s?mbolos de tipo Punto
|
106 |
public final static int SYMBOL_STYLE_MARKER_CIRCLE = 30; |
107 |
public final static int SYMBOL_STYLE_MARKER_SQUARE = 31; |
108 |
public final static int SYMBOL_STYLE_MARKER_TRIANGLE = 32; |
109 |
public final static int SYMBOL_STYLE_MARKER_CROSS = 33; |
110 |
public final static int SYMBOL_STYLE_MARKER_TRUETYPE = 34; |
111 |
public final static int SYMBOL_STYLE_MARKER_IMAGEN = 35; |
112 |
public final static int SYMBOL_STYLE_DGNSPECIAL = 40; |
113 |
|
114 |
// Para s?mbolos de l?neas
|
115 |
public final static int SYMBOL_STYLE_LINE_SOLID = 60; |
116 |
public final static int SYMBOL_STYLE_LINE_DASH = 61; |
117 |
public final static int SYMBOL_STYLE_LINE_DOT = 62; |
118 |
public final static int SYMBOL_STYLE_LINE_DASHDOT = 63; |
119 |
public final static int SYMBOL_STYLE_LINE_DASHDOTDOT = 64; |
120 |
public final static int SYMBOL_STYLE_LINE_RAIL = 65; |
121 |
public final static int SYMBOL_STYLE_LINE_ARROW = 66; |
122 |
|
123 |
// Para s?mbolos de tipo texto
|
124 |
public final static int SYMBOL_STYLE_TEXT_NORMAL = 90; |
125 |
public final static int SYMBOL_STYLE_TEXT_CURSIVE = 91; |
126 |
public final static int SYMBOL_STYLE_TEXT_BOLD = 92; |
127 |
public final static int SYMBOL_STYLE_TEXT_BOLDCURSIVE = 93; |
128 |
public final static int SYMBOL_STYLE_TEXTALIGNMENT_LEFT = 94; |
129 |
public final static int SYMBOL_STYLE_TEXTALIGNMENT_RIGHT = 95; |
130 |
public final static int SYMBOL_STYLE_TEXTALIGNMENT_CENTERED = 96; |
131 |
public final static int SYMBOL_STYLE_TEXTALIGNMENT_JUSTIFY = 97; |
132 |
|
133 |
|
134 |
/**
|
135 |
* If you want to obtain a 12-pixel height font you have to apply this
|
136 |
* scale factor. <br>
|
137 |
* So, it would be: <br>
|
138 |
* <b> font.setSize(FONT_SCALE_FACTOR*size)</b>
|
139 |
*/
|
140 |
public static final double FONT_HEIGHT_SCALE_FACTOR = 1.4; |
141 |
public static final double DEGREE_TO_RADIANS = Math.PI/180D; |
142 |
|
143 |
|
144 |
static {
|
145 |
new FConstant();
|
146 |
} |
147 |
|
148 |
/**
|
149 |
* 050211, jmorell: Se han a?adido los Grados.
|
150 |
* Crea un nuevo FConstant.
|
151 |
*/
|
152 |
public FConstant() {
|
153 |
if (NAMES == null) { |
154 |
int i = 0; |
155 |
NAMES = new String[10]; |
156 |
NAMES[i++] = "Kilometros";
|
157 |
NAMES[i++] = "Metros";
|
158 |
NAMES[i++] = "Centimetros";
|
159 |
NAMES[i++] = "Milimetros";
|
160 |
NAMES[i++] = "Millas";
|
161 |
NAMES[i++] = "Yardas";
|
162 |
NAMES[i++] = "Pies";
|
163 |
NAMES[i++] = "Pulgadas";
|
164 |
NAMES[i++] = "Grados";
|
165 |
NAMES[i++] = "Coordenadas";
|
166 |
} |
167 |
} |
168 |
} |