Class AdvancedRegionShapeCellRenderer.ColorTable

  • Enclosing class:
    AdvancedRegionShapeCellRenderer

    protected static class AdvancedRegionShapeCellRenderer.ColorTable
    extends java.lang.Object
    Implementation via SortedMap, maybe inefficient for small number of entries
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.SortedMap<java.lang.Float,​java.awt.Color> colors  
      protected java.util.Map<java.lang.Integer,​java.awt.Color> interpolBuf  
      protected java.util.List<java.lang.Integer> interpolLookup  
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorTable()
      Creates a new ColorTable object.
    • Field Detail

      • colors

        protected java.util.SortedMap<java.lang.Float,​java.awt.Color> colors
      • interpolBuf

        protected java.util.Map<java.lang.Integer,​java.awt.Color> interpolBuf
      • interpolLookup

        protected java.util.List<java.lang.Integer> interpolLookup
    • Constructor Detail

      • ColorTable

        public ColorTable()
        Creates a new ColorTable object.
    • Method Detail

      • addEntry

        public java.awt.Color addEntry​(float val,
                                       java.awt.Color col)
        DOCUMENT-ME
      • removeEntry

        public void removeEntry​(float val)
        DOCUMENT-ME
      • removeAll

        public void removeAll()
        DOCUMENT-ME
      • clearBuffer

        protected void clearBuffer()
      • getColors

        public java.util.Collection<java.awt.Color> getColors()
        DOCUMENT-ME
      • getValues

        public java.util.Collection<java.lang.Float> getValues()
        DOCUMENT-ME
      • getEntries

        public java.util.Collection<java.util.Map.Entry<java.lang.Float,​java.awt.Color>> getEntries()
        DOCUMENT-ME
      • hasValue

        public boolean hasValue​(float f)
        DOCUMENT-ME
      • getColorAt

        public java.awt.Color getColorAt​(float f)
        DOCUMENT-ME
      • interpolate

        public java.awt.Color interpolate​(float f)
        DOCUMENT-ME