Revision 13733
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/FMap_en.properties | ||
---|---|---|
10 | 10 |
Pulgadas=Inches |
11 | 11 |
Yardas=Yards |
12 | 12 |
Centimetros=Centimeters |
13 |
labeled_point=Labeled point |
|
13 |
labeled_point=Labeled point |
|
14 |
could_not_load_layer=Could not load layer |
|
15 |
reason=Reason |
|
16 |
error_printing_layer=Error printing layer |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapContext.java | ||
---|---|---|
63 | 63 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException; |
64 | 64 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
65 | 65 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
66 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
|
67 | 66 |
import com.iver.cit.gvsig.fmap.layers.CancelationException; |
68 | 67 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
69 | 68 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
... | ... | |
98 | 97 |
/* Do not alter the order and the values of this array, if you need append values.*/ |
99 | 98 |
public static final double[] CHANGE = { 100000, 100, 1, 0.1, 160934.4, |
100 | 99 |
91.44, 30.48, 2.54, 1/8.983152841195214E-4 }; |
101 |
|
|
100 |
|
|
101 |
/* Do not alter the order and the values of this array, if you need append values.*/ |
|
102 |
public static final String[] NAMES= { |
|
103 |
Messages.getString("Kilometros"), |
|
104 |
Messages.getString("Metros"), |
|
105 |
Messages.getString("Centimetros"), |
|
106 |
Messages.getString("Milimetros"), |
|
107 |
Messages.getString("Millas"), |
|
108 |
Messages.getString("Yardas"), |
|
109 |
Messages.getString("Pies"), |
|
110 |
Messages.getString("Pulgadas"), |
|
111 |
Messages.getString("Grados"), |
|
112 |
}; |
|
113 |
|
|
102 | 114 |
public static final int EQUALS = 0; |
103 | 115 |
|
104 | 116 |
public static final int DISJOINT = 1; |
... | ... | |
134 | 146 |
|
135 | 147 |
private ArrayList errorListeners = new ArrayList(); |
136 | 148 |
|
137 |
/* Do not alter the order and the values of this array, if you need append values.*/ |
|
138 |
public static final String[] NAMES= { |
|
139 |
Messages.getString("Kilometros"), |
|
140 |
Messages.getString("Metros"), |
|
141 |
Messages.getString("Centimetros"), |
|
142 |
Messages.getString("Milimetros"), |
|
143 |
Messages.getString("Millas"), |
|
144 |
Messages.getString("Yardas"), |
|
145 |
Messages.getString("Pies"), |
|
146 |
Messages.getString("Pulgadas"), |
|
147 |
Messages.getString("Grados"), |
|
148 |
}; |
|
149 |
|
|
149 | 150 |
|
150 | 151 |
// public static ResourceBundle myResourceBundle = |
151 | 152 |
// ResourceBundle.getBundle("FMap"); |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/SymbologyFactory.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.8 2007-07-18 06:54:34 jaume |
|
46 |
* Revision 1.9 2007-09-17 09:32:05 jaume |
|
47 |
* view refresh frame rate now configurable |
|
48 |
* |
|
49 |
* Revision 1.8 2007/07/18 06:54:34 jaume |
|
47 | 50 |
* continuing with cartographic support |
48 | 51 |
* |
49 | 52 |
* Revision 1.7 2007/04/26 11:41:00 jaume |
... | ... | |
269 | 272 |
public static ILineSymbol createDefaultLineSymbol() { |
270 | 273 |
SimpleLineSymbol sls = new SimpleLineSymbol(); |
271 | 274 |
sls.setLineColor(DefaultSymbolColor); |
272 |
sls.setLineWidth(0.5);
|
|
275 |
sls.setLineWidth(1);
|
|
273 | 276 |
sls.setUnit(-1); // Pixels |
274 | 277 |
return sls; |
275 | 278 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FGeometry.java | ||
---|---|---|
311 | 311 |
drawInts(graphics2D, viewPort, (ISymbol) cartographicSymbol); |
312 | 312 |
|
313 | 313 |
// restore previous size |
314 |
cartographicSymbol.setCartographicSize(previousSize, null);
|
|
314 |
cartographicSymbol.setCartographicSize(previousSize, shp);
|
|
315 | 315 |
} |
316 | 316 |
|
317 | 317 |
/* public void move(double x, double y) { |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java | ||
---|---|---|
89 | 89 |
/** Cuando la vista est? desactualizada. */ |
90 | 90 |
public static final int DESACTUALIZADO = 1; |
91 | 91 |
public static final int ONLY_GRAPHICS = 2; |
92 |
private static int drawFrameRate = 3; |
|
93 |
private static boolean drawAnimationEnabled = true; |
|
94 |
|
|
92 | 95 |
// public static final int FAST_PAINT = 3; |
93 | 96 |
//private static Logger logger = Logger.getLogger(MapControl.class.getName()); |
94 | 97 |
private MapContext mapContext = null; |
... | ... | |
143 | 146 |
|
144 | 147 |
this.drawer2 = new Drawer2(); |
145 | 148 |
//Timer para mostrar el redibujado mientras se dibuja |
146 |
timer = new Timer(33,
|
|
149 |
timer = new Timer(1000/drawFrameRate,
|
|
147 | 150 |
new ActionListener() { |
148 | 151 |
public void actionPerformed(ActionEvent e) { |
149 |
MapControl.this.repaint(); |
|
152 |
|
|
153 |
if (drawAnimationEnabled) { |
|
154 |
MapControl.this.repaint(); |
|
155 |
} |
|
150 | 156 |
} |
151 | 157 |
}); |
152 | 158 |
} |
... | ... | |
1058 | 1064 |
public void setCurrentMapTool(Behavior mapTool ){ |
1059 | 1065 |
currentMapTool = mapTool; |
1060 | 1066 |
} |
1067 |
|
|
1068 |
public void applyFrameRate() { |
|
1069 |
if (getDrawFrameRate()>0) { |
|
1070 |
timer.setDelay(1000/getDrawFrameRate()); |
|
1071 |
} |
|
1072 |
} |
|
1073 |
|
|
1074 |
public static int getDrawFrameRate() { |
|
1075 |
return drawFrameRate; |
|
1076 |
} |
|
1077 |
|
|
1078 |
public static void setDrawFrameRate(int drawFrameRate) { |
|
1079 |
MapControl.drawFrameRate = drawFrameRate; |
|
1080 |
} |
|
1081 |
|
|
1082 |
public static boolean isDrawAnimationEnabled() { |
|
1083 |
return drawAnimationEnabled; |
|
1084 |
} |
|
1085 |
|
|
1086 |
public static void setDrawAnimationEnabled(boolean drawAnimationEnabled) { |
|
1087 |
MapControl.drawAnimationEnabled = drawAnimationEnabled; |
|
1088 |
} |
|
1061 | 1089 |
} |
Also available in: Unified diff