Class RMImageFill

  • All Implemented Interfaces:
    Archivable, RMPropertyChanger, java.lang.Cloneable

    public class RMImageFill
    extends RMFill
    This class is used to fill a shape's path with an image.
    • Constructor Detail

      • RMImageFill

        public RMImageFill()
        Creates a plain image fill.
      • RMImageFill

        public RMImageFill​(java.lang.Object aSource)
        Creates an image fill from an image source.
    • Method Detail

      • getImageData

        public RMImageData getImageData()
        Returns the image data associated with this image fill.
      • isTiled

        public boolean isTiled()
        Returns whether to tile fill image.
      • setTiled

        public void setTiled​(boolean aValue)
        Sets whether to tile fill image.
      • getX

        public double getX()
        Returns the X location (offset) of the image fill image.
      • getY

        public double getY()
        Returns the Y location (offset) of the image fill image.
      • getRoll

        public double getRoll()
        Returns the rotation of the image fill image.
      • getScaleX

        public double getScaleX()
        Returns the scale x of the image fill image.
      • getScaleY

        public double getScaleY()
        Returns the scale y of the image fill image.
      • deriveFill

        public RMImageFill deriveFill​(RMImageData anImageData)
        Creates a new image fill from this fill, but with a new image.
      • deriveFill

        public RMImageFill deriveFill​(java.lang.String aName,
                                      java.lang.Number aValue)
        Creates a new image fill identical to this image fill, but with new value for given attribute.
      • getType

        public java.lang.String getType()
        Returns the type of the image for this image fill (gif, jpg, png, etc.).
      • getImageWidth

        public double getImageWidth()
        Returns the actual display width of the image in printer's points using the image DPI if available.
      • getImageHeight

        public double getImageHeight()
        Returns the actual display height of the image in printer's points using the image DPI if available.
      • equals

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