001    /**
002     *  This library is free software; you can redistribute it and/or modify it
003     *  under the terms of the GNU Lesser General Public License (LGPL) as
004     *  published by the Free Software Foundation; either version 3.0 of the
005     *  License, or (at your option) any later version.
006     *
007     *  This library is distributed in the hope that it will be useful, but
008     *  WITHOUT ANY WARRANTY; without even the implied warranty of
009     *  MERCHANTABILITY of FITNESS FOR A PARTICULAR PURPOSE. See the GNU
010     *  Lesser General Public License for more details. 
011     */
012    
013    /**
014     * Title:        JBarcodeBean
015     * Description:  Barcode JavaBeans Component
016     * Copyright:    Copyright (C) 2004
017     * Company:      Dafydd Walters
018     */
019    package net.sourceforge.jbarcodebean;
020    
021    import net.sourceforge.jbarcodebean.model.BarcodeStrategy;
022    
023    /**
024     * This class represents the bars, spaces and caption (text) that make up a
025     * fully encoded barcode.  The {@link BarcodeStrategy#encode encode} method
026     * of {@link BarcodeStrategy} returns an instance of this class.
027     */
028    public class EncodedBarcode implements java.io.Serializable {
029    
030      /** The bars and spaces in the barcode */
031      public BarcodeElement[] elements;
032      /** The text caption that is displayed underneath the barcode */
033      public String barcodeLabelText;
034    
035      /** Initializing constructor */
036      public EncodedBarcode(BarcodeElement[] elements, String barcodeLabelText) {
037        this.elements = elements;
038        this.barcodeLabelText = barcodeLabelText;
039      }
040    }