Package snap.gfx

Class GradientPaint.Stop

java.lang.Object
snap.gfx.GradientPaint.Stop
Enclosing class:
GradientPaint

public static class GradientPaint.Stop extends Object
A class to describe gradient paint stops.
  • Constructor Details

    • Stop

      public Stop(double anOffset, Color aColor)
      Returns a new stop.
  • Method Details

    • getOffset

      public double getOffset()
      Returns the offset.
    • getColor

      public Color getColor()
      Returns the color.
    • equals

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

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