Class Arc

    • Field Detail

      • width

        protected int width
      • height

        protected int height
      • start

        protected int start
      • stop

        protected int stop
      • type

        protected int type
    • Constructor Detail

      • Arc

        public Arc()
    • Method Detail

      • setWidth

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

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

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

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

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

        public javax.media.jai.PlanarImage 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
        Returns:
        a planar image