Revision 42023
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/rendering/symbols/impl/DefaultSymbolManager.java | ||
---|---|---|
20 | 20 |
* For any additional information, do not hesitate to contact us at info AT |
21 | 21 |
* gvsig.com, or visit our website www.gvsig.com. |
22 | 22 |
*/ |
23 |
package org.gvsig.fmap.mapcontext.rendering.symbols.impl; |
|
24 |
|
|
23 | 25 |
/* |
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 {DiSiD Technologies} {{Task}} |
|
26 |
* |
|
27 |
************************************************************** |
|
26 |
* Based on portions of code from www.ColorBrewer.org |
|
27 |
* |
|
28 | 28 |
* Colors from www.ColorBrewer.org by Cynthia A. Brewer, |
29 | 29 |
* Geography, Pennsylvania State University. |
30 | 30 |
* Using groups of 4 colors from the 9 Diverging Schemes |
31 | 31 |
* 4 * 9 = 36 colors |
32 |
************************************************************** |
|
33 |
* |
|
34 | 32 |
*/ |
35 |
package org.gvsig.fmap.mapcontext.rendering.symbols.impl; |
|
36 | 33 |
|
34 |
|
|
37 | 35 |
import java.awt.Color; |
38 | 36 |
import java.io.File; |
39 | 37 |
import java.io.FileFilter; |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/main/java/org/gvsig/remoteclient/taskplanning/retrieving/URLRetrieveTask.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.remoteclient.taskplanning.retrieving; |
25 | 25 |
|
26 |
/* |
|
27 |
* Based on portions of code from EarthFlicks |
|
28 |
* http://today.java.net/lpt/a/212 |
|
29 |
*/ |
|
30 |
|
|
26 | 31 |
import java.io.BufferedOutputStream; |
27 | 32 |
import java.io.DataOutputStream; |
28 | 33 |
import java.io.File; |
... | ... | |
38 | 43 |
|
39 | 44 |
/** |
40 | 45 |
* Clase para bajar ficheros en un thread independiente. |
41 |
* La idea (y parte del c?digo) est? tomada de EarthFlicks |
|
42 |
* @author Luis W. Sevilla (sevilla_lui@gva.es) |
|
43 |
* @see http://today.java.net/lpt/a/212 |
|
44 | 46 |
*/ |
45 | 47 |
public class URLRetrieveTask implements IRunnableTask { |
46 | 48 |
|
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/gui/cad/tools/split/SplitStrategy.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
package org.gvsig.editing.gui.cad.tools.split; |
27 | 27 |
|
28 |
/* |
|
29 |
* Based on portions of code from UDIG project. |
|
30 |
* |
|
31 |
* This class is based in the AXIOS team work for UDIG project. |
|
32 |
* |
|
33 |
* Adapted it slightly for the gvsig project |
|
34 |
* (exchange the I18 system, etc) |
|
35 |
*/ |
|
36 |
|
|
28 | 37 |
import java.util.ArrayList; |
29 | 38 |
import java.util.Collections; |
30 | 39 |
import java.util.HashMap; |
... | ... | |
48 | 57 |
import com.vividsolutions.jts.geomgraph.Node; |
49 | 58 |
|
50 | 59 |
|
51 |
/** |
|
52 |
* This class is based in the AXIOS team work for UDIG project. |
|
53 |
* |
|
54 |
* We have adapted it slightly for the gvsig project |
|
55 |
* (exchange the I18 system, etc) |
|
56 |
* |
|
57 |
* @author Alvaro Zabala |
|
58 |
* |
|
59 |
*/ |
|
60 | 60 |
|
61 | 61 |
/* |
62 | 62 |
* Performs a split of a LineString, MultiLineString, Polygon or MultiPolygon using a provided |
63 | 63 |
* LineString as cutting edge. |
64 |
* |
|
65 |
* @author Gabriel Roldán, Axios Engineering |
|
66 |
* @author Mauricio Pazos, Axios Engineering |
|
67 |
* @since 1.1.0 |
|
68 | 64 |
*/ |
69 | 65 |
public class SplitStrategy { |
70 | 66 |
|
... | ... | |
141 | 137 |
return splitOp; |
142 | 138 |
} |
143 | 139 |
|
144 |
/** |
|
145 |
* @author Gabriel Roldán, Axios Engineering |
|
146 |
* @author Mauricio Pazos, Axios Engineering |
|
147 |
* @since 1.1.0 |
|
148 |
*/ |
|
149 | 140 |
private static interface SpecificSplitOp { |
150 | 141 |
public void setSplitter( LineString splitter ); |
151 | 142 |
public Geometry split( Geometry splitee ); |
152 | 143 |
} |
153 | 144 |
|
154 |
/** |
|
155 |
* @author Gabriel Roldán, Axios Engineering |
|
156 |
* @author Mauricio Pazos, Axios Engineering |
|
157 |
* @since 1.1.0 |
|
158 |
*/ |
|
159 | 145 |
private static abstract class AbstractSplitter implements SpecificSplitOp { |
160 | 146 |
|
161 | 147 |
protected LineString splitter; |
... | ... | |
165 | 151 |
} |
166 | 152 |
} |
167 | 153 |
|
168 |
/** |
|
169 |
* @author Gabriel Roldán, Axios Engineering |
|
170 |
* @author Mauricio Pazos, Axios Engineering |
|
171 |
* @since 1.1.0 |
|
172 |
*/ |
|
173 | 154 |
private static class LineStringSplitter extends AbstractSplitter { |
174 | 155 |
/** |
175 | 156 |
* No-op default constructor required to reflectively instantiate the class |
... | ... | |
187 | 168 |
|
188 | 169 |
} |
189 | 170 |
|
190 |
/** |
|
191 |
* @author Gabriel Roldán, Axios Engineering |
|
192 |
* @author Mauricio Pazos, Axios Engineering |
|
193 |
* @since 1.1.0 |
|
194 |
*/ |
|
195 | 171 |
private static abstract class AbstractGeometryCollectionSplitter implements SpecificSplitOp { |
196 | 172 |
|
197 | 173 |
private SpecificSplitOp singlePartSplitter; |
... | ... | |
229 | 205 |
|
230 | 206 |
} |
231 | 207 |
|
232 |
/** |
|
233 |
* @author Gabriel Roldán, Axios Engineering |
|
234 |
* @author Mauricio Pazos, Axios Engineering |
|
235 |
* @since 1.1.0 |
|
236 |
*/ |
|
237 | 208 |
private static class MultiLineStringSplitter extends AbstractGeometryCollectionSplitter { |
238 | 209 |
|
239 | 210 |
public MultiLineStringSplitter() { |
... | ... | |
248 | 219 |
} |
249 | 220 |
} |
250 | 221 |
|
251 |
/** |
|
252 |
* @author Gabriel Roldán, Axios Engineering |
|
253 |
* @author Mauricio Pazos, Axios Engineering |
|
254 |
* @since 1.1.0 |
|
255 |
*/ |
|
256 | 222 |
private static class MultiPolygonSplitter extends AbstractGeometryCollectionSplitter { |
257 | 223 |
|
258 | 224 |
public MultiPolygonSplitter() { |
... | ... | |
286 | 252 |
* <li> Marcar los edges restantes que tengan algun nodo con ponderación < 3 como non-shared |
287 | 253 |
* <li> Eliminar del grafo los nodos con ponderación 1 |
288 | 254 |
* </ul> |
289 |
* |
|
290 |
* @author Gabriel Roldán, Axios Engineering |
|
291 |
* @author Mauricio Pazos, Axios Engineering |
|
292 |
* @since 1.1.0 |
|
293 | 255 |
*/ |
294 | 256 |
private static class PolygonSplitter extends AbstractSplitter { |
295 | 257 |
|
Also available in: Unified diff