Class DecoratorColorGradient<T>

java.lang.Object
org.eclipse.nebula.widgets.tiles.Decorator<T,​org.eclipse.swt.graphics.Color>
org.eclipse.nebula.widgets.tiles.DecoratorColor<T>
org.eclipse.nebula.widgets.tiles.DecoratorColorGradient<T>
Type Parameters:
T -

public abstract class DecoratorColorGradient<T>
extends DecoratorColor<T>
A decorator that uses a color gradient
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Gradient gradient
    The gradient
  • Constructor Summary

    Constructors 
    Constructor Description
    DecoratorColorGradient​(Gradient gradient)
    Creates a new instance
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Color decorate​(T element)
    Implement this to decorate elements
    protected abstract double getValue​(T element)
    Returns a value in [0, 1]

    Methods inherited from class org.eclipse.nebula.widgets.tiles.Decorator

    addDecoratorListener, free, removeDecoratorListener, use

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • decorate

      public org.eclipse.swt.graphics.Color decorate​(T element)
      Description copied from class: Decorator
      Implement this to decorate elements
      Specified by:
      decorate in class Decorator<T,​org.eclipse.swt.graphics.Color>
      Returns:
    • getValue

      protected abstract double getValue​(T element)
      Returns a value in [0, 1]
      Parameters:
      value -
      Returns: