Package com.stimulsoft.report.barCodes
Class StiEAN8BarCodeType
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.barCodes.StiBarCodeTypeService
com.stimulsoft.report.barCodes.StiEAN13BarCodeType
com.stimulsoft.report.barCodes.StiEAN8BarCodeType
- All Implemented Interfaces:
IStiSerializable,IStiSerializableRef,Cloneable
- Direct Known Subclasses:
StiJan8BarCodeType
The class describes the Barcode type - EAN-8.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiEAN13BarCodeType
StiEAN13BarCodeType.Ean13Symbol, StiEAN13BarCodeType.EanBarInfoNested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
StiBarCodeTypeService.BarcodeCommandCode, StiBarCodeTypeService.StiBarCodeData, StiBarCodeTypeService.ValueObject -
Field Summary
Fields inherited from class com.stimulsoft.report.barCodes.StiEAN13BarCodeType
ean13SymData, symComboSet, symParitySetAdd2, symParitySetAdd5Fields 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
ConstructorsConstructorDescriptionStiEAN8BarCodeType(double module, double height, StiEanSupplementType supplementType, String supplementCodeValue, boolean showQuietZoneIndicator) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) Draws the bar code with the specified parameters.protected doubleprotected doubleprotected doubleprotected doubleGets a service name.protected final ArrayListMakeEan8Bars(String code, boolean isLast) Methods inherited from class com.stimulsoft.report.barCodes.StiEAN13BarCodeType
CalculateSizeEan, drawEanBars, getEanLineHeightForCut, getEanLineHeightLong, getEanSpaceBeforeAdd, getEanSpaceBottom, getEanSpaceTextTop, getEanSpaceTop, getEanTextHeight, getEanTextPositionBottom, getEanTextPositionTop, getEanWideToNarrowRatio, getHeight, getLabelFontHeight, getModule, getShowQuietZoneIndicator, getSupplementCode, getSupplementType, GetSymbolWidth, IsSymbolSpace, LoadFromJsonObject, MakeEan13Bars, MakeEanAdd2Bars, MakeEanAdd5Bars, makeLonger, SaveToJsonObject, setHeight, setModule, setShowQuietZoneIndicator, setSupplementCode, setSupplementTypeMethods 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
-
Constructor Details
-
StiEAN8BarCodeType
public StiEAN8BarCodeType() -
StiEAN8BarCodeType
public StiEAN8BarCodeType(double module, double height, StiEanSupplementType supplementType, String supplementCodeValue, boolean showQuietZoneIndicator)
-
-
Method Details
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiEAN13BarCodeType
-
getEanSpaceLeft
protected double getEanSpaceLeft()- Overrides:
getEanSpaceLeftin classStiEAN13BarCodeType
-
getEanSpaceRight
protected double getEanSpaceRight()- Overrides:
getEanSpaceRightin classStiEAN13BarCodeType
-
getEanLineHeightShort
protected double getEanLineHeightShort()- Overrides:
getEanLineHeightShortin classStiEAN13BarCodeType
-
getEanMainHeight
protected double getEanMainHeight()- Overrides:
getEanMainHeightin classStiEAN13BarCodeType
-
MakeEan8Bars
-
draw
public void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) throws Exception Draws the bar code with the specified parameters.- Overrides:
drawin classStiEAN13BarCodeType- Parameters:
context- Context for drawing.rect- The rectangle that shows coordinates for drawing.zoom- Zoom of drawing.shape- Component that invokes drawing.- Throws:
IOExceptionException
-
getDefaultCodeValue
- Overrides:
getDefaultCodeValuein classStiEAN13BarCodeType
-