svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FPolygon2D.java @ 711
History | View | Annotate | Download (880 Bytes)
1 |
package com.iver.cit.gvsig.fmap.core; |
---|---|
2 |
|
3 |
|
4 |
|
5 |
/**
|
6 |
* Pol?gono 2D.
|
7 |
*
|
8 |
* @author Vicente Caballero Navarro
|
9 |
*
|
10 |
*/
|
11 |
public class FPolygon2D extends FPolyline2D { |
12 |
/**
|
13 |
* @see com.iver.cit.gvsig.fmap.core.FShape#getShapeType()
|
14 |
*/
|
15 |
public int getShapeType() { |
16 |
return FShape.POLYGON;
|
17 |
} |
18 |
/**
|
19 |
* Crea un nuevo Polygon2D.
|
20 |
*
|
21 |
* @param gpx DOCUMENT ME!
|
22 |
*/
|
23 |
public FPolygon2D(GeneralPathX gpx) {
|
24 |
super(gpx);
|
25 |
} |
26 |
public FShape cloneFShape() {
|
27 |
return new FPolygon2D((GeneralPathX) gp.clone()); |
28 |
} |
29 |
|
30 |
/**
|
31 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D,
|
32 |
* ViewPort, org.geotools.renderer.style.Style2D)
|
33 |
*/
|
34 |
/* public void draw(Graphics2D g, ViewPort vp, Style2D symbol) {
|
35 |
gp.transform(vp.getAffineTransform());
|
36 |
|
37 |
g.setPaint(Color.red);
|
38 |
g.fill(gp);
|
39 |
g.setPaint(Color.black);
|
40 |
g.draw(gp);
|
41 |
} */
|
42 |
|
43 |
} |