Class GradientColorParser


  • public class GradientColorParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GradientColorParser​(int colorPoints)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GradientColor parse​(JsonReader reader, float scale)
      Both the color stops and opacity stops are in the same array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradientColorParser

        public GradientColorParser​(int colorPoints)
    • Method Detail

      • parse

        public GradientColor parse​(JsonReader reader,
                                   float scale)
                            throws java.io.IOException
        Both the color stops and opacity stops are in the same array. There are colorPoints colors sequentially as: [ ..., position, red, green, blue, ... ]

        The remainder of the array is the opacity stops sequentially as: [ ..., position, opacity, ... ]

        Throws:
        java.io.IOException