Class RMReflectionEffect

    • Constructor Detail

      • RMReflectionEffect

        public RMReflectionEffect()
    • Method Detail

      • getReflectionHeight

        public float getReflectionHeight()
        Returns the height of the reflected image as fraction of shape height (defaults to 1).
      • setReflectionHeight

        protected void setReflectionHeight​(float aValue)
        Sets the height of the reflected image as fraction of shape height.
      • getFadeHeight

        public float getFadeHeight()
        Returns the height of the faded region as a fraction of reflection height (defaults to .5).
      • setFadeHeight

        protected void setFadeHeight​(float aValue)
        Sets the height of the faded region as a fraction of reflection height.
      • getGapHeight

        public float getGapHeight()
        Returns the height of the gap between the shape and the reflection in points (defaults to 0).
      • setGapHeight

        protected void setGapHeight​(float aValue)
        Sets the height of the gap between the shape and the reflection in points.
      • deriveEffect

        public RMReflectionEffect deriveEffect​(float aReflectionHeight,
                                               float aFadeHeight,
                                               float aGapHeight)
        Creates a new reflection effect by cloning this one and substituting given reflection, fade and gap heights, if greater than zero.
      • getBounds

        public RMRect getBounds​(RMShape aShape)
        Returns the bounds required to render this fill for this shape.
        Overrides:
        getBounds in class RMEffect
      • getImage

        public java.awt.image.BufferedImage getImage​(RMShape aShape)
        Returns the effect image.
        Specified by:
        getImage in class RMImageEffect
      • equals

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