~ubuntu-branches/ubuntu/raring/brailleutils/raring

« back to all changes in this revision

Viewing changes to catalog/com_indexbraille/IndexEmbosserProvider.java

  • Committer: Package Import Robot
  • Author(s): Sebastian Humenda
  • Date: 2011-08-27 12:21:13 UTC
  • Revision ID: package-import@ubuntu.com-20110827122113-72udcdbhzrqtdlgx
Tags: upstream-1.2~b
ImportĀ upstreamĀ versionĀ 1.2~b

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Braille Utils (C) 2010-2011 Daisy Consortium 
 
3
 * 
 
4
 * This library is free software; you can redistribute it and/or modify it under
 
5
 * the terms of the GNU Lesser General Public License as published by the Free
 
6
 * Software Foundation; either version 2.1 of the License, or (at your option)
 
7
 * any later version.
 
8
 * 
 
9
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
11
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
12
 * details.
 
13
 * 
 
14
 * You should have received a copy of the GNU Lesser General Public License
 
15
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 
16
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
17
 */
 
18
package com_indexbraille;
 
19
 
 
20
import java.util.Collection;
 
21
import java.util.HashMap;
 
22
 
 
23
import org.daisy.braille.embosser.Embosser;
 
24
import org.daisy.braille.embosser.EmbosserProvider;
 
25
 
 
26
public class IndexEmbosserProvider implements EmbosserProvider {
 
27
        public static enum EmbosserType {
 
28
                INDEX_3_7,
 
29
                INDEX_ADVANCED,
 
30
                INDEX_BASIC_BLUE_BAR,
 
31
                INDEX_CLASSIC,
 
32
                INDEX_DOMINO,
 
33
                INDEX_EVEREST_S_V1,
 
34
                INDEX_EVEREST_D_V1,
 
35
                INDEX_BASIC_S_V2,
 
36
                INDEX_BASIC_D_V2,
 
37
                INDEX_EVEREST_D_V2,
 
38
                INDEX_4X4_PRO_V2,
 
39
                INDEX_BASIC_S_V3,
 
40
                INDEX_BASIC_D_V3,
 
41
                INDEX_EVEREST_D_V3,
 
42
                INDEX_4X4_PRO_V3,
 
43
                INDEX_4WAVES_PRO_V3,
 
44
                INDEX_BASIC_D_V4,
 
45
                INDEX_EVEREST_D_V4,
 
46
                INDEX_BRAILLE_BOX_V4
 
47
        };
 
48
 
 
49
        private final HashMap<EmbosserType, Embosser> embossers;
 
50
 
 
51
        public IndexEmbosserProvider() {
 
52
                embossers = new HashMap<EmbosserType, Embosser>();
 
53
                embossers.put(EmbosserType.INDEX_BASIC_BLUE_BAR, new BlueBarEmbosser("Index Basic Blue-Bar", "Early Index Basic embosser"));
 
54
                embossers.put(EmbosserType.INDEX_BASIC_S_V2,     new IndexV2Embosser("Index Basic-S V2","", EmbosserType.INDEX_BASIC_S_V2));
 
55
                embossers.put(EmbosserType.INDEX_BASIC_D_V2,     new IndexV2Embosser("Index Basic-D V2","", EmbosserType.INDEX_BASIC_D_V2));
 
56
                embossers.put(EmbosserType.INDEX_EVEREST_D_V2,   new IndexV2Embosser("Index Everest-D V2","", EmbosserType.INDEX_EVEREST_D_V2));
 
57
                embossers.put(EmbosserType.INDEX_4X4_PRO_V2,     new IndexV2Embosser("Index 4X4 Pro V2","", EmbosserType.INDEX_4X4_PRO_V2));
 
58
                embossers.put(EmbosserType.INDEX_EVEREST_D_V3,   new IndexV3Embosser("Index Everest-D V3","", EmbosserType.INDEX_EVEREST_D_V3));
 
59
                embossers.put(EmbosserType.INDEX_BASIC_S_V3,     new IndexV3Embosser("Index Basic-S V3","", EmbosserType.INDEX_BASIC_S_V3));
 
60
                embossers.put(EmbosserType.INDEX_BASIC_D_V3,     new IndexV3Embosser("Index Basic-D V3","", EmbosserType.INDEX_BASIC_D_V3));
 
61
                embossers.put(EmbosserType.INDEX_4X4_PRO_V3,     new IndexV3Embosser("Index 4X4 Pro V3","", EmbosserType.INDEX_4X4_PRO_V3));
 
62
                embossers.put(EmbosserType.INDEX_4WAVES_PRO_V3,  new IndexV3Embosser("Index 4Waves Pro","", EmbosserType.INDEX_4WAVES_PRO_V3));
 
63
                embossers.put(EmbosserType.INDEX_BASIC_D_V4,     new IndexV4Embosser("Index Basic-D V4","", EmbosserType.INDEX_BASIC_D_V4));
 
64
                embossers.put(EmbosserType.INDEX_EVEREST_D_V4,   new IndexV4Embosser("Index Everest-D V4","", EmbosserType.INDEX_EVEREST_D_V4));
 
65
              //embossers.put(EmbosserType.INDEX_BRAILLE_BOX_V4, new IndexV4Embosser("Index Braille Box","", EmbosserType.INDEX_BRAILLE_BOX_V4));
 
66
        }
 
67
 
 
68
        //jvm1.6@Override
 
69
        public Collection<Embosser> list() {
 
70
                return embossers.values();
 
71
        }
 
72
 
 
73
}