public enum TwoDComponentType extends java.lang.Enum<TwoDComponentType>
String codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_COMPOSITE_BAR, codetext);
generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS_1_CODE_128);
generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
// Aspect ratio of 2D component
generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
// X-Dimension of 1D and 2D components
generator.getParameters().getBarcode().getXDimension().setPixels(3);
// Height of 1D component
generator.getParameters().getBarcode().getBarHeight().setPixels(100);
generator.save("test.png");
Enum Constant and Description |
---|
AUTO
Auto select type of 2D component
|
CC_A
CC-A type of 2D component.
|
CC_B
CC-B type of 2D component.
|
CC_C
CC-C type of 2D component.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static TwoDComponentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TwoDComponentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TwoDComponentType AUTO
public static final TwoDComponentType CC_A
public static final TwoDComponentType CC_B
public static final TwoDComponentType CC_C
public static TwoDComponentType[] values()
for (TwoDComponentType c : TwoDComponentType.values()) System.out.println(c);
public static TwoDComponentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()