public abstract class StiBarCodeTypeService extends StiService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StiBarCodeTypeService.StiBarCodeData |
protected static class |
StiBarCodeTypeService.ValueObject |
| Modifier and Type | Field and Description |
|---|---|
protected static double |
DefaultLabelFontHeight |
protected StiRectangle |
RectWindow |
int |
visiblePropertiesCount |
propertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiBarCodeTypeService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
baseDrawRectangle(StiGraphics context,
StiColor penColor,
double penSize,
double x,
double y,
double width,
double height,
java.lang.Double zoom,
java.lang.Double pageZoom) |
protected void |
baseDrawString(StiGraphics context,
java.lang.String st,
StiFont font,
StiBrush brush,
StiRectangle rect,
StiTextHorAlignment horAlignment,
StiVertAlignment vertAlignment,
java.lang.Double zoom) |
protected void |
baseFillEllipse(StiGraphics context,
StiBrush brush,
double x,
double y,
double width,
double height,
java.lang.Double zoom,
java.lang.Double pageZoom) |
protected void |
baseFillPolygon(StiGraphics context,
StiBrush brush,
StiPoint[] points,
java.lang.Double zoom,
java.lang.Double pageZoom) |
protected void |
baseFillRectangle(StiGraphics context,
StiBrush brush,
double x,
double y,
double width,
double height,
java.lang.Double zoom,
java.lang.Double pageZoom) |
protected void |
baseFillRectangle2D(StiGraphics context,
StiBrush brush,
double x,
double y,
double width,
double height,
java.lang.Double zoom,
java.lang.Double pageZoom) |
protected StiSize |
baseMeasureString(StiGraphics context,
java.lang.String st,
StiFont font) |
protected void |
baseRollbackTransform(StiGraphics context) |
protected void |
baseTransform(StiGraphics context,
double x,
double y,
double angle,
double dx,
double dy,
StiRectangle clip) |
protected void |
CalculateSize2(double SpaceLeft,
double SpaceRight,
double SpaceTop,
double SpaceBottom,
double LineHeightShort,
double LineHeightLong,
double TextPosition,
double TextHeight,
double MainHeight,
double WideToNarrowRatio,
double Zoom,
java.lang.String BarsArray,
StiRectangle rect,
StiBarCode barCode) |
protected 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,
java.lang.String Code,
java.lang.String TextString,
java.lang.String BarsArray,
StiRectangle rect,
StiBarCode barCode) |
protected java.lang.String |
CheckCodeSymbols(java.lang.String inputCode,
java.lang.String tolerantSymbols)
Remove from string all undefined symbols.
|
abstract void |
draw(StiGraphics context,
StiBarCode barCode,
StiRectangle rect,
double zoom) |
protected void |
draw2DBarCode(StiGraphics context,
StiRectangle rect,
StiBarCode barCode,
double zoom) |
protected void |
drawBarCode(StiGraphics context,
StiRectangle rect,
StiBarCode barCode)
Draws bar code.
|
protected void |
drawBarCodeError(StiGraphics context,
StiRectangle rect,
StiBarCode barCode) |
protected void |
drawBarCodeError(StiGraphics context,
StiRectangle rect,
StiBarCode barCode,
java.lang.String message) |
protected void |
drawBars(StiGraphics context,
java.lang.String sym,
StiBrush foreBrush,
java.lang.Double zoom,
java.lang.Double pageZoom)
Draws content of bar code.
|
protected void |
drawMaxicode(StiGraphics context,
StiRectangle rect,
StiBarCode barCode,
double zoom) |
protected StiBarCodeTypeService.StiBarCodeData |
getBarCodeData() |
java.lang.String |
GetCode(IStiBarCode barCode)
Returns string of char - input data for calculation of bar code.
|
java.lang.String |
getCombinedCode() |
abstract java.lang.String |
getDefaultCodeValue() |
StiBarCodeExportPainter |
getExportPainter() |
abstract double |
getHeight() |
abstract double |
getLabelFontHeight() |
abstract double |
getModule() |
java.lang.String |
getServiceCategory()
Gets a service category.
|
java.lang.Class<?> |
getServiceType()
Gets a service type.
|
protected double |
GetSymbolsStringWidth(java.lang.String symbolsString)
Returns width of string in modules.
|
protected double |
GetSymbolWidth(char symbol)
Returns width of one symbol in module.
|
protected StiTextHorAlignment |
getTextAlignment() |
protected boolean |
IsSymbolLong(char symbol)
Returns true if one line is long.
|
protected boolean |
IsSymbolPostDescend(char symbol)
Returns true if short line is post-descend
|
protected boolean |
IsSymbolSpace(char symbol)
Returns true is char is space.
|
abstract void |
LoadFromJsonObject(JSONObject jObject) |
static StiBarCodeTypeService |
LoadFromJsonObjectInternal(JSONObject jObject) |
protected void |
rollbackTransform(StiGraphics context) |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setExportPainter(StiBarCodeExportPainter exportPainter) |
abstract void |
setHeight(double value) |
abstract void |
setModule(double value) |
protected static int[] |
toInts(byte[] bytes) |
java.lang.String |
toString() |
protected void |
translateRect(StiGraphics context,
StiRectangle rect,
StiBarCode barCode)
Translate coordinates using vertical and horizontal justify
|
clone, getProperties, getServiceEnabled, getServiceInfo, getServiceName, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferenceprotected StiRectangle RectWindow
protected static final double DefaultLabelFontHeight
public final int visiblePropertiesCount
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String getDefaultCodeValue()
public final java.lang.String getServiceCategory()
getServiceCategory in class StiServicepublic final java.lang.Class<?> getServiceType()
getServiceType in class StiServiceprotected final StiBarCodeTypeService.StiBarCodeData getBarCodeData()
public abstract double getModule()
public abstract void setModule(double value)
public abstract double getHeight()
public abstract void setHeight(double value)
protected StiTextHorAlignment getTextAlignment()
public abstract double getLabelFontHeight()
protected final java.lang.String CheckCodeSymbols(java.lang.String inputCode,
java.lang.String tolerantSymbols)
public java.lang.String GetCode(IStiBarCode barCode)
barCode - public java.lang.String getCombinedCode()
protected double GetSymbolWidth(char symbol)
protected final boolean IsSymbolLong(char symbol)
protected boolean IsSymbolSpace(char symbol)
protected final boolean IsSymbolPostDescend(char symbol)
protected final double GetSymbolsStringWidth(java.lang.String symbolsString)
symbolsString - protected final void drawBars(StiGraphics context, java.lang.String sym, StiBrush foreBrush, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected final void drawBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws java.lang.Exception
java.lang.Exceptionprotected 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,
java.lang.String Code,
java.lang.String TextString,
java.lang.String BarsArray,
StiRectangle rect,
StiBarCode barCode)
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,
java.lang.String BarsArray,
StiRectangle rect,
StiBarCode barCode)
protected final void draw2DBarCode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) throws java.lang.Exception
java.lang.Exceptionprotected void drawMaxicode(StiGraphics context, StiRectangle rect, StiBarCode barCode, double zoom) throws java.lang.Exception
java.lang.Exceptionprotected final void drawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws java.lang.Exception
java.lang.Exceptionprotected final void drawBarCodeError(StiGraphics context, StiRectangle rect, StiBarCode barCode, java.lang.String message) throws java.lang.Exception
java.lang.Exceptionpublic abstract void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom) throws java.lang.Exception
java.lang.Exceptionprotected final void translateRect(StiGraphics context, StiRectangle rect, StiBarCode barCode) throws java.io.IOException
java.io.IOExceptionprotected final void rollbackTransform(StiGraphics context)
protected void baseTransform(StiGraphics context, double x, double y, double angle, double dx, double dy, StiRectangle clip) throws java.io.IOException
java.io.IOExceptionprotected void baseRollbackTransform(StiGraphics context)
protected void baseFillRectangle(StiGraphics context, StiBrush brush, double x, double y, double width, double height, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected void baseFillPolygon(StiGraphics context, StiBrush brush, StiPoint[] points, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected void baseFillRectangle2D(StiGraphics context, StiBrush brush, double x, double y, double width, double height, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected void baseFillEllipse(StiGraphics context, StiBrush brush, double x, double y, double width, double height, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected void baseDrawRectangle(StiGraphics context, StiColor penColor, double penSize, double x, double y, double width, double height, java.lang.Double zoom, java.lang.Double pageZoom) throws java.lang.Exception
java.lang.Exceptionprotected void baseDrawString(StiGraphics context, java.lang.String st, StiFont font, StiBrush brush, StiRectangle rect, StiTextHorAlignment horAlignment, StiVertAlignment vertAlignment, java.lang.Double zoom) throws java.io.IOException
java.io.IOExceptionprotected StiSize baseMeasureString(StiGraphics context, java.lang.String st, StiFont font)
protected static int[] toInts(byte[] bytes)
public StiBarCodeExportPainter getExportPainter()
public void setExportPainter(StiBarCodeExportPainter exportPainter)
exportPainter - the exportPainter to setpublic static StiBarCodeTypeService LoadFromJsonObjectInternal(JSONObject jObject) throws JSONException
JSONExceptionpublic JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
JSONExceptionpublic abstract void LoadFromJsonObject(JSONObject jObject) throws JSONException
JSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.