Class CircleToCommand

All Implemented Interfaces:
HasHandlers

public class CircleToCommand extends DrawShapeCommand
Command to draw a segment of a specified circle. Corresponds to the DrawShapeCommandType.CIRCLETO command type.
  • Constructor Details

    • CircleToCommand

      public CircleToCommand()
    • CircleToCommand

      public CircleToCommand(Point centerPoint, double radius, double startAngle, double endAngle)
  • Method Details

    • setArgs

      public void setArgs(Point centerPoint, double radius, double startAngle, double endAngle)
      Sets the arguments to this "circleto" command. The centerPoint and radius arguments specify the circle. The startAngle and endAngle arguments specify the segment of the circle to draw.
      Parameters:
      centerPoint - the center point of the circle.
      radius - the radius of the circle.
      startAngle - the starting angle (in degrees) of the segment of the circle to draw.
      endAngle - the ending angle (in degrees) of the segment of the circle to draw.