LayerAPI.getCurrentClassifRanges

 

int getCurrentClassifRanges()

This method returns the current number of classification ranges for the layer, if the layer is currently range-classified.  Otherwise, it returns zero. (See doUniqueClassification, doRangeClassification, and declassify.)