org.cresques.px.dxf
Class DxfEllipse

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.dxf.DxfEntity
          extended byorg.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

Field Summary
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
DxfEllipse(IProjection proj, DxfLayer layer, java.awt.geom.Point2D pt1, java.awt.geom.Point2D pt2, double minorAxisLength)
           
 
Method Summary
 java.awt.Color c()
           
 java.awt.Color c(java.awt.Color color)
           
 void draw(java.awt.Graphics2D g, ViewPortData vp)
           
 java.awt.geom.Point2D getCenter()
           
 double getMinorAxisLength()
           
 double getMinorToMajorAxisRatio()
           
 java.awt.geom.Point2D[] getPts()
           
 void reProject(ICoordTrans rp)
           
 void setCenter(java.awt.geom.Point2D center)
           
 void setMinorAxisLength(double minorAxisLength)
           
 void setMinorToMajorAxisRatio(double majorToMinorAxisRatio)
           
 void setPts(java.awt.geom.Point2D[] pts)
           
 java.lang.String toDxfString()
           
 
Methods inherited from class org.cresques.px.dxf.DxfEntity
getColor, getHandle, getLayer, getLayerName, getProjection, setHandle, setProjection
 
Methods inherited from class org.cresques.px.PxObj
getExtent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DxfEllipse

public DxfEllipse(IProjection proj,
                  DxfLayer layer,
                  java.awt.geom.Point2D pt1,
                  java.awt.geom.Point2D pt2,
                  double minorAxisLength)
Method Detail

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.