root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / v02 / FConstant.java @ 7000
History | View | Annotate | Download (5.66 KB)
1 | 452 | fjp | /*
|
---|---|---|---|
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 | 1100 | fjp | /* 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 | 452 | fjp | package com.iver.cit.gvsig.fmap.core.v02; |
48 | |||
49 | /**
|
||
50 | 1005 | vcaballero | * Clase utilizada para almacenar las variables est?ticas.
|
51 | 452 | fjp | *
|
52 | 1005 | vcaballero | * @author Vicente Caballero Navarro
|
53 | 452 | fjp | */
|
54 | public class FConstant { |
||
55 | 1005 | vcaballero | /** Nombre de las unidades de medida, utilizadas. */
|
56 | public static String[] NAMES = null; |
||
57 | 452 | fjp | public final static int SHAPE_TYPE_NULL = 0; |
58 | public final static int SHAPE_TYPE_POINT = 1; |
||
59 | public final static int SHAPE_TYPE_POLYLINE = 3; |
||
60 | public final static int SHAPE_TYPE_POLYGON = 5; |
||
61 | public final static int SHAPE_TYPE_MULTIPOINT = 8; |
||
62 | public final static int SHAPE_TYPE_POINTZ = 11; |
||
63 | public final static int SHAPE_TYPE_POLYLINEZ = 13; |
||
64 | public final static int SHAPE_TYPE_POLYGONZ = 15; |
||
65 | public final static int SHAPE_TYPE_MULTIPOINTZ = 18; |
||
66 | public final static int SHAPE_TYPE_POINTM = 21; |
||
67 | public final static int SHAPE_TYPE_POLYLINEM = 23; |
||
68 | public final static int SHAPE_TYPE_POLYGONM = 25; |
||
69 | public final static int SHAPE_TYPE_MULTIPOINTM = 28; |
||
70 | public final static int LAYER_TYPE_DGN = 1; |
||
71 | public final static int LAYER_TYPE_DWG = 2; |
||
72 | public final static int LAYER_TYPE_DXF = 3; |
||
73 | public final static int LAYER_TYPE_JPEG2000 = 4; |
||
74 | public final static int LAYER_TYPE_SHP = 5; |
||
75 | public final static int LAYER_TYPE_WMS = 6; |
||
76 | public final static int LEGEND_TYPE_BREAK = 3; |
||
77 | public final static int LEGEND_TYPE_DEFAULT = 1; |
||
78 | public final static int LEGEND_TYPE_VALUE = 2; |
||
79 | public final static int SYMBOL_TYPE_DEFAULT = 5; |
||
80 | public final static int SYMBOL_TYPE_POINT = 1; |
||
81 | 801 | fjp | public final static int SYMBOL_TYPE_LINE = 2; |
82 | public final static int SYMBOL_TYPE_FILL = 4; |
||
83 | 452 | fjp | public final static int SYMBOL_TYPE_TEXT = 7; |
84 | public final static int SYMBOL_TYPE_ICON = 9; |
||
85 | public final static int SYMBOL_TYPE_POINTZ = 11; |
||
86 | public final static int SYMBOL_TYPE_MULTIPOINT = 8; |
||
87 | public final static int SYMBOL_STYLE_POINTZ = 0; |
||
88 | public final static int SYMBOL_TYPE_POLYLINEZ = 13; |
||
89 | public final static int SYMBOL_TYPE_POLYGONZ = 15; |
||
90 | 1005 | vcaballero | |
91 | 452 | fjp | // Para s?mbolos de tipo pol?gono.
|
92 | public final static int SYMBOL_STYLE_FILL_SOLID = 1; |
||
93 | public final static int SYMBOL_STYLE_FILL_TRANSPARENT = 2; |
||
94 | public final static int SYMBOL_STYLE_FILL_HORIZONTAL = 3; |
||
95 | public final static int SYMBOL_STYLE_FILL_VERTICAL = 4; |
||
96 | public final static int SYMBOL_STYLE_FILL_CROSS = 5; |
||
97 | public final static int SYMBOL_STYLE_FILL_UPWARD_DIAGONAL = 6; |
||
98 | public final static int SYMBOL_STYLE_FILL_DOWNWARD_DIAGONAL = 7; |
||
99 | public final static int SYMBOL_STYLE_FILL_CROSS_DIAGONAL = 8; |
||
100 | public final static int SYMBOL_STYLE_FILL_GRAYFILL = 9; |
||
101 | public final static int SYMBOL_STYLE_FILL_LIGHTGRAYFILL = 10; |
||
102 | public final static int SYMBOL_STYLE_FILL_DARKGRAYFILL = 11; |
||
103 | |||
104 | // Para s?mbolos de tipo Punto
|
||
105 | public final static int SYMBOL_STYLE_MARKER_CIRCLE = 30; |
||
106 | public final static int SYMBOL_STYLE_MARKER_SQUARE = 31; |
||
107 | public final static int SYMBOL_STYLE_MARKER_TRIANGLE = 32; |
||
108 | public final static int SYMBOL_STYLE_MARKER_CROSS = 33; |
||
109 | public final static int SYMBOL_STYLE_MARKER_TRUETYPE = 34; |
||
110 | 1005 | vcaballero | public final static int SYMBOL_STYLE_MARKER_IMAGEN = 35; |
111 | 1402 | fjp | public final static int SYMBOL_STYLE_DGNSPECIAL = 40; |
112 | 452 | fjp | |
113 | // Para s?mbolos de l?neas
|
||
114 | public final static int SYMBOL_STYLE_LINE_SOLID = 60; |
||
115 | public final static int SYMBOL_STYLE_LINE_DASH = 61; |
||
116 | public final static int SYMBOL_STYLE_LINE_DOT = 62; |
||
117 | public final static int SYMBOL_STYLE_LINE_DASHDOT = 63; |
||
118 | public final static int SYMBOL_STYLE_LINE_DASHDOTDOT = 64; |
||
119 | public final static int SYMBOL_STYLE_LINE_RAIL = 65; |
||
120 | public final static int SYMBOL_STYLE_LINE_ARROW = 66; |
||
121 | 1005 | vcaballero | |
122 | 452 | fjp | // Para s?mbolos de tipo texto
|
123 | public final static int SYMBOL_STYLE_TEXT_NORMAL = 90; |
||
124 | public final static int SYMBOL_STYLE_TEXT_CURSIVE = 91; |
||
125 | public final static int SYMBOL_STYLE_TEXT_BOLD = 92; |
||
126 | public final static int SYMBOL_STYLE_TEXT_BOLDCURSIVE = 93; |
||
127 | 1005 | vcaballero | |
128 | 6999 | jaume | /**
|
129 | * If you want to obtain a 12-pixel height font you have to apply this
|
||
130 | * scale factor. <br>
|
||
131 | 7000 | jaume | * So, it would be: <br>
|
132 | 6999 | jaume | * <b> font.setSize(FONT_SCALE_FACTOR*size)</b>
|
133 | */
|
||
134 | public static final double FONT_HEIGHT_SCALE_FACTOR = 1.4; |
||
135 | |||
136 | 1005 | vcaballero | static {
|
137 | new FConstant();
|
||
138 | 452 | fjp | } |
139 | 1005 | vcaballero | |
140 | /**
|
||
141 | 1443 | jmorell | * 050211, jmorell: Se han a?adido los Grados.
|
142 | 1005 | vcaballero | * Crea un nuevo FConstant.
|
143 | */
|
||
144 | public FConstant() {
|
||
145 | 452 | fjp | if (NAMES == null) { |
146 | 1005 | vcaballero | int i = 0; |
147 | 1443 | jmorell | NAMES = new String[9]; |
148 | 1005 | vcaballero | NAMES[i++] = "Kilometros";
|
149 | NAMES[i++] = "Metros";
|
||
150 | NAMES[i++] = "Centimetros";
|
||
151 | NAMES[i++] = "Milimetros";
|
||
152 | NAMES[i++] = "Millas";
|
||
153 | NAMES[i++] = "Yardas";
|
||
154 | NAMES[i++] = "Pies";
|
||
155 | NAMES[i++] = "Pulgadas";
|
||
156 | 1443 | jmorell | NAMES[i++] = "Grados";
|
157 | 1005 | vcaballero | } |
158 | 452 | fjp | } |
159 | } |