EMMA Coverage Report (generated Wed Feb 13 07:49:24 ICT 2008)
[all classes][net.sourceforge.hiveboard.util]

COVERAGE SUMMARY FOR SOURCE FILE [RGBAImageHolder.java]

nameclass, %method, %block, %line, %
RGBAImageHolder.java100% (1/1)100% (3/3)100% (37/37)100% (5/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RGBAImageHolder100% (1/1)100% (3/3)100% (37/37)100% (5/5)
<static initializer> 100% (1/1)100% (30/30)100% (2/2)
RGBAImageHolder (): void 100% (1/1)100% (5/5)100% (2/2)
getColorModel (): ColorModel 100% (1/1)100% (2/2)100% (1/1)

1//  Copyright 2004-2007 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package net.sourceforge.hiveboard.util;
16 
17import java.awt.color.ColorSpace;
18import java.awt.image.ColorModel;
19import java.awt.image.ComponentColorModel;
20import java.awt.image.DataBuffer;
21 
22public class RGBAImageHolder extends AbstractImageHolder
23{
24        public RGBAImageHolder()
25        {
26                super(RGBA_BYTES_PER_PIXEL, RGBA_BAND_OFFSET);
27        }
28        
29        @Override protected ColorModel        getColorModel()
30        {
31                return RGBA_MODEL;
32        }
33 
34        static final private int                RGBA_BYTES_PER_PIXEL = 4;
35        static final private int[]                RGBA_BAND_OFFSET = new int[] {3, 2, 1, 0};
36        static final private ColorModel        RGBA_MODEL = new ComponentColorModel(
37                                                                                                                ColorSpace.getInstance(
38                                                                                                                                ColorSpace.CS_LINEAR_RGB),
39                                                                                                                true, 
40                                                                                                                false, 
41                                                                                                                ComponentColorModel.TRANSLUCENT,
42                                                                                                                DataBuffer.TYPE_BYTE);
43}

[all classes][net.sourceforge.hiveboard.util]
EMMA 2.0.5312 (C) Vladimir Roubtsov