Class RMOval

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

    public class RMOval
    extends RMShape
    This class represents a simple oval, with a setable start angle and sweep angle.
    • Constructor Detail

      • RMOval

        public RMOval()
        Creates a plain oval (draws stroke).
      • RMOval

        public RMOval​(float startAngle,
                      float sweep)
        Creates an oval with the given startAngle and sweep.
    • Method Detail

      • getStartAngle

        public float getStartAngle()
        Returns the start angle for the oval.
      • setStartAngle

        public void setStartAngle​(float aValue)
        Sets the start angle for the oval.
      • getSweepAngle

        public float getSweepAngle()
        Returns the sweep angle for the oval.
      • setSweepAngle

        public void setSweepAngle​(float aValue)
        Sets the sweep angle for the oval.
      • getDrawsWedge

        public boolean getDrawsWedge()
        Return whether the oval draws lines from the unswept portion of the oval to the center (like a pie wedge).
      • setDrawsWedge

        public void setDrawsWedge​(boolean aFlag)
        Sets whether the oval draws lines from the unswept portion of the oval to the center (like a pie wedge).
      • getPath

        public RMPath getPath()
        Returns the (oval) path for this shape.
        Overrides:
        getPath in class RMShape
      • equals

        public boolean equals​(java.lang.Object anObj)
        Standard equals implementation.
        Overrides:
        equals in class RMShape
      • copy

        public void copy​(java.lang.Object anObj)
        Copies the given object (used for undo).
        Overrides:
        copy in class RMShape