Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/drew/metadata/exif/NikonType1MakernoteDirectory.java


1   /*
2    * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
3    */
4   package com.drew.metadata.exif;
5   
6   import com.drew.metadata.Directory;
7   
8   import java.util.HashMap;
9   
10  /**
11   *
12   */
13  public class NikonType1MakernoteDirectory extends Directory
14  {
15      // TYPE1 is for E-Series cameras prior to (not including) E990
16      public static final int TAG_NIKON_TYPE1_UNKNOWN_1 = 0x0002;
17      public static final int TAG_NIKON_TYPE1_QUALITY = 0x0003;
18      public static final int TAG_NIKON_TYPE1_COLOR_MODE = 0x0004;
19      public static final int TAG_NIKON_TYPE1_IMAGE_ADJUSTMENT = 0x0005;
20      public static final int TAG_NIKON_TYPE1_CCD_SENSITIVITY = 0x0006;
21      public static final int TAG_NIKON_TYPE1_WHITE_BALANCE = 0x0007;
22      public static final int TAG_NIKON_TYPE1_FOCUS = 0x0008;
23      public static final int TAG_NIKON_TYPE1_UNKNOWN_2 = 0x0009;
24      public static final int TAG_NIKON_TYPE1_DIGITAL_ZOOM = 0x000A;
25      public static final int TAG_NIKON_TYPE1_CONVERTER = 0x000B;
26      public static final int TAG_NIKON_TYPE1_UNKNOWN_3 = 0x0F00;
27  
28      protected static final HashMap tagNameMap = new HashMap();
29  
30      static
31      {
32          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_CCD_SENSITIVITY), "CCD Sensitivity");
33          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_COLOR_MODE), "Color Mode");
34          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_DIGITAL_ZOOM), "Digital Zoom");
35          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_CONVERTER), "Fisheye Converter");
36          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_FOCUS), "Focus");
37          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_IMAGE_ADJUSTMENT), "Image Adjustment");
38          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_QUALITY), "Quality");
39          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_UNKNOWN_1), "Makernote Unknown 1");
40          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_UNKNOWN_2), "Makernote Unknown 2");
41          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_UNKNOWN_3), "Makernote Unknown 3");
42          tagNameMap.put(new Integer(TAG_NIKON_TYPE1_WHITE_BALANCE), "White Balance");
43      }
44  
45      public NikonType1MakernoteDirectory()
46      {
47          this.setDescriptor(new NikonType1MakernoteDescriptor(this));
48      }
49  
50      public String getName()
51      {
52          return "Nikon Makernote";
53      }
54  
55      protected HashMap getTagNameMap()
56      {
57          return tagNameMap;
58      }
59  }