public class Polygon extends Geometry
Modifier and Type | Field and Description |
---|---|
static int |
pointNr |
extent, requestExtent, stroke
Constructor and Description |
---|
Polygon() |
Modifier and Type | Method and Description |
---|---|
void |
add(Point2D pt)
Permite añadir un punto a la Geometry.
|
Color |
c() |
Color |
c(Color color) |
void |
draw(Graphics2D g,
ViewPortData vp)
Permite dibujar la Geometry.
|
Color |
fillColor() |
Color |
fillColor(Color c) |
Point2D |
get(int i)
Devuelve un punto de la Geometry dado por su índice.
|
IProjection |
getProjection()
Devuelve la proyección cartográfica en la que se encuentra la Geometry.
|
int |
pointNr()
Devuelve el número de puntos que componen la Geometry.
|
void |
remove(int i) |
void |
reProject(ICoordTrans rp)
Permite reproyectar la Geometry en función de unas coordenadas de transformación.
|
void |
setInnerBoundary() |
void |
setOuterBoundary() |
void |
setProjection(IProjection p) |
public void add(Point2D pt)
Geometry
public Point2D get(int i)
Geometry
public void remove(int i)
public int pointNr()
Geometry
public void setOuterBoundary()
public void setInnerBoundary()
public Color c()
public Color fillColor()
public IProjection getProjection()
Geometry
getProjection
in interface Projected
getProjection
in class Geometry
Projected.reProject(ICoordTrans)
public void setProjection(IProjection p)
public void reProject(ICoordTrans rp)
Geometry
reProject
in interface Projected
reProject
in class Geometry
rp
- transformation coordinates for obtaining the new projectionProjected.getProjection()
public void draw(Graphics2D g, ViewPortData vp)
Geometry