Class RMImageShape

    • Constructor Detail

      • RMImageShape

        public RMImageShape()
        Creates an RMImageShape.
      • RMImageShape

        public RMImageShape​(java.lang.Object aSource)
        Creates an RMImageShape 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.
      • getImageData

        public RMImageData getImageData()
        Returns the image data.
      • setImageData

        public void setImageData​(RMImageData anImageData)
        Sets the image data.
      • setImageData

        public void setImageData​(java.lang.Object aSource)
        Sets the image data from given source.
      • getPageIndex

        public int getPageIndex()
        Returns the page index.
      • setPageIndex

        public void setPageIndex​(int anIndex)
        Sets the page index.
      • getPadding

        public int getPadding()
        Returns the padding.
      • setPadding

        public void setPadding​(int aPadding)
        Sets the padding.
      • isGrowToFit

        public boolean isGrowToFit()
        Returns whether to grow image to fit available area if shape larger than image.
      • setGrowToFit

        public void setGrowToFit​(boolean aValue)
        Sets whether to grow image to fit available area if shape larger than image.
      • getPreserveRatio

        public boolean getPreserveRatio()
        Returns whether to preserve the natural width to height ratio of image.
      • setPreserveRatio

        public void setPreserveRatio​(boolean aValue)
        Sets whether to preserve the natural width to height ratio of image.
      • computePrefWidth

        public double computePrefWidth​(double aHeight)
        Returns the preferred width.
        Overrides:
        computePrefWidth in class RMShape
      • computePrefHeight

        public double computePrefHeight​(double aWidth)
        Returns the preferred height.
        Overrides:
        computePrefHeight in class RMShape
      • getPropertyNames

        protected void getPropertyNames​(java.util.List<java.lang.String> aList)
        Returns the property names for RMShape.
        Overrides:
        getPropertyNames in class RMShape
      • getImageBounds

        public java.awt.geom.Rectangle2D getImageBounds()
        Returns the image bounds.