com.stimulsoft.report.barCodes
Class StiPdf417BarCodeType

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.base.services.StiService
          extended by com.stimulsoft.report.barCodes.StiBarCodeTypeService
              extended by com.stimulsoft.report.barCodes.StiPdf417BarCodeType
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, java.lang.Cloneable

public class StiPdf417BarCodeType
extends StiBarCodeTypeService

The class describes the Barcode type - Pdf417.


Field Summary
 
Fields inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
visiblePropertiesCount
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiPdf417BarCodeType()
           
StiPdf417BarCodeType(double module, StiPdf417EncodingMode encodingMode, StiPdf417ErrorsCorrectionLevel errorsCorrectionLevel, int dataColumns, int dataRows, boolean autoDataColumns, boolean autoDataRows, double aspectRatio, int ratioY)
           
 
Method Summary
 void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom)
           
 double getAspectRatio()
          Gets or sets value, which set aspect ratio between horizontal and vertical sides of bar code.
 boolean getAutoDataColumns()
          Gets or sets value which indicates that amount of columns will be calculated automatically.
 boolean getAutoDataRows()
          Gets or sets value which indicates that amount of rows will be calculated automatically.
 int getDataColumns()
          Gets or sets amount of data columns.
 int getDataRows()
          Gets or sets amound of data rows.
 java.lang.String getDefaultCodeValue()
           
 StiPdf417EncodingMode getEncodingMode()
          Gets or sets type of encoding type.
 StiPdf417ErrorsCorrectionLevel getErrorsCorrectionLevel()
          Gets or sets errors correction level.
 double getHeight()
          Gets os sets height factor of the bar code.
 double getLabelFontHeight()
           
 double getModule()
          Gets or sets width of the most fine element of the bar code.
 int getRatioY()
          Gets or sets vertical ratio of bar code.
 java.lang.String getServiceName()
          Gets a service name.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setAspectRatio(double value)
           
 void setAutoDataColumns(boolean value)
           
 void setAutoDataRows(boolean value)
           
 void setDataColumns(int value)
           
 void setDataRows(int value)
           
 void setEncodingMode(StiPdf417EncodingMode value)
           
 void setErrorsCorrectionLevel(StiPdf417ErrorsCorrectionLevel value)
           
 void setHeight(double value)
           
 void setModule(double value)
           
 void setRatioY(int value)
           
 
Methods inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
GetCode, getCombinedCode, getExportPainter, getServiceCategory, getServiceType, LoadFromJsonObjectInternal, setExportPainter, toString
 
Methods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabled
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getServiceName

public java.lang.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 java.lang.Exception
Specified by:
draw in class StiBarCodeTypeService
Throws:
java.lang.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 java.lang.String getDefaultCodeValue()
Specified by:
getDefaultCodeValue in class StiBarCodeTypeService