com.spire.pdf.barcode
Class PdfBarcode

java.lang.Object
  extended by com.spire.pdf.barcode.PdfBarcode
Direct Known Subclasses:
PdfUnidimensionalBarcode

public class PdfBarcode
extends java.lang.Object

Represents a base class for all barcode types.


Constructor Summary
PdfBarcode()
          Initializes a new instance of the class.
PdfBarcode(java.lang.String text)
          Initializes a new instance of the class.
 
Method Summary
 PdfRGBColor getBackColor()
          Gets the back color of the barcode.
 PdfRGBColor getBarColor()
          Gets the bar color of the barcode.
 float getBarHeight()
          Gets the bar height.
 java.awt.geom.Rectangle2D getBounds()
          Gets the rectangular area occupied by the barcode.
 java.lang.String getExtendedText()
          Gets the barcode text.
 java.awt.geom.Point2D getLocation()
          Gets the location to render barcode in the PDF Document.
 float getNarrowBarWidth()
          Gets the narrow bar width.
 PdfBarcodeQuietZones getQuietZone()
          Gets the empty area which is to be allocated around the barcode.
 java.awt.geom.Dimension2D getSize()
          Gets the size of the barcode.
 java.lang.String getText()
          Gets the barcode text.
 PdfRGBColor getTextColor()
          Gets the text color of the barcode text.
 void setBackColor(PdfRGBColor value)
          Sets the back color of the barcode.
 void setBarColor(PdfRGBColor value)
          Sets the bar color of the barcode.
 void setBarHeight(float value)
          Sets the bar height.
 void setBounds(java.awt.geom.Rectangle2D bounds)
          Sets the rectangular area occupied by the barcode.
 void setExtendedText(java.lang.String value)
          Sets the barcode text.
 void setLocation(java.awt.geom.Point2D value)
          Sets the location to render barcode in the PDF Document.
 void setNarrowBarWidth(float value)
          Sets the narrow bar width.
 void setText(java.lang.String value)
          Sets the barcode text.
 void setTextColor(PdfRGBColor value)
          Sets the text color of the barcode text.
 

Constructor Detail

PdfBarcode

public PdfBarcode()
Initializes a new instance of the class.


PdfBarcode

public PdfBarcode(java.lang.String text)
Initializes a new instance of the class.

Parameters:
text - Set the barcode text.
Method Detail

getBackColor

public PdfRGBColor getBackColor()
Gets the back color of the barcode.


setBackColor

public void setBackColor(PdfRGBColor value)
Sets the back color of the barcode.


getBarColor

public PdfRGBColor getBarColor()
Gets the bar color of the barcode.


setBarColor

public void setBarColor(PdfRGBColor value)
Sets the bar color of the barcode.


getTextColor

public PdfRGBColor getTextColor()
Gets the text color of the barcode text.


setTextColor

public void setTextColor(PdfRGBColor value)
Sets the text color of the barcode text.


getNarrowBarWidth

public float getNarrowBarWidth()
Gets the narrow bar width.


setNarrowBarWidth

public void setNarrowBarWidth(float value)
Sets the narrow bar width.


getText

public java.lang.String getText()
Gets the barcode text.


setText

public void setText(java.lang.String value)
Sets the barcode text.


getLocation

public java.awt.geom.Point2D getLocation()
Gets the location to render barcode in the PDF Document.


setLocation

public void setLocation(java.awt.geom.Point2D value)
Sets the location to render barcode in the PDF Document.


getQuietZone

public PdfBarcodeQuietZones getQuietZone()
Gets the empty area which is to be allocated around the barcode.


getBarHeight

public float getBarHeight()
Gets the bar height.


setBarHeight

public void setBarHeight(float value)
Sets the bar height.


getSize

public java.awt.geom.Dimension2D getSize()
Gets the size of the barcode.


getBounds

public java.awt.geom.Rectangle2D getBounds()
Gets the rectangular area occupied by the barcode.


setBounds

public void setBounds(java.awt.geom.Rectangle2D bounds)
Sets the rectangular area occupied by the barcode.


getExtendedText

public java.lang.String getExtendedText()
Gets the barcode text.


setExtendedText

public void setExtendedText(java.lang.String value)
Sets the barcode text.