public enum EncodeHintType extends java.lang.Enum<EncodeHintType>
列挙型定数 | 説明 |
---|---|
AZTEC_LAYERS |
Specifies the required number of layers for an Aztec code.
|
CHARACTER_SET |
Specifies what character encoding to use where applicable (type
String ) |
DATA_MATRIX_SHAPE |
Specifies the matrix shape for Data Matrix (type com.google.zxing.datamatrix.encoder.SymbolShapeHint)
|
ERROR_CORRECTION |
Specifies what degree of error correction to use, for example in QR Codes.
|
MARGIN |
Specifies margin, in pixels, to use when generating the barcode.
|
MAX_SIZE |
推奨されていません。
without replacement
|
MIN_SIZE |
推奨されていません。
use width/height params in
com.google.zxing.datamatrix.DataMatrixWriter#encode(String, BarcodeFormat, int, int)
|
PDF417_COMPACT |
Specifies whether to use compact mode for PDF417 (type
Boolean , or "true" or "false"
String value). |
PDF417_COMPACTION |
Specifies what compaction mode to use for PDF417 (type
com.google.zxing.pdf417.encoder.Compaction Compaction or
String value of one of its
enum values). |
PDF417_DIMENSIONS |
Specifies the minimum and maximum number of rows and columns for PDF417 (type
com.google.zxing.pdf417.encoder.Dimensions Dimensions).
|
QR_VERSION |
Specifies the exact version of QR code to be encoded.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static EncodeHintType |
valueOf(java.lang.String name) |
指定した名前を持つこの型の列挙型定数を返します。
文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に
一致している必要があります。(余分な空白文字を含めることは
できません。)
|
static EncodeHintType[] |
values() |
この列挙型の定数を含む配列を宣言されている順序で返します。
このメソッドは次のようにして定数を反復するために
使用できます:
for (EncodeHintType c : EncodeHintType.values()) System.out.println(c); |
public static final EncodeHintType ERROR_CORRECTION
ErrorCorrectionLevel
.
For Aztec it is of type Integer
, representing the minimal percentage of error correction words.
For PDF417 it is of type Integer
, valid values being 0 to 8.
In all cases, it can also be a String
representation of the desired value as well.
Note: an Aztec symbol should have a minimum of 25% EC words.public static final EncodeHintType CHARACTER_SET
String
)public static final EncodeHintType DATA_MATRIX_SHAPE
@Deprecated public static final EncodeHintType MIN_SIZE
@Deprecated public static final EncodeHintType MAX_SIZE
public static final EncodeHintType MARGIN
Integer
, or String
representation of the integer value).public static final EncodeHintType PDF417_COMPACT
Boolean
, or "true" or "false"
String
value).public static final EncodeHintType PDF417_COMPACTION
String
value of one of its
enum values).public static final EncodeHintType PDF417_DIMENSIONS
public static final EncodeHintType AZTEC_LAYERS
Integer
, or String
representation of the integer value).public static final EncodeHintType QR_VERSION
Integer
, or String
representation of the integer value).public static EncodeHintType[] values()
for (EncodeHintType c : EncodeHintType.values()) System.out.println(c);
public static EncodeHintType valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合