DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements.barcoding
Class Dim2Barcode

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.TaggablePageElement
          extended by com.cete.dynamicpdf.pageelements.barcoding.Dim2Barcode
All Implemented Interfaces:
ICoordinate
Direct Known Subclasses:
Aztec, DataMatrixBarCode, Pdf417, QrCode

public abstract class Dim2Barcode
extends TaggablePageElement
implements ICoordinate

The base class for two dimensional barcodes.

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


Method Summary
abstract  void draw(PageWriter writer)
          Draws the barcode to the given PageWriter object.
 float getAngle()
          Gets the angle to be rotated.
 Color getColor()
          Gets the Color of PDF417 bar code.
 int getPixelsPerXDimension()
          Gets the pixels per XDimension
abstract  float getSymbolHeight()
          Gets required height for drawing bar code.
abstract  float getSymbolWidth()
          Gets required width for drawing bar code.
 float getX()
          Gets the X coordinate of the PDF417 bar code.
 float getXDimension()
          Gets the XDimension of the barcode.
 float getXDimensionMilliMeters()
          Gets the XDimensionMilliMeters of the barcode.
 float getXDimensionMils()
          Gets the XDimensionMils of the barcode.
 float getXDimensionsPerCentiMeter()
          Gets the XDimensionsPerCentiMeter of the barcode.
 float getXDimensionsPerInch()
          Gets the XDimensionsPerInch of the barcode.
 float getY()
          Gets the Y coordinate of the PDF417 bar code.
 void setAngle(float angle)
          Sets the rotated angle for PDFf417 bar code.
 void setColor(Color color)
          Sets the Color for the PDF417 bar code.
 void setPixelsPerXDimension(int value)
          Sets the pixels per XDimension
 void setX(float x)
          Sets the X coordinate of the PDF417 bar code.
 void setXDimension(float value)
          Sets the XDimension of the barcode.
 void setXDimensionMilliMeters(float value)
          Sets the XDimensionMilliMeters of the barcode.
 void setXDimensionMils(float value)
          Sets the XDimensionMils of the barcode.
 void setXDimensionsPerCentiMeter(float value)
          Sets the XDimensionsPerCentiMeter of the barcode.
 void setXDimensionsPerInch(float value)
          Sets the XDimensionsPerInch of the barcode.
 void setY(float y)
          Sets the Y coordinate of the PDF417 bar code.
 
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
 

Method Detail

draw

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

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

getSymbolHeight

public abstract float getSymbolHeight()
Gets required height for drawing bar code.

Returns:
required height for drawing bar code.

getSymbolWidth

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

Returns:
required width for drawing bar code.

getColor

public Color getColor()
Gets the Color of PDF417 bar code.

Returns:
Color object.

setColor

public void setColor(Color color)
Sets the Color for the PDF417 bar code.

Parameters:
color - color for the PDF417 bar code.
See Also:
Color

getX

public float getX()
Gets the X coordinate of the PDF417 bar code.

Specified by:
getX in interface ICoordinate
Returns:
float x The X coordinate of the PDF417 bar code.

setX

public void setX(float x)
Sets the X coordinate of the PDF417 bar code.

Specified by:
setX in interface ICoordinate
Parameters:
x - The X coordinate of the PDF417 bar code.

getY

public float getY()
Gets the Y coordinate of the PDF417 bar code.

Specified by:
getY in interface ICoordinate
Returns:
float y The Y coordinate of the PDF417 bar code.

setY

public void setY(float y)
Sets the Y coordinate of the PDF417 bar code.

Specified by:
setY in interface ICoordinate
Parameters:
y - The Y coordinate of the PDF417 bar code.

getAngle

public float getAngle()
Gets the angle to be rotated.

Returns:
float value of angle to be rotated.

setAngle

public void setAngle(float angle)
Sets the rotated angle for PDFf417 bar code.

Parameters:
angle - float value of angle to be rotated.

getXDimension

public float getXDimension()
Gets the XDimension of the barcode.

Returns:
the XDimension of the barcode.

setXDimension

public void setXDimension(float value)
Sets the XDimension of the barcode.

Parameters:
value - the XDimension of the barcode.

getXDimensionsPerInch

public float getXDimensionsPerInch()
Gets the XDimensionsPerInch of the barcode.

Returns:
the XDimensionsPerInch of the barcode.

setXDimensionsPerInch

public void setXDimensionsPerInch(float value)
Sets the XDimensionsPerInch of the barcode.

Parameters:
value - the XDimensionsPerInch of the barcode.

getXDimensionsPerCentiMeter

public float getXDimensionsPerCentiMeter()
Gets the XDimensionsPerCentiMeter of the barcode.

Returns:
the XDimensionsPerCentiMeter of the barcode.

setXDimensionsPerCentiMeter

public void setXDimensionsPerCentiMeter(float value)
Sets the XDimensionsPerCentiMeter of the barcode.

Parameters:
value - the XDimensionsPerCentiMeter of the barcode.

getXDimensionMils

public float getXDimensionMils()
Gets the XDimensionMils of the barcode.

Returns:
the XDimensionMils of the barcode.

setXDimensionMils

public void setXDimensionMils(float value)
Sets the XDimensionMils of the barcode.

Parameters:
value - the XDimensionMils of the barcode.

getXDimensionMilliMeters

public float getXDimensionMilliMeters()
Gets the XDimensionMilliMeters of the barcode.

Returns:
the XDimensionMilliMeters of the barcode.

setXDimensionMilliMeters

public void setXDimensionMilliMeters(float value)
Sets the XDimensionMilliMeters of the barcode.

Parameters:
value - the XDimensionMilliMeters of the barcode.

getPixelsPerXDimension

public int getPixelsPerXDimension()
Gets the pixels per XDimension

Returns:
Gets the value of the pixels per XDimension.

setPixelsPerXDimension

public void setPixelsPerXDimension(int value)
Sets the pixels per XDimension

Parameters:
value - the pixels per XDimension

DynamicPDF by ceTe Software

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