org.cresques.px.dxf
Class DxfArc

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.dxf.DxfEntity
          extended byorg.cresques.px.dxf.DxfArc
All Implemented Interfaces:
Drawable, Extent.Has, Projected

public class DxfArc
extends DxfEntity

Entidad TEXT de AutoCAD jmorell: Definición de atributos para arcos necesaria para el piloto de CAD y implementación de su escritura en formato DXF2000.

Author:
"Luis W. Sevilla" * @author administrador

Field Summary
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
DxfArc(IProjection proj, DxfLayer layer, java.awt.geom.Point2D[] pts)
           
 
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()
           
 java.awt.geom.Point2D getCentralPoint()
           
 java.awt.geom.Point2D getEnd()
           
 double getEndAngle()
           
 java.awt.geom.Point2D getInit()
           
 double getInitAngle()
           
 java.awt.geom.Point2D[] getPts()
           
 double getRadius()
           
 void reProject(ICoordTrans rp)
           
 void setCenter(java.awt.geom.Point2D center)
           
 void setCentralPoint(java.awt.geom.Point2D centralPoint)
           
 void setEnd(java.awt.geom.Point2D end)
           
 void setEndAngle(double endAngle)
           
 void setInit(java.awt.geom.Point2D init)
           
 void setInitAngle(double initAngle)
           
 void setRadius(double radius)
           
 java.lang.String toDxfString()
          050223, jmorell: Escritura de arcos en un fichero DXF2000.
 
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

DxfArc

public DxfArc(IProjection proj,
              DxfLayer layer,
              java.awt.geom.Point2D[] pts)
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()
050223, jmorell: Escritura de arcos en un fichero DXF2000.

Specified by:
toDxfString in class DxfEntity

getPts

public java.awt.geom.Point2D[] getPts()
Returns:

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.

getEnd

public java.awt.geom.Point2D getEnd()
Returns:
Returns the end.

setEnd

public void setEnd(java.awt.geom.Point2D end)
Parameters:
end - The end to set.

getInit

public java.awt.geom.Point2D getInit()
Returns:
Returns the init.

setInit

public void setInit(java.awt.geom.Point2D init)
Parameters:
init - The init to set.

getCentralPoint

public java.awt.geom.Point2D getCentralPoint()
Returns:
Returns the centralPoint.

setCentralPoint

public void setCentralPoint(java.awt.geom.Point2D centralPoint)
Parameters:
centralPoint - The centralPoint to set.

getEndAngle

public double getEndAngle()
Returns:
Returns the endAngle.

setEndAngle

public void setEndAngle(double endAngle)
Parameters:
endAngle - The endAngle to set.

getInitAngle

public double getInitAngle()
Returns:
Returns the initAngle.

setInitAngle

public void setInitAngle(double initAngle)
Parameters:
initAngle - The initAngle to set.

getRadius

public double getRadius()
Returns:
Returns the radius.

setRadius

public void setRadius(double radius)
Parameters:
radius - The radius to set.