Coverage Report - org.jaudiotagger.tag.reference.PictureTypes
 
Classes in this File Line Coverage Branch Coverage Complexity
PictureTypes
100%
28/28
100%
2/2
1.5
 
 1  
 /**
 2  
  * @author : Paul Taylor
 3  
  * <p/>
 4  
  * Version @version:$Id: PictureTypes.java,v 1.2 2008/01/22 20:38:04 paultaylor Exp $
 5  
  * <p/>
 6  
  * Jaudiotagger Copyright (C)2004,2005
 7  
  * <p/>
 8  
  * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
 9  
  * General Public  License as published by the Free Software Foundation; either version 2.1 of the License,
 10  
  * or (at your option) any later version.
 11  
  * <p/>
 12  
  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 13  
  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 14  
  * See the GNU Lesser General Public License for more details.
 15  
  * <p/>
 16  
  * You should have received a copy of the GNU Lesser General Public License along with this library; if not,
 17  
  * you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
 18  
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 19  
  * <p/>
 20  
  * Description:
 21  
  * Valid Picture Types in ID3
 22  
  */
 23  
 package org.jaudiotagger.tag.reference;
 24  
 
 25  
 import org.jaudiotagger.tag.datatype.AbstractIntStringValuePair;
 26  
 
 27  
 /**
 28  
  * Pictures types for Attached Pictures
 29  
  * <p/>
 30  
  * <P>Note this list is used by APIC and PIC frames. It is also used by Flac format Picture blocks
 31  
  */
 32  
 public class PictureTypes extends AbstractIntStringValuePair
 33  
 {
 34  
     private static PictureTypes pictureTypes;
 35  
 
 36  
     public static PictureTypes getInstanceOf()
 37  
     {
 38  256
         if (pictureTypes == null)
 39  
         {
 40  21
             pictureTypes = new PictureTypes();
 41  
         }
 42  256
         return pictureTypes;
 43  
     }
 44  
 
 45  
     public static final int PICTURE_TYPE_FIELD_SIZE = 1;
 46  
     public static final String DEFAULT_VALUE = "Cover (front)";
 47  22
     public static final Integer DEFAULT_ID = 3;
 48  
 
 49  
     private PictureTypes()
 50  21
     {
 51  21
         idToValue.put(0, "Other");
 52  21
         idToValue.put(1, "32x32 pixels 'file icon' (PNG only)");
 53  21
         idToValue.put(2, "Other file icon");
 54  21
         idToValue.put(3, "Cover (front)");
 55  21
         idToValue.put(4, "Cover (back)");
 56  21
         idToValue.put(5, "Leaflet page");
 57  21
         idToValue.put(6, "Media (e.g. label side of CD)");
 58  21
         idToValue.put(7, "Lead artist/lead performer/soloist");
 59  21
         idToValue.put(8, "Artist/performer");
 60  21
         idToValue.put(9, "Conductor");
 61  21
         idToValue.put(10, "Band/Orchestra");
 62  21
         idToValue.put(11, "Composer");
 63  21
         idToValue.put(12, "Lyricist/text writer");
 64  21
         idToValue.put(13, "Recording Location");
 65  21
         idToValue.put(14, "During recording");
 66  21
         idToValue.put(15, "During performance");
 67  21
         idToValue.put(16, "Movie/video screen capture");
 68  21
         idToValue.put(17, "A bright coloured fish");
 69  21
         idToValue.put(18, "Illustration");
 70  21
         idToValue.put(19, "Band/artist logotype");
 71  21
         idToValue.put(20, "Publisher/Studio logotype");
 72  
 
 73  21
         createMaps();
 74  21
     }
 75  
 
 76  
 }