Class ColorTuple

java.lang.Object
org.eclipse.nebula.visualization.widgets.datadefinition.ColorTuple
All Implemented Interfaces:
java.lang.Comparable<ColorTuple>

public class ColorTuple
extends java.lang.Object
implements java.lang.Comparable<ColorTuple>
A color Tuple which include a double value and rgb value.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    org.eclipse.swt.graphics.RGB rgb  
    double value  
  • Constructor Summary

    Constructors 
    Constructor Description
    ColorTuple​(double value, org.eclipse.swt.graphics.RGB rgb)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(ColorTuple o)  
    boolean equals​(java.lang.Object obj)  
    int hashCode()  

    Methods inherited from class java.lang.Object

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

    • value

      public double value
    • rgb

      public org.eclipse.swt.graphics.RGB rgb
  • Constructor Details

    • ColorTuple

      public ColorTuple​(double value, org.eclipse.swt.graphics.RGB rgb)
  • Method Details

    • compareTo

      public int compareTo​(ColorTuple o)
      Specified by:
      compareTo in interface java.lang.Comparable<ColorTuple>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object