Package com.stimulsoft.report.barCodes
Class StiEAN13BarCodeType
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.barCodes.StiBarCodeTypeService
com.stimulsoft.report.barCodes.StiEAN13BarCodeType
- All Implemented Interfaces:
IStiSerializable,IStiSerializableRef,Cloneable
- Direct Known Subclasses:
StiEAN8BarCodeType,StiIsbn13BarCodeType,StiJan13BarCodeType,StiUpcABarCodeType,StiUpcEBarCodeType,StiUpcSup2BarCodeType,StiUpcSup5BarCodeType
The class describes the Barcode type - EAN-13.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumprotected static classNested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
StiBarCodeTypeService.BarcodeCommandCode, StiBarCodeTypeService.StiBarCodeData, StiBarCodeTypeService.ValueObject -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected String[]protected String[]Fields inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
DefaultLabelFontHeight, RectWindow, visiblePropertiesCountFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiEAN13BarCodeType(double module, double height, StiEanSupplementType supplementType, String supplementCodeValue, boolean showQuietZoneIndicator) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidCalculateSizeEan(double offsetY, double Zoom, ArrayList<StiEAN13BarCodeType.EanBarInfo> BarsArray, StiRectangle rect, StiBarCode barCode) voiddraw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) Draws the bar code with the specified parameters.protected final voiddrawEanBars(StiGraphics context, ArrayList<StiEAN13BarCodeType.EanBarInfo> barsArray, StiBarCode barCode) protected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubledoubleGets os sets height factor of the bar code.doubledoubleGets or sets width of the most fine element of the bar code.Gets a service name.booleanGets or sets value which indicates will show Quiet Zone Indicator or no.Gets or sets the component supplement bar code.Gets or sets type of supplement code.protected doubleGetSymbolWidth(char symbol) Returns width of one symbol in module.protected booleanIsSymbolSpace(char symbol) Returns true is char is space.voidLoadFromJsonObject(JSONObject jObject) protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEan13Bars(String code, boolean isLast) protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEanAdd2Bars(String code, ArrayList<StiEAN13BarCodeType.EanBarInfo> baseArray, boolean isLast) protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEanAdd5Bars(String code, ArrayList<StiEAN13BarCodeType.EanBarInfo> baseArray, boolean isLast) protected final StringmakeLonger(String symString) voidsetHeight(double value) voidsetModule(double value) voidsetShowQuietZoneIndicator(boolean value) voidsetSupplementCode(String value) voidMethods inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
baseDrawImage, 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, getTextAlignment, IsSymbolLong, IsSymbolPostDescend, isTextSpacing, LoadFromJsonObjectInternal, rollbackTransform, setExportPainter, toInts, toString, translateRect, unpackTilde, unpackTildeMethods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Field Details
-
symComboSet
-
symParitySetAdd2
-
symParitySetAdd5
-
ean13SymData
-
-
Constructor Details
-
StiEAN13BarCodeType
public StiEAN13BarCodeType() -
StiEAN13BarCodeType
public StiEAN13BarCodeType(double module, double height, StiEanSupplementType supplementType, String supplementCodeValue, boolean showQuietZoneIndicator)
-
-
Method Details
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiService
-
getModule
public double getModule()Gets or sets width of the most fine element of the bar code.- Specified by:
getModulein classStiBarCodeTypeService
-
setModule
public void setModule(double value) - Specified by:
setModulein classStiBarCodeTypeService
-
getHeight
public double getHeight()Gets os sets height factor of the bar code.- Specified by:
getHeightin classStiBarCodeTypeService
-
setHeight
public void setHeight(double value) - Specified by:
setHeightin classStiBarCodeTypeService
-
getSupplementType
Gets or sets type of supplement code. -
setSupplementType
-
getSupplementCode
Gets or sets the component supplement bar code. -
setSupplementCode
-
getShowQuietZoneIndicator
public boolean getShowQuietZoneIndicator()Gets or sets value which indicates will show Quiet Zone Indicator or no. -
setShowQuietZoneIndicator
public void setShowQuietZoneIndicator(boolean value) -
getLabelFontHeight
public double getLabelFontHeight()- Specified by:
getLabelFontHeightin classStiBarCodeTypeService
-
getEanSpaceLeft
protected double getEanSpaceLeft() -
getEanSpaceRight
protected double getEanSpaceRight() -
getEanSpaceTop
protected double getEanSpaceTop() -
getEanSpaceBottom
protected double getEanSpaceBottom() -
getEanSpaceBeforeAdd
protected double getEanSpaceBeforeAdd() -
getEanSpaceTextTop
protected double getEanSpaceTextTop() -
getEanLineHeightShort
protected double getEanLineHeightShort() -
getEanLineHeightLong
protected double getEanLineHeightLong() -
getEanTextPositionTop
protected double getEanTextPositionTop() -
getEanTextPositionBottom
protected double getEanTextPositionBottom() -
getEanTextHeight
protected double getEanTextHeight() -
getEanMainHeight
protected double getEanMainHeight() -
getEanLineHeightForCut
protected double getEanLineHeightForCut() -
getEanWideToNarrowRatio
protected double getEanWideToNarrowRatio() -
CalculateSizeEan
protected final void CalculateSizeEan(double offsetY, double Zoom, ArrayList<StiEAN13BarCodeType.EanBarInfo> BarsArray, StiRectangle rect, StiBarCode barCode) -
drawEanBars
protected final void drawEanBars(StiGraphics context, ArrayList<StiEAN13BarCodeType.EanBarInfo> barsArray, StiBarCode barCode) throws Exception - Throws:
Exception
-
MakeEan13Bars
protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEan13Bars(String code, boolean isLast) -
MakeEanAdd2Bars
protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEanAdd2Bars(String code, ArrayList<StiEAN13BarCodeType.EanBarInfo> baseArray, boolean isLast) -
MakeEanAdd5Bars
protected final ArrayList<StiEAN13BarCodeType.EanBarInfo> MakeEanAdd5Bars(String code, ArrayList<StiEAN13BarCodeType.EanBarInfo> baseArray, boolean isLast) -
makeLonger
-
GetSymbolWidth
protected double GetSymbolWidth(char symbol) Returns width of one symbol in module.- Overrides:
GetSymbolWidthin classStiBarCodeTypeService
-
IsSymbolSpace
protected boolean IsSymbolSpace(char symbol) Returns true is char is space.- Overrides:
IsSymbolSpacein classStiBarCodeTypeService
-
draw
public void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) throws Exception Draws the bar code with the specified parameters.- Specified by:
drawin classStiBarCodeTypeService- Parameters:
context- Context for drawing.rect- The rectangle that shows coordinates for drawing.zoom- Zoom of drawing.shape- Component that invokes drawing.- Throws:
Exception
-
SaveToJsonObject
- Overrides:
SaveToJsonObjectin classStiBarCodeTypeService- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin classStiBarCodeTypeService- Throws:
JSONException
-
getDefaultCodeValue
- Specified by:
getDefaultCodeValuein classStiBarCodeTypeService
-