Class RMGradientFill.ColorStop

  • Enclosing class:
    RMGradientFill

    public static class RMGradientFill.ColorStop
    extends java.lang.Object
    Simple static class to represent a stop (they're immutable).
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorStop​(RMColor aColor, float aPosition)
      Creates a new color stop.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Standard equals implementation.
      RMColor getColor()
      Returns stop color.
      float getPosition()
      Returns stop position.
      java.lang.String toString()
      Standard to string implementation.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ColorStop

        public ColorStop​(RMColor aColor,
                         float aPosition)
        Creates a new color stop.
    • Method Detail

      • getColor

        public RMColor getColor()
        Returns stop color.
      • getPosition

        public float getPosition()
        Returns stop position.
      • equals

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

        public java.lang.String toString()
        Standard to string implementation.
        Overrides:
        toString in class java.lang.Object