com.stimulsoft.report.barCodes
Class StiEAN8BarCodeType

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.StiEAN13BarCodeType
                  extended by com.stimulsoft.report.barCodes.StiEAN8BarCodeType
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, java.lang.Cloneable
Direct Known Subclasses:
StiJan8BarCodeType

public class StiEAN8BarCodeType
extends StiEAN13BarCodeType

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.EanBarInfo
 
Nested classes/interfaces inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
StiBarCodeTypeService.StiBarCodeData, StiBarCodeTypeService.ValueObject
 
Field Summary
 
Fields inherited from class com.stimulsoft.report.barCodes.StiEAN13BarCodeType
ean13SymData, symComboSet, symParitySetAdd2, symParitySetAdd5
 
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
StiEAN8BarCodeType()
           
StiEAN8BarCodeType(double module, double height, StiEanSupplementType supplementType, java.lang.String supplementCodeValue, boolean showQuietZoneIndicator)
           
 
Method Summary
 void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom)
          Draws the bar code with the specified parameters.
 java.lang.String getDefaultCodeValue()
           
protected  double getEanLineHeightShort()
           
protected  double getEanMainHeight()
           
protected  double getEanSpaceLeft()
           
protected  double getEanSpaceRight()
           
 java.lang.String getServiceName()
          Gets a service name.
protected  java.util.ArrayList MakeEan8Bars(java.lang.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, setSupplementType
 
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, getTextAlignment, IsSymbolLong, IsSymbolPostDescend, 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
 

Constructor Detail

StiEAN8BarCodeType

public StiEAN8BarCodeType()

StiEAN8BarCodeType

public StiEAN8BarCodeType(double module,
                          double height,
                          StiEanSupplementType supplementType,
                          java.lang.String supplementCodeValue,
                          boolean showQuietZoneIndicator)
Method Detail

getServiceName

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

Overrides:
getServiceName in class StiEAN13BarCodeType

getEanSpaceLeft

protected double getEanSpaceLeft()
Overrides:
getEanSpaceLeft in class StiEAN13BarCodeType

getEanSpaceRight

protected double getEanSpaceRight()
Overrides:
getEanSpaceRight in class StiEAN13BarCodeType

getEanLineHeightShort

protected double getEanLineHeightShort()
Overrides:
getEanLineHeightShort in class StiEAN13BarCodeType

getEanMainHeight

protected double getEanMainHeight()
Overrides:
getEanMainHeight in class StiEAN13BarCodeType

MakeEan8Bars

protected final java.util.ArrayList MakeEan8Bars(java.lang.String code,
                                                 boolean isLast)

draw

public void draw(StiGraphics context,
                 StiBarCode barCode,
                 StiRectangle rect,
                 double zoom)
          throws java.lang.Exception
Draws the bar code with the specified parameters.

Overrides:
draw in class StiEAN13BarCodeType
Parameters:
context - Context for drawing.
shape - Component that invokes drawing.
rect - The rectangle that shows coordinates for drawing.
zoom - Zoom of drawing.
Throws:
java.io.IOException
java.lang.Exception

getDefaultCodeValue

public java.lang.String getDefaultCodeValue()
Overrides:
getDefaultCodeValue in class StiEAN13BarCodeType


Copyright © 2018 Stimulsoft. All Rights Reserved.