Class IndicatorColorScheme.ColorIntervalResponse

java.lang.Object
velox.api.layer1.messages.indicators.IndicatorColorScheme.ColorIntervalResponse
Enclosing interface:
IndicatorColorScheme

public static class IndicatorColorScheme.ColorIntervalResponse
extends java.lang.Object
Describes all color changes in given interval
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String[] colors  
    double[] dots  
  • Constructor Summary

    Constructors 
    Constructor Description
    ColorIntervalResponse​(java.lang.String[] colors, double[] dots)
    0th color is used for all values <= 0th dot
    1th color is used for all values > 0th dot and <= 1th dot
    ...
    last color is used for all values > last dot
    size of dots list = size of colors list - 1
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • colors

      public final java.lang.String[] colors
    • dots

      public final double[] dots
  • Constructor Details

    • ColorIntervalResponse

      public ColorIntervalResponse​(java.lang.String[] colors, double[] dots)
      0th color is used for all values <= 0th dot
      1th color is used for all values > 0th dot and <= 1th dot
      ...
      last color is used for all values > last dot
      size of dots list = size of colors list - 1
      Parameters:
      colors -
      dots -