com.stimulsoft.report.barCodes
Class StiCode128BarCodeType

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.StiCode128BarCodeType
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, java.lang.Cloneable
Direct Known Subclasses:
StiCode128aBarCodeType, StiCode128AutoBarCodeType, StiCode128bBarCodeType, StiCode128cBarCodeType, StiEAN128aBarCodeType, StiEAN128AutoBarCodeType, StiEAN128bBarCodeType, StiEAN128cBarCodeType

public abstract class StiCode128BarCodeType
extends StiBarCodeTypeService

The class describes the Barcode type - Code-128.


Nested Class Summary
protected static class StiCode128BarCodeType.CodeSet
           
 
Nested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
StiBarCodeTypeService.StiBarCodeData, StiBarCodeTypeService.ValueObject
 
Field Summary
protected static double Code128LineHeightForCut
           
protected static double Code128LineHeightLong
           
protected static double Code128LineHeightShort
           
protected static double Code128MainHeight
           
protected static double Code128SpaceBottom
           
protected static double Code128SpaceLeft
           
protected static double Code128SpaceRight
           
protected static double Code128SpaceTop
           
protected  java.lang.String[] Code128Table
           
protected static double Code128TextHeight
           
protected static double Code128TextPosition
           
protected static StiCode128BarCodeType.CodeSet DefaultCodeSetAB
           
 
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
StiCode128BarCodeType(double module, double height)
           
 
Method Summary
protected  java.lang.String CodeToBar(java.lang.String inputCode)
           
protected static java.lang.String EncodeAuto(java.lang.String inputText, boolean encodeAsEan)
           
 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.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setHeight(double value)
           
 void setModule(double value)
           
 
Methods inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
baseDrawRectangle, baseDrawString, baseFillEllipse, baseFillPolygon, baseFillRectangle, baseFillRectangle2D, baseMeasureString, baseRollbackTransform, baseTransform, CalculateSize2, CalculateSizeFull, CheckCodeSymbols, draw, draw2DBarCode, drawBarCode, drawBarCodeError, drawBarCodeError, drawBars, drawMaxicode, getBarCodeData, GetCode, getCombinedCode, getDefaultCodeValue, 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, getServiceName, 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

Code128Table

protected java.lang.String[] Code128Table

Code128SpaceLeft

protected static final double Code128SpaceLeft
See Also:
Constant Field Values

Code128SpaceRight

protected static final double Code128SpaceRight
See Also:
Constant Field Values

Code128SpaceTop

protected static final double Code128SpaceTop
See Also:
Constant Field Values

Code128SpaceBottom

protected static final double Code128SpaceBottom
See Also:
Constant Field Values

Code128LineHeightShort

protected static final double Code128LineHeightShort
See Also:
Constant Field Values

Code128LineHeightLong

protected static final double Code128LineHeightLong
See Also:
Constant Field Values

Code128TextPosition

protected static final double Code128TextPosition
See Also:
Constant Field Values

Code128TextHeight

protected static final double Code128TextHeight
See Also:
Constant Field Values

Code128MainHeight

protected static final double Code128MainHeight
See Also:
Constant Field Values

Code128LineHeightForCut

protected static final double Code128LineHeightForCut
See Also:
Constant Field Values

DefaultCodeSetAB

protected static final StiCode128BarCodeType.CodeSet DefaultCodeSetAB
Constructor Detail

StiCode128BarCodeType

public StiCode128BarCodeType(double module,
                             double height)
Method Detail

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

getLabelFontHeight

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

CodeToBar

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

EncodeAuto

protected static java.lang.String EncodeAuto(java.lang.String inputText,
                                             boolean encodeAsEan)

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


Copyright © 2018 Stimulsoft. All Rights Reserved.