jdk/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java
changeset 29252 d4f5e0996bf2
parent 25859 3317bb8137f4
child 35667 ed476aba94de
equal deleted inserted replaced
29251:91308c984504 29252:d4f5e0996bf2
   544      * @since 1.4
   544      * @since 1.4
   545      */
   545      */
   546     public float getMinValue(int component) {
   546     public float getMinValue(int component) {
   547         if ((component < 0) || (component > this.getNumComponents() - 1)) {
   547         if ((component < 0) || (component > this.getNumComponents() - 1)) {
   548             throw new IllegalArgumentException(
   548             throw new IllegalArgumentException(
   549                 "Component index out of range: + component");
   549                 "Component index out of range: " + component);
   550         }
   550         }
   551         return minVal[component];
   551         return minVal[component];
   552     }
   552     }
   553 
   553 
   554     /**
   554     /**
   569      * @since 1.4
   569      * @since 1.4
   570      */
   570      */
   571     public float getMaxValue(int component) {
   571     public float getMaxValue(int component) {
   572         if ((component < 0) || (component > this.getNumComponents() - 1)) {
   572         if ((component < 0) || (component > this.getNumComponents() - 1)) {
   573             throw new IllegalArgumentException(
   573             throw new IllegalArgumentException(
   574                 "Component index out of range: + component");
   574                 "Component index out of range: " + component);
   575         }
   575         }
   576         return maxVal[component];
   576         return maxVal[component];
   577     }
   577     }
   578 
   578 
   579     private void setMinMax() {
   579     private void setMinMax() {