Class ColorStateTable

    • Constructor Detail

      • ColorStateTable

        public ColorStateTable()
      • ColorStateTable

        public ColorStateTable​(java.util.TreeMap<java.lang.Number,​ColorState> clonestates,
                               ColorState fallback)
        This constructor is used for serialization, to overcome a concurrentmodificationexception that occures when using default serialization. We copy the states passed in to make sure that the treemap has OUR comparator
    • Method Detail

      • getColorStateForNumber

        public ColorState getColorStateForNumber​(java.lang.Number n)
      • getStates

        public java.util.TreeMap<java.lang.Number,​ColorState> getStates()
      • setStates

        public void setStates​(java.util.TreeMap<java.lang.Number,​ColorState> map)
      • setFallback

        public void setFallback​(ColorState state)
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object