Class WGradient.ColorStop

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

public static class WGradient.ColorStop
extends java.lang.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:
WGradient.addColorStop(double position, WColor color)
  • Constructor Summary

    Constructors
    Constructor Description
    ColorStop​(double position, WColor color)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(WGradient.ColorStop other)
    Indicates whether some other object is "equal to" this one.
    WColor getColor()
    Returns the color.
    double getPosition()
    Returns the position.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.