[]
        
(Showing Draft Content)

EccMode

Enum Class EccMode

java.lang.Object
java.lang.Enum<EccMode>
com.grapecity.documents.excel.EccMode
All Implemented Interfaces:
Serializable, Comparable<EccMode>, Constable

public enum EccMode extends Enum<EccMode>
Specifies the error correction mode used by a DataMatrix barcode.

This enumeration determines how barcode data is protected against errors. Different modes provide different levels of error correction and may affect the generated symbol size. For example, ECC000 uses only a CRC checksum and usually produces the smallest symbol size, while ECC200 is the recommended mode and uses the Reed-Solomon error correction algorithm.


 worksheet.getRange("A1").setValue("Test");
 worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
 IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
 EccMode eccMode = dataMatrix.getEccMode();
 
  • Enum Constant Details

    • ECC000

      public static final EccMode ECC000
      ECC000. This mode encodes data with only a CRC checksum and no additional error checking bits.

      Data encoded with this ECC mode usually requires the smallest symbol size.

    • ECC050

      public static final EccMode ECC050
      Specifies the ECC050 mode for a Data Matrix barcode.

      This value selects one of the legacy ECC000-140 error correction modes.

    • ECC080

      public static final EccMode ECC080
      Specifies the ECC080 mode for a DataMatrix barcode.

      This value selects one of the legacy ECC000-140 error correction modes.

    • ECC100

      public static final EccMode ECC100
      Specifies the ECC100 mode for a DataMatrix barcode.

      This value selects one of the legacy ECC000-140 error correction modes.

    • ECC140

      public static final EccMode ECC140
      Specifies the ECC140 mode for a DataMatrix barcode.

      This value selects one of the legacy ECC000-140 error correction modes.

    • ECC200

      public static final EccMode ECC200
      ECC200. This is the suggested ECC mode.

      Data encoded with this ECC mode is protected by the Reed-Solomon error checking and correction algorithm.

  • Method Details

    • values

      public static EccMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EccMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null