org.cresques.px.dxf
Class DxfArc
java.lang.Object
org.cresques.px.PxObj
org.cresques.px.dxf.DxfEntity
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DxfArc
public DxfArc(IProjection proj,
DxfLayer layer,
java.awt.geom.Point2D[] pts)
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.