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