Debian Codegraph @

src/com/drew/metadata/mov/media/QuickTimeTextDirectory.java

raw symbols SCIP
1 /*
2 * Copyright 2002-2019 Drew Noakes and contributors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * More information about this project is available at:
17 *
18 * https://drewnoakes.com/code/exif/
19 * https://github.com/drewnoakes/metadata-extractor
20 */
21 package com.drew.metadata.mov.media;
22
23 import com.drew.lang.annotations.NotNull;
24 import com.drew.metadata.mov.QuickTimeDirectory;
25
26 import java.util.HashMap;
27
28 /**
29 * @author Payton Garland
30 */
31 public class QuickTimeTextDirectory extends QuickTimeDirectory
32 {
33 // Text Media Description Atom
34 public static final int TAG_AUTO_SCALE = 1;
35 public static final int TAG_MOVIE_BACKGROUND_COLOR = 2;
36 public static final int TAG_SCROLL_IN = 3;
37 public static final int TAG_SCROLL_OUT = 4;
38 public static final int TAG_HORIZONTAL_SCROLL = 5;
39 public static final int TAG_REVERSE_SCROLL = 6;
40 public static final int TAG_CONTINUOUS_SCROLL = 7;
41 public static final int TAG_DROP_SHADOW = 8;
42 public static final int TAG_ANTI_ALIAS = 9;
43 public static final int TAG_KEY_TEXT = 10;
44 public static final int TAG_JUSTIFICATION = 11;
45 public static final int TAG_BACKGROUND_COLOR = 12;
46 public static final int TAG_DEFAULT_TEXT_BOX = 13;
47 public static final int TAG_FONT_NUMBER = 14;
48 public static final int TAG_FONT_FACE = 15;
49 public static final int TAG_FOREGROUND_COLOR = 16;
50 public static final int TAG_NAME = 17;
51
52 public QuickTimeTextDirectory()
53 {
54 this.setDescriptor(new QuickTimeTextDescriptor(this));
55 }
56
57 @NotNull
58 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
59
60 static
61 {
62 QuickTimeMediaDirectory.addQuickTimeMediaTags(_tagNameMap);
63 _tagNameMap.put(TAG_AUTO_SCALE, "Auto Scale");
64 _tagNameMap.put(TAG_MOVIE_BACKGROUND_COLOR, "Use Background Color");
65 _tagNameMap.put(TAG_SCROLL_IN, "Scroll In");
66 _tagNameMap.put(TAG_SCROLL_OUT, "Scroll Out");
67 _tagNameMap.put(TAG_HORIZONTAL_SCROLL, "Scroll Orientation");
68 _tagNameMap.put(TAG_REVERSE_SCROLL, "Scroll Direction");
69 _tagNameMap.put(TAG_CONTINUOUS_SCROLL, "Continuous Scroll");
70 _tagNameMap.put(TAG_DROP_SHADOW, "Drop Shadow");
71 _tagNameMap.put(TAG_ANTI_ALIAS, "Anti-aliasing");
72 _tagNameMap.put(TAG_KEY_TEXT, "Display Text Background Color");
73 _tagNameMap.put(TAG_JUSTIFICATION, "Alignment");
74 _tagNameMap.put(TAG_BACKGROUND_COLOR, "Background Color");
75 _tagNameMap.put(TAG_DEFAULT_TEXT_BOX, "Default Text Box");
76 _tagNameMap.put(TAG_FONT_NUMBER, "Font Number");
77 _tagNameMap.put(TAG_FONT_FACE, "Font Face");
78 _tagNameMap.put(TAG_FOREGROUND_COLOR, "Foreground Color");
79 _tagNameMap.put(TAG_NAME, "Font Name");
80 }
81
82 @Override
83 @NotNull
84 public String getName()
85 {
86 return "QuickTime Text";
87 }
88
89 @Override
90 @NotNull
91 protected HashMap<Integer, String> getTagNameMap()
92 {
93 return _tagNameMap;
94 }
95 }