File tree 13 files changed +7
-100
lines changed
tests/src/math/geom2d/line 13 files changed +7
-100
lines changed Original file line number Diff line number Diff line change 1
1
Changes in javaGeom library
2
2
3
+ * lots of changes in method names
4
+ * fixed AffineTransform2D.isMotion(), and cleanup code
5
+
6
+
3
7
javaGeom-0.10.2 (2012.03.11, rev. 315)
4
8
=====
5
9
Original file line number Diff line number Diff line change @@ -189,16 +189,6 @@ public void fill(Graphics2D g2) {
189
189
g2 .fill (this .getGeneralPath ());
190
190
}
191
191
192
- /* (non-Javadoc)
193
- * @see math.geom2d.domain.Boundary2D#getBoundaryCurves()
194
- */
195
- public Collection <BoundaryPolyCirculinearCurve2D <T >> boundaryCurves () {
196
- ArrayList <BoundaryPolyCirculinearCurve2D <T >> list =
197
- new ArrayList <BoundaryPolyCirculinearCurve2D <T >>(1 );
198
- list .add (this );
199
- return list ;
200
- }
201
-
202
192
/* (non-Javadoc)
203
193
* @see math.geom2d.domain.Boundary2D#getDomain()
204
194
*/
Original file line number Diff line number Diff line change @@ -71,31 +71,13 @@ public GenericCirculinearRing2D(CirculinearElement2D... curves) {
71
71
this .closed = true ;
72
72
}
73
73
74
- /**
75
- * @deprecated, as a ring is closed by definition (0.8.1)
76
- */
77
- @ Deprecated
78
- public GenericCirculinearRing2D (CirculinearElement2D [] curves ,
79
- boolean closed ) {
80
- super (curves , closed );
81
- }
82
-
83
74
public GenericCirculinearRing2D (
84
75
Collection <? extends CirculinearElement2D > curves ) {
85
76
super (curves );
86
77
this .closed = true ;
87
78
}
88
79
89
- /**
90
- * @deprecated, as a ring is closed by definition (0.8.1)
91
- */
92
- @ Deprecated
93
- public GenericCirculinearRing2D (
94
- Collection <? extends CirculinearElement2D > curves ,
95
- boolean closed ) {
96
- super (curves , closed );
97
- }
98
-
80
+
99
81
// ===================================================================
100
82
// methods specific to GenericCirculinearRing2D
101
83
@@ -130,13 +112,6 @@ public void fill(Graphics2D g2) {
130
112
g2 .fill (this .getGeneralPath ());
131
113
}
132
114
133
- /* (non-Javadoc)
134
- * @see math.geom2d.domain.Boundary2D#getBoundaryCurves()
135
- */
136
- public Collection <? extends CirculinearContour2D > boundaryCurves () {
137
- return wrapCurve (this );
138
- }
139
-
140
115
/* (non-Javadoc)
141
116
* @see math.geom2d.domain.Boundary2D#getDomain()
142
117
*/
Original file line number Diff line number Diff line change @@ -660,10 +660,6 @@ public double eccentricity() {
660
660
// ===================================================================
661
661
// methods implementing the Boundary2D interface
662
662
663
- public Collection <? extends Ellipse2D > boundaryCurves () {
664
- return wrapCurve (this );
665
- }
666
-
667
663
public Domain2D domain () {
668
664
return new GenericDomain2D (this );
669
665
}
Original file line number Diff line number Diff line change 8
8
9
9
import math .geom2d .*;
10
10
import math .geom2d .curve .*;
11
- import math .geom2d .domain .Contour2D ;
12
11
import math .geom2d .domain .Domain2D ;
13
12
import math .geom2d .domain .GenericDomain2D ;
14
13
import math .geom2d .domain .SmoothContour2D ;
@@ -116,16 +115,6 @@ public Vector2D tangent(double t) {
116
115
// ===================================================================
117
116
// methods inherited from Boundary2D interface
118
117
119
- /**
120
- * Returns an instance of ArrayList<Contour2D> containing only
121
- * <code>this</code>.
122
- */
123
- public Collection <Contour2D > boundaryCurves () {
124
- ArrayList <Contour2D > list = new ArrayList <Contour2D >();
125
- list .add (this );
126
- return list ;
127
- }
128
-
129
118
public Domain2D domain () {
130
119
return new GenericDomain2D (this );
131
120
}
Original file line number Diff line number Diff line change @@ -237,12 +237,6 @@ public double eccentricity() {
237
237
// ==========================================================
238
238
// methods implementing the Boundary2D interface
239
239
240
- public Collection <Contour2D > boundaryCurves () {
241
- ArrayList <Contour2D > list = new ArrayList <Contour2D >(1 );
242
- list .add (this );
243
- return list ;
244
- }
245
-
246
240
public Domain2D domain () {
247
241
return new GenericDomain2D (this );
248
242
}
Original file line number Diff line number Diff line change @@ -50,13 +50,6 @@ public interface Boundary2D extends OrientedCurve2D {
50
50
*/
51
51
public boolean isInside (Point2D pt );
52
52
53
- /**
54
- * Returns the different continuous curves composing the boundary
55
- * @deprecated replaced by getContinuousCurves (0.9.1)
56
- */
57
- @ Deprecated
58
- public Collection <? extends Contour2D > boundaryCurves ();
59
-
60
53
/**
61
54
* Overloads the declaration of continuousCurves to return a collection
62
55
* of contours (instances of Contour2D).
Original file line number Diff line number Diff line change @@ -105,16 +105,6 @@ public boolean isClosed() {
105
105
// ===================================================================
106
106
// Methods implementing Boundary2D interface
107
107
108
- /**
109
- * Returns a ArrayList<ContinuousBoundary2D> containing only
110
- * <code>this</code>.
111
- * @deprecated use getContinuousCurves instead (0.9.1)
112
- */
113
- @ Deprecated
114
- public Collection <? extends Contour2D > boundaryCurves () {
115
- return wrapCurve (this );
116
- }
117
-
118
108
public Collection <BoundaryPolyCurve2D <T >> continuousCurves () {
119
109
return wrapCurve (this );
120
110
}
Original file line number Diff line number Diff line change @@ -96,14 +96,6 @@ public ContourArray2D(T curve) {
96
96
// ===================================================================
97
97
// Methods implementing Boundary2D interface
98
98
99
- /**
100
- * @deprecated replaced by getContinuousCurves
101
- */
102
- @ Deprecated
103
- public Collection <? extends Contour2D > boundaryCurves () {
104
- return this .continuousCurves ();
105
- }
106
-
107
99
public Collection <? extends T > continuousCurves () {
108
100
return Collections .unmodifiableCollection (this .curves );
109
101
}
Original file line number Diff line number Diff line change 35
35
/**
36
36
* An OrientedCurve2D defines an 'inside' and an 'outside'. It is typically a
37
37
* part of the boundary of a domain. Several OrientedCurve2D form a
38
- * ContinuousBoundary2D, and one or several ContinousBoundary2D form a
39
- * Boundary2D.
38
+ * Contour2D, and one or several Contour2D form a Boundary2D.
40
39
*
41
40
* @author dlegland
42
41
*/
Original file line number Diff line number Diff line change 43
43
import math .geom2d .circulinear .CircleLine2D ;
44
44
import math .geom2d .circulinear .GenericCirculinearDomain2D ;
45
45
import math .geom2d .conic .Circle2D ;
46
- import math .geom2d .domain .Contour2D ;
47
46
import math .geom2d .domain .Domain2D ;
48
47
import math .geom2d .domain .SmoothContour2D ;
49
48
import math .geom2d .polygon .Polyline2D ;
@@ -334,12 +333,6 @@ public CircleLine2D transform(CircleInversion2D inv) {
334
333
// ===================================================================
335
334
// methods specific to Boundary2D interface
336
335
337
- public Collection <Contour2D > boundaryCurves () {
338
- ArrayList <Contour2D > list = new ArrayList <Contour2D >(1 );
339
- list .add (this );
340
- return list ;
341
- }
342
-
343
336
public Domain2D domain () {
344
337
return new GenericCirculinearDomain2D (this );
345
338
}
Original file line number Diff line number Diff line change 37
37
import math .geom2d .circulinear .CirculinearRing2D ;
38
38
import math .geom2d .circulinear .GenericCirculinearRing2D ;
39
39
import math .geom2d .circulinear .buffer .BufferCalculator ;
40
- import math .geom2d .domain .Contour2D ;
41
40
import math .geom2d .domain .Domain2D ;
42
41
import math .geom2d .domain .GenericDomain2D ;
43
42
import math .geom2d .line .LineSegment2D ;
@@ -208,13 +207,6 @@ public CirculinearRing2D transform(CircleInversion2D inv) {
208
207
// ===================================================================
209
208
// Methods inherited from Boundary2D
210
209
211
- public Collection <Contour2D > boundaryCurves () {
212
- ArrayList <Contour2D > list =
213
- new ArrayList <Contour2D >(1 );
214
- list .add (this );
215
- return list ;
216
- }
217
-
218
210
public Domain2D domain () {
219
211
return new GenericDomain2D (this );
220
212
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public void testGetBoundaryCurves() {
110
110
Vector2D v0 = new Vector2D (10 , 20 );
111
111
StraightLine2D line = new StraightLine2D (p0 , v0 );
112
112
113
- assertEquals (1 , line .boundaryCurves ().size ());
113
+ assertEquals (1 , line .continuousCurves ().size ());
114
114
}
115
115
116
116
public void testIsBounded () {
You can’t perform that action at this time.
0 commit comments