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(java.awt.geom.Point2D pt)
Permite añadir un punto a la Geometry.
|
java.awt.Color |
c() |
java.awt.Color |
c(java.awt.Color color) |
void |
draw(java.awt.Graphics2D g,
ViewPortData vp)
Permite dibujar la Geometry.
|
java.awt.Color |
fillColor() |
java.awt.Color |
fillColor(java.awt.Color c) |
java.awt.geom.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.
|
boolean |
is3D() |
boolean |
isEmpty() |
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 boolean is3D()
public void add(java.awt.geom.Point2D pt)
Geometry
public boolean isEmpty()
public java.awt.geom.Point2D get(int i)
Geometry
public void remove(int i)
public int pointNr()
Geometry
public void setOuterBoundary()
public void setInnerBoundary()
public java.awt.Color c()
public java.awt.Color c(java.awt.Color color)
public java.awt.Color fillColor()
public java.awt.Color fillColor(java.awt.Color c)
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()