source: other-projects/tipple-android/src/org/mapsforge/android/maps/OverlayTextAudioItem.java@ 26523

Last change on this file since 26523 was 26523, checked in by davidb, 11 years ago

A version of Tipple with the mods Casey made for her Masters work

File size: 2.6 KB
Line 
1package org.mapsforge.android.maps;
2
3/**
4 * An OverlayTextAudioItem holds all parameters of a single element (capable of
5 * displaying text and/or audio in {@link ItemizedOverlay}. If the item has not
6 * raw audio file, then it will use Text-To-Speech (TTS) to synthesize the audio
7 */
8public class OverlayTextAudioItem extends OverlayItem {
9 protected final String ttsSnippet;
10 protected final String audioFile;
11 private String chapter;
12 private String bookID;
13
14 /**
15 * Constructs a new OverlayTextAduioItem.
16 *
17 * @param point
18 * the geographical position of the item.
19 * @param title
20 * the title of the item.
21 * @param snippet
22 * the short description of the item.
23 * @param tts_snippet
24 * optinal phonetically based version of the short description;
25 * can be null in which case the text in snippet is used.
26 * @param audio
27 * the audio file to use
28 * @param chapter
29 * the chapter of the item
30 */
31 public OverlayTextAudioItem(GeoPoint point, String title, String snippet,
32 String ttsSnippet, String Chapter, String audio, String bookId) {
33 super(point, title, snippet);
34 this.ttsSnippet = (ttsSnippet != null) ? ttsSnippet : snippet;
35 this.chapter = Chapter;
36 this.audioFile = audio;
37 this.bookID = bookId;
38 }
39
40 public OverlayTextAudioItem(GeoPoint point, String title, String snippet,
41 String ttsSnippet, String Chapter, String bookID) {
42 super(point, title, snippet);
43 this.ttsSnippet = (ttsSnippet != null) ? ttsSnippet : snippet;
44 this.chapter = Chapter;
45 this.audioFile = null;
46 this.bookID = bookID;
47 }
48
49 public OverlayTextAudioItem(GeoPoint point, String title, String snippet,
50 String ttsSnippet, String Chapter) {
51 super(point, title, snippet);
52 this.ttsSnippet = (ttsSnippet != null) ? ttsSnippet : snippet;
53 this.chapter = Chapter;
54 this.audioFile = null;
55
56 }
57
58 /**
59 * Constructs a new OverlayTextAudioItem.
60 *
61 * @param point
62 * the geographical position of the item.
63 * @param title
64 * the title of the item.
65 * @param chapter
66 * the chater of the item
67 * @param snippet
68 * the short description of the item.
69 */
70 public OverlayTextAudioItem(GeoPoint point, String title, String snippet,
71 String ttsSnippet) {
72 super(point, title, snippet);
73 this.ttsSnippet = (ttsSnippet != null) ? ttsSnippet : snippet;
74 this.audioFile = null;
75
76 }
77
78 public String getChapter() {
79 return chapter;
80 }
81
82 public String getNodeID() {
83 return bookID;
84 }
85
86 public String getTTSSnippet() {
87 return ttsSnippet;
88 }
89}
Note: See TracBrowser for help on using the repository browser.