Class ColorRamp


  • public final class ColorRamp
    extends java.lang.Object
    Represents a color ramp that can be applied to some of the raster renderers.
    Since:
    100.0.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ColorRamp.PresetType
      Defines presets for type of color ramp.
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorRamp​(ColorRamp.PresetType colorRampType, int size)
      Creates an instance of color ramp with predefined color ramp type and size.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ColorRamp

        public ColorRamp​(ColorRamp.PresetType colorRampType,
                         int size)
        Creates an instance of color ramp with predefined color ramp type and size.
        Parameters:
        colorRampType - type of color ramp
        size - size of the color ramp
        Throws:
        java.lang.IllegalArgumentException - if colorRampType is null
        Since:
        100.0.0