View Javadoc

1   /**
2    *  This library is free software; you can redistribute it and/or modify it
3    *  under the terms of the GNU Lesser General Public License (LGPL) as
4    *  published by the Free Software Foundation; either version 3.0 of the
5    *  License, or (at your option) any later version.
6    *
7    *  This library is distributed in the hope that it will be useful, but
8    *  WITHOUT ANY WARRANTY; without even the implied warranty of
9    *  MERCHANTABILITY of FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10   *  Lesser General Public License for more details. 
11   */
12  
13  /**
14   * Title:        JBarcodeBean
15   * Description:  Barcode JavaBeans Component
16   * Copyright:    Copyright (C) 2004
17   * Company:      Dafydd Walters
18   */
19  package net.sourceforge.jbarcodebean;
20  
21  import net.sourceforge.jbarcodebean.model.BarcodeStrategy;
22  
23  /**
24   * This class represents the bars, spaces and caption (text) that make up a
25   * fully encoded barcode.  The {@link BarcodeStrategy#encode encode} method
26   * of {@link BarcodeStrategy} returns an instance of this class.
27   */
28  public class EncodedBarcode implements java.io.Serializable {
29  
30    /** The bars and spaces in the barcode */
31    public BarcodeElement[] elements;
32    /** The text caption that is displayed underneath the barcode */
33    public String barcodeLabelText;
34  
35    /** Initializing constructor */
36    public EncodedBarcode(BarcodeElement[] elements, String barcodeLabelText) {
37      this.elements = elements;
38      this.barcodeLabelText = barcodeLabelText;
39    }
40  }