Class HTMLColorSliderModel


  • public class HTMLColorSliderModel
    extends RGBColorSliderModel
    ColorSliderModel for the HTML color model (red, green, blue, restricted to values considered as web-save).
    • Constructor Detail

      • HTMLColorSliderModel

        public HTMLColorSliderModel()
        Creates a new instance.
    • Method Detail

      • getInterpolatedRGB

        public int getInterpolatedRGB​(int component,
                                      float value)
        Description copied from class: ColorSliderModel
        Returns an interpolated RGB value by using the values of the color components of this ColorSliderModel except for the component specified as an argument. For this component the ratio between zero and the maximum of its BoundedRangeModel is used.
        Overrides:
        getInterpolatedRGB in class ColorSliderModel
      • setWebSaveOnly

        public void setWebSaveOnly​(boolean b)
      • isWebSaveOnly

        public boolean isWebSaveOnly()
      • isWebSave

        public static boolean isWebSave​(int rgb)
      • toWebSave

        public static int toWebSave​(int rgb)