gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.prov / org.gvsig.vectorediting.lib.prov.split / src / main / java / org / gvsig / vectorediting / lib / prov / split / operation / splitsurface / SplitGraphNodeFactory.java @ 2616
History | View | Annotate | Download (2.39 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
/* Spatial Operations & Editing Tools for uDig
|
25 |
*
|
26 |
* Axios Engineering under a funding contract with:
|
27 |
* Diputación Foral de Gipuzkoa, Ordenación Territorial
|
28 |
*
|
29 |
* http://b5m.gipuzkoa.net
|
30 |
* http://www.axios.es
|
31 |
*
|
32 |
* (C) 2006, Diputación Foral de Gipuzkoa, Ordenación Territorial (DFG-OT).
|
33 |
* DFG-OT agrees to licence under Lesser General Public License (LGPL).
|
34 |
*
|
35 |
* You can redistribute it and/or modify it under the terms of the
|
36 |
* GNU Lesser General Public License as published by the Free Software
|
37 |
* Foundation; version 2.1 of the License.
|
38 |
*
|
39 |
* This library is distributed in the hope that it will be useful,
|
40 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
41 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
42 |
* Lesser General Public License for more details.
|
43 |
*/
|
44 |
package org.gvsig.vectorediting.lib.prov.split.operation.splitsurface; |
45 |
|
46 |
import com.vividsolutions.jts.geom.Coordinate; |
47 |
import com.vividsolutions.jts.geomgraph.Node; |
48 |
import com.vividsolutions.jts.geomgraph.NodeFactory; |
49 |
|
50 |
/**
|
51 |
* Custom node factory to create {@link SplitGraphNode}s initialized with an empty
|
52 |
* {@link SplitEdgeStar}
|
53 |
*
|
54 |
* @author Gabriel Roldán, Axios Engineering
|
55 |
* @author Mauricio Pazos, Axios Engineering
|
56 |
* @since 1.1.0
|
57 |
* @see SplitGraphNode
|
58 |
*/
|
59 |
class SplitGraphNodeFactory extends NodeFactory { |
60 |
|
61 |
@Override
|
62 |
public Node createNode( Coordinate coord ) {
|
63 |
return new SplitGraphNode(coord, new SplitEdgeStar()); |
64 |
} |
65 |
} |