Class DXFArc

  • All Implemented Interfaces:
    DXFObject

    public class DXFArc
    extends DXFEntity
    Graphical entity representing a circular arc.
    Author:
    jsevy
    • Constructor Summary

      Constructors 
      Constructor Description
      DXFArc​(RealPoint center, double radius, double startAngleRadians, double endAngleRadians, boolean isCounterclockwise, java.awt.Graphics2D graphics)
      Create a circular arc from the specified parameters.
    • Constructor Detail

      • DXFArc

        public DXFArc​(RealPoint center,
                      double radius,
                      double startAngleRadians,
                      double endAngleRadians,
                      boolean isCounterclockwise,
                      java.awt.Graphics2D graphics)
        Create a circular arc from the specified parameters.
        Parameters:
        center - Center of the circle, as a RealPoint
        radius - Radius of the circle
        startAngleRadians - Starting angle of the circle, in radians, counterclockwise from the positive x axis
        endAngleRadians - Starting angle of the circle, in radians, counterclockwise from the positive x axis
        isCounterclockwise - Indicate direction of arc, clockwise or counterclockwise
        graphics - The graphics object specifying parameters for the arc (color, thickness)
    • Method Detail

      • toDXFString

        public java.lang.String toDXFString()
        Implementation of DXFObject interface method; creates DXF text representing the circular arc.
        Specified by:
        toDXFString in interface DXFObject
        Overrides:
        toDXFString in class DXFEntity