DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements.barcoding
Class DataMatrixBarCode

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.TaggablePageElement
          extended by com.cete.dynamicpdf.pageelements.barcoding.Dim2Barcode
              extended by com.cete.dynamicpdf.pageelements.barcoding.DataMatrixBarCode
All Implemented Interfaces:
ICoordinate

public class DataMatrixBarCode
extends Dim2Barcode

Represents a Data Matrix bar code. This class can be used to generate Data Matrix bar code

Licensing:
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
DataMatrixBarCode(byte[] value, float x, float y)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(byte[] value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(byte[] value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize, DataMatrixEncodingType dataMatrixEncodingType)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(byte[] value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize, DataMatrixEncodingType dataMatrixEncodingType, DataMatrixFunctionCharacter dataMatrixFunctionCharacter)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(java.lang.String value, float x, float y)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(java.lang.String value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(java.lang.String value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize, DataMatrixEncodingType dataMatrixEncodingType)
          Creates a new instance of DataMatrixBarcode.
DataMatrixBarCode(java.lang.String value, float x, float y, DataMatrixSymbolSize dataMatrixSymbolSize, DataMatrixEncodingType dataMatrixEncodingType, DataMatrixFunctionCharacter dataMatrixFunctionCharacter)
          Creates a new instance of DataMatrixBarcode.
 
Method Summary
 void draw(PageWriter writer)
          Draws the barcode to the given PageWriter object.
 DataMatrixBarCode getOverFlowDataMatrixBarcode()
          Gets a new instance of DataMatrixBarCode object.
 DataMatrixBarCode getOverFlowDataMatrixBarcode(float x, float y)
          Gets a new instance of DataMatrixBarCode object.
 boolean getProcessTilde()
          Gets a value indicating if the tilde character should be processed.
 float getSymbolHeight()
          Gets required height for drawing Data Matrix bat code.
 float getSymbolWidth()
          Gets required width for drawing Data Matrix bar code.
 void setProcessTilde(boolean value)
          Sets a value indicating if the tilde character should be processed.
 
Methods inherited from class com.cete.dynamicpdf.pageelements.barcoding.Dim2Barcode
getAngle, getColor, getPixelsPerXDimension, getX, getXDimension, getXDimensionMilliMeters, getXDimensionMils, getXDimensionsPerCentiMeter, getXDimensionsPerInch, getY, setAngle, setColor, setPixelsPerXDimension, setX, setXDimension, setXDimensionMilliMeters, setXDimensionMils, setXDimensionsPerCentiMeter, setXDimensionsPerInch, setY
 
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement
getTag, getTagOrder, setTag, setTagOrder
 
Methods inherited from class com.cete.dynamicpdf.PageElement
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMatrixBarCode

public DataMatrixBarCode(java.lang.String value,
                         float x,
                         float y)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(byte[] value,
                         float x,
                         float y)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(java.lang.String value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(byte[] value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(java.lang.String value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize,
                         DataMatrixEncodingType dataMatrixEncodingType)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.
dataMatrixEncodingType - The encoding type of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(byte[] value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize,
                         DataMatrixEncodingType dataMatrixEncodingType)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.
dataMatrixEncodingType - The encoding type of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(byte[] value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize,
                         DataMatrixEncodingType dataMatrixEncodingType,
                         DataMatrixFunctionCharacter dataMatrixFunctionCharacter)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.
dataMatrixEncodingType - The encoding type of the barcode.
dataMatrixFunctionCharacter - The function character of the barcode.

DataMatrixBarCode

public DataMatrixBarCode(java.lang.String value,
                         float x,
                         float y,
                         DataMatrixSymbolSize dataMatrixSymbolSize,
                         DataMatrixEncodingType dataMatrixEncodingType,
                         DataMatrixFunctionCharacter dataMatrixFunctionCharacter)
Creates a new instance of DataMatrixBarcode.

Parameters:
value - The value of the barcode.
x - The X coordinate of the barcode.
y - The Y coordinate of the barcode.
dataMatrixSymbolSize - The symbol size of the barcode.
dataMatrixEncodingType - The encoding type of the barcode.
dataMatrixFunctionCharacter - The function character of the barcode.
Method Detail

draw

public void draw(PageWriter writer)
Draws the barcode to the given PageWriter object.

Specified by:
draw in class Dim2Barcode
Parameters:
writer - PageWriter object to receive the page element's output.
See Also:
PageWriter

getSymbolWidth

public float getSymbolWidth()
Gets required width for drawing Data Matrix bar code.

Specified by:
getSymbolWidth in class Dim2Barcode
Returns:
required width for drawing Data Matrix bar code.

getSymbolHeight

public float getSymbolHeight()
Gets required height for drawing Data Matrix bat code.

Specified by:
getSymbolHeight in class Dim2Barcode
Returns:
required height for drawing Data Matrix bar code.

getOverFlowDataMatrixBarcode

public DataMatrixBarCode getOverFlowDataMatrixBarcode(float x,
                                                      float y)
Gets a new instance of DataMatrixBarCode object.

Parameters:
x - The X coordinate of the Data Matrix bar code.
y - The Y coordinate of the Data Matrix bar code.
Returns:
DataMatrixBarCode object.

getOverFlowDataMatrixBarcode

public DataMatrixBarCode getOverFlowDataMatrixBarcode()
Gets a new instance of DataMatrixBarCode object.

Returns:
DataMatrixBarCode object.

getProcessTilde

public boolean getProcessTilde()
Gets a value indicating if the tilde character should be processed.

Returns:
the tilde character processing status.

setProcessTilde

public void setProcessTilde(boolean value)
Sets a value indicating if the tilde character should be processed. If true, tilde character will be processed.

Parameters:
value - the tilde character processing status.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software