All Implemented Interfaces:
Cloneable, DrawOperation

public class Arc extends BasicShape implements DrawOperation
Draw an arc.
  • Field Details

    • width

      protected int width
    • height

      protected int height
    • start

      protected int start
    • stop

      protected int stop
    • type

      protected int type
  • Constructor Details

    • Arc

      public Arc()
  • Method Details

    • setWidth

      public void setWidth(int width)
      Set the width.
      width - the width of the arc.
    • setHeight

      public void setHeight(int height)
      Set the height.
      height - the height of the arc.
    • setStart

      public void setStart(int start)
      Set the start of the arc.
      start - the start of the arc.
    • setStop

      public void setStop(int stop)
      Set the stop of the arc.
      stop - the stop of the arc.
    • setType

      public void setType(String strType)
      Set the type of arc.
      strType - the type to use - open, pie or chord.
      To do:
      refactor using an EnumeratedAttribute
    • executeDrawOperation

      public executeDrawOperation()
      Abstract method which is intended to create an image buffer and return it so it can be drawn into another object. Use an Alpha channel for a "transparent" background..
      Specified by:
      executeDrawOperation in interface DrawOperation
      a planar image