Package com.stimulsoft.report.barCodes
Class StiBarCodeTypeService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.barCodes.StiBarCodeTypeService
- All Implemented Interfaces:
IStiSerializable,IStiSerializableRef,Cloneable
- Direct Known Subclasses:
StiAustraliaPost4StateBarCodeType,StiAztecBarCodeType,StiCodabarBarCodeType,StiCode11BarCodeType,StiCode128BarCodeType,StiCode39BarCodeType,StiCode93BarCodeType,StiDataMatrixBarCodeType,StiDutchKIXBarCodeType,StiEAN13BarCodeType,StiFIMBarCodeType,StiIntelligentMail4StateBarCodeType,StiInterleaved2of5BarCodeType,StiITF14BarCodeType,StiMaxicodeBarCodeType,StiPdf417BarCodeType,StiPharmacodeBarCodeType,StiPlesseyBarCodeType,StiPostnetBarCodeType,StiQRCodeBarCodeType,StiRoyalMail4StateBarCodeType,StiStandard2of5BarCodeType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classprotected static class -
Field Summary
FieldsFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbaseDrawImage(StiGraphics context, String imageStr, BufferedImage image, StiReport report, double x, double y, double width, double height, double zoom) protected voidbaseDrawRectangle(StiGraphics context, StiColor penColor, double penSize, double x, double y, double width, double height, Double zoom, Double pageZoom) protected voidbaseDrawString(StiGraphics context, String st, StiFont font, StiBrush brush, StiRectangle rect, StiTextHorAlignment horAlignment, StiVertAlignment vertAlignment, Double zoom) protected voidbaseFillEllipse(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) protected voidbaseFillPolygon(StiGraphics context, StiBrush brush, StiPoint[] points, Double zoom, Double pageZoom) protected voidbaseFillRectangle(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) protected voidbaseFillRectangle2D(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) protected StiSizebaseMeasureString(StiGraphics context, String st, StiFont font) protected voidbaseRollbackTransform(StiGraphics context) protected voidbaseTransform(StiGraphics context, double x, double y, double angle, double dx, double dy, StiRectangle clip) protected final voidCalculateSize2(double SpaceLeft, double SpaceRight, double SpaceTop, double SpaceBottom, double LineHeightShort, double LineHeightLong, double TextPosition, double TextHeight, double MainHeight, double WideToNarrowRatio, double Zoom, String BarsArray, StiRectangle rect, StiBarCode barCode) protected final voidCalculateSizeFull(double SpaceLeft, double SpaceRight, double SpaceTop, double SpaceBottom, double LineHeightShort, double LineHeightLong, double TextPosition, double TextHeight, double MainHeight, double LineHeightForCut, double WideToNarrowRatio, double Zoom, String Code, String TextString, String BarsArray, StiRectangle rect, StiBarCode barCode) protected final StringCheckCodeSymbols(String inputCode, String tolerantSymbols) Remove from string all undefined symbols.abstract voiddraw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) protected final voiddraw2DBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) protected final voiddrawBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode) Draws bar code.protected final voiddrawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode) protected final voiddrawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode, String message) protected final voidDraws content of bar code.protected voiddrawMaxicode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) protected final StiBarCodeTypeService.StiBarCodeDataGetCode(IStiBarCode barCode) Returns string of char - input data for calculation of bar code.abstract Stringabstract doubleabstract doubleabstract doublefinal StringGets a service category.final Class<?> Gets a service type.protected final doubleGetSymbolsStringWidth(String symbolsString) Returns width of string in modules.protected doubleGetSymbolWidth(char symbol) Returns width of one symbol in module.protected StiTextHorAlignmentprotected final booleanIsSymbolLong(char symbol) Returns true if one line is long.protected final booleanIsSymbolPostDescend(char symbol) Returns true if short line is post-descendprotected booleanIsSymbolSpace(char symbol) Returns true is char is space.protected booleanabstract voidLoadFromJsonObject(JSONObject jObject) static StiBarCodeTypeServiceLoadFromJsonObjectInternal(JSONObject jObject) protected final voidrollbackTransform(StiGraphics context) voidsetExportPainter(StiBarCodeExportPainter exportPainter) abstract voidsetHeight(double value) abstract voidsetModule(double value) protected static int[]toInts(byte[] bytes) toString()protected final voidtranslateRect(StiGraphics context, StiRectangle rect, StiBarCode barCode) Translate coordinates using vertical and horizontal justifystatic Integer[]unpackTilde(int[] input, boolean processTilde) static StringunpackTilde(String input, boolean processTilde) Methods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, getServiceName, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Field Details
-
RectWindow
-
DefaultLabelFontHeight
protected static final double DefaultLabelFontHeight- See Also:
-
visiblePropertiesCount
public final int visiblePropertiesCount- See Also:
-
-
Constructor Details
-
StiBarCodeTypeService
public StiBarCodeTypeService()
-
-
Method Details
-
toString
-
isTextSpacing
protected boolean isTextSpacing() -
getDefaultCodeValue
-
unpackTilde
-
unpackTilde
-
getServiceCategory
Gets a service category.- Overrides:
getServiceCategoryin classStiService
-
getServiceType
Gets a service type.- Specified by:
getServiceTypein classStiService
-
getBarCodeData
-
getModule
public abstract double getModule() -
setModule
public abstract void setModule(double value) -
getHeight
public abstract double getHeight() -
setHeight
public abstract void setHeight(double value) -
getTextAlignment
-
getLabelFontHeight
public abstract double getLabelFontHeight() -
CheckCodeSymbols
Remove from string all undefined symbols. -
GetCode
Returns string of char - input data for calculation of bar code.- Parameters:
barCode-- Returns:
-
getCombinedCode
-
GetSymbolWidth
protected double GetSymbolWidth(char symbol) Returns width of one symbol in module. -
IsSymbolLong
protected final boolean IsSymbolLong(char symbol) Returns true if one line is long. -
IsSymbolSpace
protected boolean IsSymbolSpace(char symbol) Returns true is char is space. -
IsSymbolPostDescend
protected final boolean IsSymbolPostDescend(char symbol) Returns true if short line is post-descend -
GetSymbolsStringWidth
Returns width of string in modules.- Parameters:
symbolsString-- Returns:
-
drawBars
protected final void drawBars(StiGraphics context, String sym, StiBrush foreBrush, Double zoom, Double pageZoom) throws Exception Draws content of bar code.- Throws:
Exception
-
drawBarCode
protected final void drawBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws Exception Draws bar code.- Throws:
Exception
-
CalculateSizeFull
protected final void CalculateSizeFull(double SpaceLeft, double SpaceRight, double SpaceTop, double SpaceBottom, double LineHeightShort, double LineHeightLong, double TextPosition, double TextHeight, double MainHeight, double LineHeightForCut, double WideToNarrowRatio, double Zoom, String Code, String TextString, String BarsArray, StiRectangle rect, StiBarCode barCode) -
CalculateSize2
protected final void CalculateSize2(double SpaceLeft, double SpaceRight, double SpaceTop, double SpaceBottom, double LineHeightShort, double LineHeightLong, double TextPosition, double TextHeight, double MainHeight, double WideToNarrowRatio, double Zoom, String BarsArray, StiRectangle rect, StiBarCode barCode) -
draw2DBarCode
protected final void draw2DBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) throws Exception - Throws:
Exception
-
drawMaxicode
protected void drawMaxicode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) throws Exception - Throws:
Exception
-
drawBarCodeError
protected final void drawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws Exception - Throws:
Exception
-
drawBarCodeError
protected final void drawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode, String message) throws Exception - Throws:
Exception
-
draw
public abstract void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) throws Exception - Throws:
Exception
-
translateRect
protected final void translateRect(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws IOException Translate coordinates using vertical and horizontal justify- Throws:
IOException
-
rollbackTransform
-
baseTransform
protected void baseTransform(StiGraphics context, double x, double y, double angle, double dx, double dy, StiRectangle clip) throws IOException - Throws:
IOException
-
baseRollbackTransform
-
baseFillRectangle
protected void baseFillRectangle(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) throws Exception - Throws:
Exception
-
baseFillPolygon
protected void baseFillPolygon(StiGraphics context, StiBrush brush, StiPoint[] points, Double zoom, Double pageZoom) throws Exception - Throws:
Exception
-
baseFillRectangle2D
protected void baseFillRectangle2D(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) throws Exception - Throws:
Exception
-
baseFillEllipse
protected void baseFillEllipse(StiGraphics context, StiBrush brush, double x, double y, double width, double height, Double zoom, Double pageZoom) throws Exception - Throws:
Exception
-
baseDrawRectangle
protected void baseDrawRectangle(StiGraphics context, StiColor penColor, double penSize, double x, double y, double width, double height, Double zoom, Double pageZoom) throws Exception - Throws:
Exception
-
baseDrawImage
protected void baseDrawImage(StiGraphics context, String imageStr, BufferedImage image, StiReport report, double x, double y, double width, double height, double zoom) throws IOException - Throws:
IOException
-
baseDrawString
protected void baseDrawString(StiGraphics context, String st, StiFont font, StiBrush brush, StiRectangle rect, StiTextHorAlignment horAlignment, StiVertAlignment vertAlignment, Double zoom) throws IOException - Throws:
IOException
-
baseMeasureString
-
toInts
protected static int[] toInts(byte[] bytes) -
getExportPainter
- Returns:
- the exportPainter
-
setExportPainter
- Parameters:
exportPainter- the exportPainter to set
-
LoadFromJsonObjectInternal
public static StiBarCodeTypeService LoadFromJsonObjectInternal(JSONObject jObject) throws JSONException - Throws:
JSONException
-
SaveToJsonObject
- Throws:
JSONException
-
LoadFromJsonObject
- Throws:
JSONException
-