org.cresques.px.dxf
Class DxfEllipse
java.lang.Object
org.cresques.px.PxObj
org.cresques.px.dxf.DxfEntity
org.cresques.px.dxf.DxfEllipse
- All Implemented Interfaces:
- Drawable, Extent.Has, Projected
- public class DxfEllipse
- extends DxfEntity
Entidad ELLIPSE de AutoCAD. Implementación básica para el piloto de CAD sobre el
formato DXF2000.
- Author:
- jmorell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DxfEllipse
public DxfEllipse(IProjection proj,
DxfLayer layer,
java.awt.geom.Point2D pt1,
java.awt.geom.Point2D pt2,
double minorAxisLength)
c
public java.awt.Color c()
c
public java.awt.Color c(java.awt.Color color)
reProject
public void reProject(ICoordTrans rp)
- Specified by:
reProject
in interface Projected
- Specified by:
reProject
in class DxfEntity
draw
public void draw(java.awt.Graphics2D g,
ViewPortData vp)
toDxfString
public java.lang.String toDxfString()
- Specified by:
toDxfString
in class DxfEntity
getPts
public java.awt.geom.Point2D[] getPts()
- Returns:
getMinorAxisLength
public double getMinorAxisLength()
- Returns:
- Returns the minorAxisLength.
setMinorAxisLength
public void setMinorAxisLength(double minorAxisLength)
- Parameters:
minorAxisLength
- The minorAxisLength to set.
setPts
public void setPts(java.awt.geom.Point2D[] pts)
- Parameters:
pts
- The pts to set.
getCenter
public java.awt.geom.Point2D getCenter()
- Returns:
- Returns the center.
setCenter
public void setCenter(java.awt.geom.Point2D center)
- Parameters:
center
- The center to set.
getMinorToMajorAxisRatio
public double getMinorToMajorAxisRatio()
- Returns:
- Returns the majorToMinorAxisRatio.
setMinorToMajorAxisRatio
public void setMinorToMajorAxisRatio(double majorToMinorAxisRatio)
- Parameters:
majorToMinorAxisRatio
- The majorToMinorAxisRatio to set.