svn-gvsig-desktop / tags / v1_0_2_Build_905 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / v02 / FConstant.java @ 10767
History | View | Annotate | Download (5.69 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 |
import java.util.prefs.Preferences; |
50 |
|
51 |
/**
|
52 |
* Clase utilizada para almacenar las variables est?ticas.
|
53 |
*
|
54 |
* @author Vicente Caballero Navarro
|
55 |
*/
|
56 |
public class FConstant { |
57 |
/** Nombre de las unidades de medida, utilizadas. */
|
58 |
public static String[] NAMES = null; |
59 |
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 |
public final static int SYMBOL_TYPE_LINE = 2; |
84 |
public final static int SYMBOL_TYPE_FILL = 4; |
85 |
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 |
|
93 |
// 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 |
public final static int SYMBOL_STYLE_MARKER_IMAGEN = 35; |
113 |
public final static int SYMBOL_STYLE_DGNSPECIAL = 40; |
114 |
|
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 |
|
124 |
// 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 |
|
130 |
|
131 |
/**
|
132 |
* If you want to obtain a 12-pixel height font you have to apply this
|
133 |
* scale factor. <br>
|
134 |
* So, it would be: <br>
|
135 |
* <b> font.setSize(FONT_SCALE_FACTOR*size)</b>
|
136 |
*/
|
137 |
public static final double FONT_HEIGHT_SCALE_FACTOR = 1.4; |
138 |
|
139 |
static {
|
140 |
new FConstant();
|
141 |
} |
142 |
|
143 |
/**
|
144 |
* 050211, jmorell: Se han a?adido los Grados.
|
145 |
* Crea un nuevo FConstant.
|
146 |
*/
|
147 |
public FConstant() {
|
148 |
if (NAMES == null) { |
149 |
int i = 0; |
150 |
NAMES = new String[9]; |
151 |
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 |
NAMES[i++] = "Grados";
|
160 |
} |
161 |
} |
162 |
} |