net.sourceforge.jbarcodebean.model
Class Code39_2to1

java.lang.Object
  extended by net.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy
      extended by net.sourceforge.jbarcodebean.model.BaseCode39
          extended by net.sourceforge.jbarcodebean.model.Code39
              extended by net.sourceforge.jbarcodebean.model.Code39_2to1
All Implemented Interfaces:
java.io.Serializable, BarcodeStrategy

public class Code39_2to1
extends Code39
implements java.io.Serializable

This class, which implements the BarcodeStrategy interface, knows how to encode the 2:1 (narrow) variant of the Code 3 of 9 barcode type.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy
AbstractBarcodeStrategy.CharacterCode
 
Field Summary
 
Fields inherited from class net.sourceforge.jbarcodebean.model.BaseCode39
codes, codes2to1
 
Fields inherited from interface net.sourceforge.jbarcodebean.model.BarcodeStrategy
MANDATORY_CHECKSUM, NO_CHECKSUM, OPTIONAL_CHECKSUM
 
Constructor Summary
Code39_2to1()
           
 
Method Summary
protected  AbstractBarcodeStrategy.CharacterCode[] getCodes()
          This implementation of getCodes returns BaseCode39.codes2to1.
 
Methods inherited from class net.sourceforge.jbarcodebean.model.Code39
getBarcodeLabelText, preprocess
 
Methods inherited from class net.sourceforge.jbarcodebean.model.BaseCode39
augmentWithChecksum, getMarginWidth, getStartSentinel, getStopSentinel, isInterleaved, postprocess, requiresChecksum
 
Methods inherited from class net.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy
computeSize, encode, getCharacterCode, getCharacterCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Code39_2to1

public Code39_2to1()
Method Detail

getCodes

protected AbstractBarcodeStrategy.CharacterCode[] getCodes()
This implementation of getCodes returns BaseCode39.codes2to1.

Overrides:
getCodes in class Code39
Returns:
An array of CharacterCode objects, one for each possible character that can be encoded using this strategy.


Copyright © 2004-2009 The JBarcodeBean project. All Rights Reserved.