Class RMRectangle

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable
Direct Known Subclasses:
RMGraph.Legend, RMImage, RMText

public class RMRectangle extends RMShape
This class represents a simple rectangle shape with a rouding radius.
  • Constructor Details

    • RMRectangle

      public RMRectangle()
      Creates a plain rectangle.
  • Method Details

    • getRadius

      public float getRadius()
      Returns the rounding radius for the rectangle.
    • setRadius

      public void setRadius(float aValue)
      Sets the rounding radius for the rectangle.
    • getPath

      public RMPath getPath()
      Returns the path for the rectangle (building path with rounded corners if needed).
      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 attributes from the given object.
      Overrides:
      copy 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
    • initWithArchiver

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