src/java.desktop/share/classes/java/awt/image/ColorModel.java

Print this page

        

@@ -401,11 +401,11 @@
      * Returns whether or not alpha is supported in this
      * <code>ColorModel</code>.
      * @return <code>true</code> if alpha is supported in this
      * <code>ColorModel</code>; <code>false</code> otherwise.
      */
-    final public boolean hasAlpha() {
+    public final boolean hasAlpha() {
         return supportsAlpha;
     }
 
     /**
      * Returns whether or not the alpha has been premultiplied in the

@@ -417,22 +417,22 @@
      * alpha sample.
      * @return <code>true</code> if the alpha values are premultiplied
      *          in the pixel values to be translated by this
      *          <code>ColorModel</code>; <code>false</code> otherwise.
      */
-    final public boolean isAlphaPremultiplied() {
+    public final boolean isAlphaPremultiplied() {
         return isAlphaPremultiplied;
     }
 
     /**
      * Returns the transfer type of this <code>ColorModel</code>.
      * The transfer type is the type of primitive array used to represent
      * pixel values as arrays.
      * @return the transfer type.
      * @since 1.3
      */
-    final public int getTransferType() {
+    public final int getTransferType() {
         return transferType;
     }
 
     /**
      * Returns the number of bits per pixel described by this

@@ -1510,11 +1510,11 @@
      * Returns the <code>ColorSpace</code> associated with this
      * <code>ColorModel</code>.
      * @return the <code>ColorSpace</code> of this
      * <code>ColorModel</code>.
      */
-    final public ColorSpace getColorSpace() {
+    public final ColorSpace getColorSpace() {
         return colorSpace;
     }
 
     /**
      * Forces the raster data to match the state specified in the