root / trunk / libraries / libTopology / uml-jude / org / gvsig / topology / Topology.java @ 13263
History | View | Annotate | Download (2.24 KB)
1 |
package org.gvsig.topology; |
---|---|
2 |
|
3 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
4 |
import com.vividsolutions.jts.geom.Envelope; |
5 |
import java.awt.geom.Rectangle2D; |
6 |
import org.gvsig.topology.topologyrules.MustBeLargerThanClusterTolerance; |
7 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
8 |
|
9 |
public class Topology extends FLayers implements ITopologyErrorContainer, ITopologyStatus { |
10 |
|
11 |
private double clusterTolerance; |
12 |
|
13 |
private int status; |
14 |
|
15 |
/**
|
16 |
*If during validation process a topoly
|
17 |
*exceeds this parameters, validation will be stopped.
|
18 |
*
|
19 |
*/
|
20 |
private int maxNumberOfErrors = -1; |
21 |
|
22 |
private AbstractTopologyRule[] abstractTopologyRule; |
23 |
|
24 |
private Envelope[] envelope; |
25 |
|
26 |
private Rectangle2D[] dirtyZones; |
27 |
|
28 |
private MustBeLargerThanClusterTolerance[] clusterTolRule; |
29 |
|
30 |
public double getClusterTolerance() { |
31 |
return 0; |
32 |
} |
33 |
|
34 |
/**
|
35 |
*Adds a new topology rule to the topology.
|
36 |
*/
|
37 |
public void addRule(AbstractTopologyRule rule) { |
38 |
} |
39 |
|
40 |
/**
|
41 |
*Adds a layer to the topology. If the topology has been validated, changes
|
42 |
*topology status to NON-VALIDATED and adds a dirty zone equals to
|
43 |
*the layer extent.
|
44 |
*/
|
45 |
public void addLayer(FLyrVect layer, int xyRank, int zRank) { |
46 |
} |
47 |
|
48 |
public void setStatus(int status) { |
49 |
} |
50 |
|
51 |
public int getStatus() { |
52 |
return 0; |
53 |
} |
54 |
|
55 |
/**
|
56 |
*Adds a dirty zone to the topology
|
57 |
*(usually whe a feature of a layer
|
58 |
*of the topology has been edited)
|
59 |
*/
|
60 |
public void addDirtyZone(Rectangle2D dirtyZone) { |
61 |
} |
62 |
|
63 |
public Rectangle2D getDirtyZone() { |
64 |
return null; |
65 |
} |
66 |
|
67 |
public void validate() { |
68 |
} |
69 |
|
70 |
public int getLayerCount() { |
71 |
return 0; |
72 |
} |
73 |
|
74 |
public int getRuleCount() { |
75 |
return 0; |
76 |
} |
77 |
|
78 |
public FLyrVect getLyr(int lyrIndex) { |
79 |
return null; |
80 |
} |
81 |
|
82 |
public AbstractTopologyRule getRule(int ruleIndex) { |
83 |
return null; |
84 |
} |
85 |
|
86 |
/**
|
87 |
*Returns if a specified rectangle touch one
|
88 |
*of the existing dirty zones. If not, probably
|
89 |
*is needed to add to the dirty zones collection.
|
90 |
*If true, maybe it could modify the dirty zone.
|
91 |
*/
|
92 |
public boolean isInDirtyZone() { |
93 |
return false; |
94 |
} |
95 |
|
96 |
/**
|
97 |
*Modify the dirty zone of the specified index
|
98 |
*/
|
99 |
public void updateDirtyZone(int dirtyZoneIndex, Rectangle2D dirtyZone) { |
100 |
} |
101 |
|
102 |
public void setMaxNumberOfErrors(int maxNumberOfErrors) { |
103 |
} |
104 |
|
105 |
public int getMaxNumberOfErrors() { |
106 |
return 0; |
107 |
} |
108 |
|
109 |
} |
110 |
|