Class RMOvalShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

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

    • RMOvalShape

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

      public RMOvalShape(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).

      Note (kathy): does not appear to get called anywhere. Not adding as a property, because it has no effect.

    • getPath

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

      protected void getPropertyNames(List<String> aList)
      Returns the property names for RMShape.
      Overrides:
      getPropertyNames in class RMShape
    • toXML

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

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