Class RMOval

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

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

    • 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 Details

    • 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(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class RMShape
    • copy

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

      public Object initWithArchiver(RMArchiver anArchiver)
      Legacy archival.
      Specified by:
      initWithArchiver in interface RMArchiver.Archiving
      Overrides:
      initWithArchiver in class RMShape
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXML in class RMShape
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXML in class RMShape