public class DxfEllipse extends DxfEntity
extent, requestExtent, stroke
Constructor and Description |
---|
DxfEllipse(IProjection proj,
DxfLayer layer,
Point2D pt1,
Point2D pt2,
double minorAxisLength)
Constructor de DxfEllipse.
|
Modifier and Type | Method and Description |
---|---|
Color |
c()
Devuelve el color del DxfEllipse.
|
Color |
c(Color color)
Establece el color del DxfEllipse.
|
void |
draw(Graphics2D g,
ViewPortData vp)
Permite dibujar un DxfEllipse.
|
Point2D |
getCenter() |
double |
getMinorAxisLength() |
double |
getMinorToMajorAxisRatio() |
Point2D[] |
getPts()
Devuelve el array de puntos que conforman el DxfEllipse.
|
void |
reProject(ICoordTrans rp)
Permite reproyectar un DxfEllipse dado un conjunto de coordenadas de transformaci�n.
|
void |
setCenter(Point2D center) |
void |
setMinorAxisLength(double minorAxisLength) |
void |
setMinorToMajorAxisRatio(double majorToMinorAxisRatio) |
void |
setPts(Point2D[] pts) |
String |
toDxfString()
Permite la escritura de entidades DxfEllipse en un fichero DXF2000.
|
getColor, getHandle, getLayer, getLayerName, getProjection, setHandle, setProjection
public DxfEllipse(IProjection proj, DxfLayer layer, Point2D pt1, Point2D pt2, double minorAxisLength)
proj,
- proyecci�n cartogr�fica en la que se encuentra el DxfEllipse.layer,
- capa del DXF en la que se encuentra el DxfEllipse.pt1,
- primer punto del semieje mayor.pt2,
- segundo punto del semieje mayor.minorAxisLength,
- longitud del semieje menor.public Color c()
public void reProject(ICoordTrans rp)
reProject
in interface Projected
reProject
in class DxfEntity
rp,
- coordenadas de transformaci�n.Projected.getProjection()
public void draw(Graphics2D g, ViewPortData vp)
public String toDxfString()
toDxfString
in class DxfEntity
public Point2D[] getPts()
public double getMinorAxisLength()
public void setMinorAxisLength(double minorAxisLength)
minorAxisLength
- The minorAxisLength to set.public void setPts(Point2D[] pts)
pts
- The pts to set.public Point2D getCenter()
public void setCenter(Point2D center)
center
- The center to set.public double getMinorToMajorAxisRatio()
public void setMinorToMajorAxisRatio(double majorToMinorAxisRatio)
majorToMinorAxisRatio
- The majorToMinorAxisRatio to set.