Class RMImage

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

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

      • RMImage

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

        public RMImage​(java.lang.Object aSource)
        Creates an image shape from the image source provided.
    • Method Detail

      • getKey

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

        public void setKey​(java.lang.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
      • equals

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