Class StiPdf417BarCodeType

All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, Cloneable

public class StiPdf417BarCodeType extends StiBarCodeTypeService
The class describes the Barcode type - Pdf417.
  • Constructor Details

    • StiPdf417BarCodeType

      public StiPdf417BarCodeType()
    • StiPdf417BarCodeType

      public StiPdf417BarCodeType(double module, StiPdf417EncodingMode encodingMode, StiPdf417ErrorsCorrectionLevel errorsCorrectionLevel, int dataColumns, int dataRows, boolean autoDataColumns, boolean autoDataRows, double aspectRatio, int ratioY)
  • Method Details

    • getServiceName

      public String getServiceName()
      Gets a service name.
      Overrides:
      getServiceName in class StiService
    • getModule

      public double getModule()
      Gets or sets width of the most fine element of the bar code.
      Specified by:
      getModule in class StiBarCodeTypeService
    • setModule

      public void setModule(double value)
      Specified by:
      setModule in class StiBarCodeTypeService
    • getHeight

      public double getHeight()
      Gets os sets height factor of the bar code.
      Specified by:
      getHeight in class StiBarCodeTypeService
    • setHeight

      public void setHeight(double value)
      Specified by:
      setHeight in class StiBarCodeTypeService
    • getEncodingMode

      public final StiPdf417EncodingMode getEncodingMode()
      Gets or sets type of encoding type.
    • setEncodingMode

      public final void setEncodingMode(StiPdf417EncodingMode value)
    • getErrorsCorrectionLevel

      public final StiPdf417ErrorsCorrectionLevel getErrorsCorrectionLevel()
      Gets or sets errors correction level. The higher level is the more information is added to bar code for restoring.
    • setErrorsCorrectionLevel

      public final void setErrorsCorrectionLevel(StiPdf417ErrorsCorrectionLevel value)
    • getDataColumns

      public final int getDataColumns()
      Gets or sets amount of data columns.
    • setDataColumns

      public final void setDataColumns(int value)
    • getDataRows

      public final int getDataRows()
      Gets or sets amound of data rows.
    • setDataRows

      public final void setDataRows(int value)
    • getAutoDataColumns

      public final boolean getAutoDataColumns()
      Gets or sets value which indicates that amount of columns will be calculated automatically.
    • setAutoDataColumns

      public final void setAutoDataColumns(boolean value)
    • getAutoDataRows

      public final boolean getAutoDataRows()
      Gets or sets value which indicates that amount of rows will be calculated automatically.
    • setAutoDataRows

      public final void setAutoDataRows(boolean value)
    • getAspectRatio

      public final double getAspectRatio()
      Gets or sets value, which set aspect ratio between horizontal and vertical sides of bar code.
    • setAspectRatio

      public final void setAspectRatio(double value)
    • getRatioY

      public final int getRatioY()
      Gets or sets vertical ratio of bar code. Value must between 2 and 5.
    • setRatioY

      public final void setRatioY(int value)
    • getLabelFontHeight

      public double getLabelFontHeight()
      Specified by:
      getLabelFontHeight in class StiBarCodeTypeService
    • draw

      public void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) throws Exception
      Specified by:
      draw in class StiBarCodeTypeService
      Throws:
      Exception
    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Overrides:
      SaveToJsonObject in class StiBarCodeTypeService
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in class StiBarCodeTypeService
      Throws:
      JSONException
    • getDefaultCodeValue

      public String getDefaultCodeValue()
      Specified by:
      getDefaultCodeValue in class StiBarCodeTypeService