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

COVERAGE SUMMARY FOR SOURCE FILE [RGBImageHolder.java]

nameclass, %method, %block, %line, %
RGBImageHolder.java100% (1/1)100% (3/3)100% (33/33)100% (5/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RGBImageHolder100% (1/1)100% (3/3)100% (33/33)100% (5/5)
<static initializer> 100% (1/1)100% (26/26)100% (2/2)
RGBImageHolder (): 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 RGBImageHolder extends AbstractImageHolder
23{
24        public RGBImageHolder()
25        {
26                super(ImageDef.BYTES_PER_PIXEL, RGB_BAND_OFFSET);
27        }
28        
29        @Override protected ColorModel        getColorModel()
30        {
31                return RGB_MODEL;
32        }
33 
34        static final private int[]                RGB_BAND_OFFSET = new int[] {0, 1, 2};
35        static final private ColorModel        RGB_MODEL = new ComponentColorModel(
36                                                                                                        ColorSpace.getInstance(
37                                                                                                                        ColorSpace.CS_LINEAR_RGB),
38                                                                                                        false, 
39                                                                                                        false, 
40                                                                                                        ComponentColorModel.OPAQUE,
41                                                                                                        DataBuffer.TYPE_BYTE);
42}

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