Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / extEditing / src / org / gvsig / editing / gui / cad / tools / split / SplitGraphNodeFactory.java @ 29685

History | View | Annotate | Download (1.41 KB)

1
/* Spatial Operations & Editing Tools for uDig
2
 * 
3
 * Axios Engineering under a funding contract with: 
4
 *      Diputación Foral de Gipuzkoa, Ordenación Territorial 
5
 *
6
 *      http://b5m.gipuzkoa.net
7
 *      http://www.axios.es 
8
 *
9
 * (C) 2006, Diputación Foral de Gipuzkoa, Ordenación Territorial (DFG-OT). 
10
 * DFG-OT agrees to licence under Lesser General Public License (LGPL).
11
 * 
12
 * You can redistribute it and/or modify it under the terms of the 
13
 * GNU Lesser General Public License as published by the Free Software 
14
 * Foundation; version 2.1 of the License.
15
 *
16
 * This library 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 GNU
19
 * Lesser General Public License for more details.
20
 */
21
package org.gvsig.editing.gui.cad.tools.split;
22

    
23
import com.vividsolutions.jts.geom.Coordinate;
24
import com.vividsolutions.jts.geomgraph.Node;
25
import com.vividsolutions.jts.geomgraph.NodeFactory;
26

    
27
/**
28
 * Custom node factory to create {@link SplitGraphNode}s initialized with an empty
29
 * {@link SplitEdgeStar}
30
 * 
31
 * @author Gabriel Roldán, Axios Engineering
32
 * @author Mauricio Pazos, Axios Engineering
33
 * @since 1.1.0
34
 * @see SplitGraphNode
35
 */
36
class SplitGraphNodeFactory extends NodeFactory {
37

    
38
    public Node createNode( Coordinate coord ) {
39
        return new SplitGraphNode(coord, new SplitEdgeStar());
40
    }
41
}