Class WGradient.ColorStop

java.lang.Object
eu.webtoolkit.jwt.WGradient.ColorStop
Enclosing class:
WGradient

public static class WGradient.ColorStop extends Object
A gradient color stop.

A color stop is defined by a color and a (relative) position. The interpretation of the position depends on the gradient style.

See Also:
  • Constructor Details

    • ColorStop

      public ColorStop(double position, WColor color)
      Constructor.
  • Method Details

    • getPosition

      public double getPosition()
      Returns the position.
    • getColor

      public WColor getColor()
      Returns the color.
    • equals

      public boolean equals(WGradient.ColorStop other)
      Indicates whether some other object is "equal to" this one.