Revision 3904 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FGeometry.java
FGeometry.java | ||
---|---|---|
143 | 143 |
* |
144 | 144 |
* @param at Matriz de transformaci?n. |
145 | 145 |
*/ |
146 |
private void transform(AffineTransform at) { |
|
147 |
if (shp instanceof FPolyline2D) { |
|
148 |
((FPolyline2D) shp).transform(at); |
|
149 |
} |
|
150 |
|
|
151 |
if (shp instanceof FPoint2D) { |
|
152 |
((FPoint2D) shp).transform(at); |
|
153 |
} |
|
146 |
public void transform(AffineTransform at) { |
|
147 |
shp.transform(at); |
|
154 | 148 |
} |
155 | 149 |
|
156 | 150 |
/* (non-Javadoc) |
... | ... | |
242 | 236 |
return null; |
243 | 237 |
} |
244 | 238 |
|
245 |
public void move(double x, double y) { |
|
239 |
/* public void move(double x, double y) {
|
|
246 | 240 |
AffineTransform at = new AffineTransform(); |
247 | 241 |
at.translate(x, y); |
248 | 242 |
transform(at); |
249 | 243 |
} |
250 |
/** |
|
251 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#rotate(double, double, |
|
252 |
* double) |
|
253 |
*/ |
|
254 | 244 |
public void rotate(double r, double x, double y) { |
255 | 245 |
AffineTransform at = new AffineTransform(); |
256 | 246 |
at.rotate(r, x, y); |
257 | 247 |
transform(at); |
258 | 248 |
} |
259 |
/** |
|
260 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#scale(double, double) |
|
261 |
*/ |
|
262 | 249 |
public void scale(Point2D point,double x, double y) { |
263 | 250 |
AffineTransform at = new AffineTransform(); |
264 | 251 |
at.setToTranslation(point.getX(),point.getY()); |
265 | 252 |
at.scale(x,y); |
266 | 253 |
at.translate(-point.getX(),-point.getY()); |
267 | 254 |
transform(at); |
268 |
} |
|
255 |
} */
|
|
269 | 256 |
} |
Also available in: Unified diff