2
* Braille Utils (C) 2010-2011 Daisy Consortium
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)
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
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
18
package com_indexbraille;
20
import java.util.Collection;
21
import java.util.HashMap;
23
import org.daisy.braille.embosser.Embosser;
24
import org.daisy.braille.embosser.EmbosserProvider;
26
public class IndexEmbosserProvider implements EmbosserProvider {
27
public static enum EmbosserType {
49
private final HashMap<EmbosserType, Embosser> embossers;
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));
69
public Collection<Embosser> list() {
70
return embossers.values();