Class RMImage

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMImage extends RMRectangle
This class is a shape representation of an image.
  • Constructor Details

    • RMImage

      public RMImage()
      Creates a plain image shape (with no actual image).
    • RMImage

      public RMImage(Object aSource)
      Creates an image shape from the image source provided.
  • Method Details

    • getKey

      public String getKey()
      Returns the report key used to load an image if none is provided.
    • setKey

      public void setKey(String aString)
      Sets the report key used to load an image if none is provided.
    • getSizeBorders

      public boolean getSizeBorders()
      Returns whether the image shape should resize its borders to fit dynamically provided images.
    • setSizeBorders

      public void setSizeBorders(boolean aFlag)
      Sets whether the image shape should resize its borders to fit dynamically provided images.
    • getImageData

      public RMImageData getImageData()
      Returns the imageData for this shape (or null if fill isn't an RMImageFill).
    • getFillStyle

      public int getFillStyle()
      Returns the fill style for the image's image fill.
    • setFill

      public void setFill(RMFill aFill)
      Overrides standard shape setFill method to ensure fill is an RMImageFill.
      Overrides:
      setFill in class RMShape
    • getWidthToFit

      public float getWidthToFit()
      Returns the width to fit the image.
      Overrides:
      getWidthToFit in class RMShape
    • getHeightToFit

      public float getHeightToFit()
      Returns the height to fit the image.
      Overrides:
      getHeightToFit in class RMShape
    • rpgClone

      public RMShape rpgClone(ReportMill aReportMill)
      Report generation method.
      Overrides:
      rpgClone in class RMShape
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class RMRectangle
    • toXML

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

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

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