com.stimulsoft.report.barCodes
Class StiCode39BarCodeType

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.StiCode39BarCodeType
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, java.lang.Cloneable
Direct Known Subclasses:
StiCode39ExtBarCodeType

public class StiCode39BarCodeType
extends StiBarCodeTypeService

The class describes the Barcode type - Code-39.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
StiBarCodeTypeService.StiBarCodeData, StiBarCodeTypeService.ValueObject
 
Field Summary
protected static double Code39LineHeightForCut
           
protected static double Code39LineHeightLong
           
protected static double Code39LineHeightShort
           
protected static double Code39MainHeight
           
protected static double Code39SpaceBottom
           
protected static double Code39SpaceLeft
           
protected static double Code39SpaceRight
           
protected static double Code39SpaceTop
           
protected  int Code39StartStopSymbolIndex
           
protected  java.lang.String Code39Symbols
           
protected  java.lang.String[] Code39Table
           
protected static double Code39TextHeight
           
protected static double Code39TextPosition
           
 
Fields inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
DefaultLabelFontHeight, RectWindow, visiblePropertiesCount
 
Fields inherited from class com.stimulsoft.base.services.StiService
properties
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiCode39BarCodeType()
           
StiCode39BarCodeType(double module, double height, double ratio, StiCheckSum checkSum)
           
 
Method Summary
protected  java.lang.String CodeToBar(java.lang.String inputCode)
           
 void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom)
           
 StiCheckSum getCheckSum()
          Gets or sets mode of checksum.
 java.lang.String getDefaultCodeValue()
           
 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.
 double getRatio()
          Get or sets value, which indicates WideToNarrow ratio.
 java.lang.String getServiceName()
          Gets a service name.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setCheckSum(StiCheckSum value)
           
 void setHeight(double value)
           
 void setModule(double value)
           
 void setRatio(double value)
           
 
Methods inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
baseDrawRectangle, baseDrawString, baseFillEllipse, baseFillPolygon, baseFillRectangle, baseFillRectangle2D, baseMeasureString, baseRollbackTransform, baseTransform, CalculateSize2, CalculateSizeFull, CheckCodeSymbols, draw2DBarCode, drawBarCode, drawBarCodeError, drawBarCodeError, drawBars, drawMaxicode, getBarCodeData, GetCode, getCombinedCode, getExportPainter, getServiceCategory, getServiceType, GetSymbolsStringWidth, GetSymbolWidth, getTextAlignment, IsSymbolLong, IsSymbolPostDescend, IsSymbolSpace, LoadFromJsonObjectInternal, rollbackTransform, setExportPainter, toInts, toString, translateRect
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Code39Symbols

protected java.lang.String Code39Symbols

Code39StartStopSymbolIndex

protected int Code39StartStopSymbolIndex

Code39Table

protected java.lang.String[] Code39Table

Code39SpaceLeft

protected static final double Code39SpaceLeft
See Also:
Constant Field Values

Code39SpaceRight

protected static final double Code39SpaceRight
See Also:
Constant Field Values

Code39SpaceTop

protected static final double Code39SpaceTop
See Also:
Constant Field Values

Code39SpaceBottom

protected static final double Code39SpaceBottom
See Also:
Constant Field Values

Code39LineHeightShort

protected static final double Code39LineHeightShort
See Also:
Constant Field Values

Code39LineHeightLong

protected static final double Code39LineHeightLong
See Also:
Constant Field Values

Code39TextPosition

protected static final double Code39TextPosition
See Also:
Constant Field Values

Code39TextHeight

protected static final double Code39TextHeight
See Also:
Constant Field Values

Code39MainHeight

protected static final double Code39MainHeight
See Also:
Constant Field Values

Code39LineHeightForCut

protected static final double Code39LineHeightForCut
See Also:
Constant Field Values
Constructor Detail

StiCode39BarCodeType

public StiCode39BarCodeType()

StiCode39BarCodeType

public StiCode39BarCodeType(double module,
                            double height,
                            double ratio,
                            StiCheckSum checkSum)
Method Detail

getServiceName

public java.lang.String getServiceName()
Gets a service name.

Overrides:
getServiceName in class StiService

getCheckSum

public final StiCheckSum getCheckSum()
Gets or sets mode of checksum.


setCheckSum

public final void setCheckSum(StiCheckSum value)

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

getRatio

public final double getRatio()
Get or sets value, which indicates WideToNarrow ratio.


setRatio

public final void setRatio(double value)

getLabelFontHeight

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

CodeToBar

protected final java.lang.String CodeToBar(java.lang.String inputCode)

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


Copyright © 2018 Stimulsoft. All Rights Reserved.