afreechart/src/main/java/org/afree/chart/renderer/LookupPaintScale.java
/**
     * Adds an entry to the lookup table.  Any values from <code>n</code> up
     * to but not including the next value in the table take on the specified
     * <code>paint</code>.
     *
     * @param value  the data value.
     * @param paintType  the paint.
     *
     * @since JFreeChart 1.0.6
     */
Adds an entry to the lookup table.  Any values from n up
to but not including the next value in the table take on the specified
paint.

@param value  the data value.
@param paintType  the paint.


Adds an entry to the lookup table . Any values from n up to but not including the next value in the table take on the specified paint . @param value the data value . @param paintType the paint .
public void add(double value, PaintType paintType) {
        PaintItem item = new PaintItem(value, paintType);
        int index = Collections.binarySearch(this.lookupTable, item);
        if (index >= 0) {
            this.lookupTable.set(index, item);
        }
        else {
            this.lookupTable.add(-(index + 1), item);
        }
    }
public void add ( double value , PaintType paintType ) { PaintItem item = new PaintItem ( value , paintType ) ; int index = Collections . binarySearch ( this . lookupTable , item ) ; if ( index >= 0 ) { this . lookupTable . set ( index , item ) ; } else { this . lookupTable . add ( - ( index + 1 ) , item ) ; } }
Adds an entry to the lookup table.
Adds an entry to the lookup table .