Class RMFill

    • Constructor Detail

      • RMFill

        public RMFill()
        Creates a plain, black fill.
      • RMFill

        public RMFill​(RMColor aColor)
        Creates a plain fill with the given color.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the fill.
      • getColor

        @Nonnull
        public RMColor getColor()
        Returns the color associated with this fill.
      • setColor

        public void setColor​(@Nonnull
                             RMColor aColor)
        Sets the color associated with this fill.
      • getBounds

        public RMRect getBounds​(RMShape aShape)
        Returns the bounds required to render this fill for this shape.
      • paint

        public void paint​(RMShapePainter aPntr,
                          RMShape aShape)
        Render this fill in a Java2D Graphics2D.
      • hasAlpha

        public boolean hasAlpha()
        Returns whether fill has transparency.
      • equals

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

        public RMFill deriveFill​(RMFill aFill)
        Derives an instance of this class from another fill.
      • readAttributes

        protected void readAttributes​(RXElement anElement)
      • toString

        public java.lang.String toString()
        Returns a string representation.
        Overrides:
        toString in class RMObject