Class RMImageFill

All Implemented Interfaces:
Archivable, RMPropertyChanger, Cloneable

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

  • Constructor Details

    • RMImageFill

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

      public RMImageFill(Object aSource)
      Creates an image fill from an image source.
  • Method Details

    • 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(String aName, Number aValue)
      Creates a new image fill identical to this image fill, but with new value for given attribute.
    • getType

      public 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.
    • paint

      public void paint(RMShapePainter aPntr, RMShape aShape)
      Render this fill in a shape painter.
      Overrides:
      paint in class RMFill
    • equals

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

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class RMFill
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class RMFill