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 775 2008-12-22 13:46:26Z paultaylor $
 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 within ID3v2. It is also used by Flac format Picture blocks
 31  
  * and WMA Picture fields.
 32  
  */
 33  
 public class PictureTypes extends AbstractIntStringValuePair
 34  
 {
 35  
     private static PictureTypes pictureTypes;
 36  
 
 37  
     public static PictureTypes getInstanceOf()
 38  
     {
 39  1070
         if (pictureTypes == null)
 40  
         {
 41  4
             pictureTypes = new PictureTypes();
 42  
         }
 43  1070
         return pictureTypes;
 44  
     }
 45  
 
 46  
     public static final int PICTURE_TYPE_FIELD_SIZE = 1;
 47  
     public static final String DEFAULT_VALUE = "Cover (front)";
 48  4
     public static final Integer DEFAULT_ID = 3;
 49  
 
 50  
     private PictureTypes()
 51  4
     {
 52  4
         idToValue.put(0, "Other");
 53  4
         idToValue.put(1, "32x32 pixels 'file icon' (PNG only)");
 54  4
         idToValue.put(2, "Other file icon");
 55  4
         idToValue.put(3, "Cover (front)");
 56  4
         idToValue.put(4, "Cover (back)");
 57  4
         idToValue.put(5, "Leaflet page");
 58  4
         idToValue.put(6, "Media (e.g. label side of CD)");
 59  4
         idToValue.put(7, "Lead artist/lead performer/soloist");
 60  4
         idToValue.put(8, "Artist/performer");
 61  4
         idToValue.put(9, "Conductor");
 62  4
         idToValue.put(10, "Band/Orchestra");
 63  4
         idToValue.put(11, "Composer");
 64  4
         idToValue.put(12, "Lyricist/text writer");
 65  4
         idToValue.put(13, "Recording Location");
 66  4
         idToValue.put(14, "During recording");
 67  4
         idToValue.put(15, "During performance");
 68  4
         idToValue.put(16, "Movie/video screen capture");
 69  4
         idToValue.put(17, "A bright coloured fish");
 70  4
         idToValue.put(18, "Illustration");
 71  4
         idToValue.put(19, "Band/artist logotype");
 72  4
         idToValue.put(20, "Publisher/Studio logotype");
 73  
 
 74  4
         createMaps();
 75  4
     }
 76  
 
 77  
 }