com.stimulsoft.report.barCodes
Class StiMaxicodeBarCodeType

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.StiMaxicodeBarCodeType
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef, java.lang.Cloneable

public class StiMaxicodeBarCodeType
extends StiBarCodeTypeService

Copyright Stimulsoft


Field Summary
 
Fields inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
visiblePropertiesCount
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiMaxicodeBarCodeType()
           
StiMaxicodeBarCodeType(StiMaxicodeMode mode, int structuredAppendPosition, int structuredAppendTotal, boolean processTilde, boolean trimExcessData)
           
 
Method Summary
 StiBarCodeTypeService CreateNew()
           
 void draw(StiGraphics context, StiBarCode barCode, StiRectangle rect, double zoom)
           
 StiComponentId getComponentId()
           
 java.lang.String getDefaultCodeValue()
           
 double getHeight()
           
 double getLabelFontHeight()
           
 StiMaxicodeMode getMode()
          Gets or sets the mode of the Maxicode.
 double getModule()
           
 java.lang.String getServiceName()
          Gets a service name.
 int getStructuredAppendPosition()
          Gets or sets the structured append Position.
 int getStructuredAppendTotal()
          The structured append Total.
 java.lang.Boolean[] getVisibleProperties()
           
 boolean isProcessTilde()
          the flag that indicates whether the data message supports character '~' as the escape.
 boolean isTrimExcessData()
          a value indicating whether it is necessary to trim excess data if the data length exceeds the capacity of the barcode.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setHeight(double value)
           
 void setMode(StiMaxicodeMode value)
          Gets or sets the mode of the Maxicode.
 void setModule(double value)
           
 void setProcessTilde(boolean processTilde)
          the flag that indicates whether the data message supports character '~' as the escape.
 void setStructuredAppendPosition(int structuredAppendPosition)
          Gets or sets the structured append Position.
 void setStructuredAppendTotal(int structuredAppendTotal)
          The structured append Total.
 void setTrimExcessData(boolean trimExcessData)
          a value indicating whether it is necessary to trim excess data if the data length exceeds the capacity of the barcode.
 
Methods inherited from class com.stimulsoft.report.barCodes.StiBarCodeTypeService
GetCode, getCombinedCode, getExportPainter, getServiceCategory, getServiceType, LoadFromJsonObjectInternal, setExportPainter, toString
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StiMaxicodeBarCodeType

public StiMaxicodeBarCodeType()

StiMaxicodeBarCodeType

public StiMaxicodeBarCodeType(StiMaxicodeMode mode,
                              int structuredAppendPosition,
                              int structuredAppendTotal,
                              boolean processTilde,
                              boolean trimExcessData)
Method Detail

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Overrides:
SaveToJsonObject in class StiBarCodeTypeService
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in class StiBarCodeTypeService
Throws:
JSONException

getComponentId

public StiComponentId getComponentId()

getServiceName

public java.lang.String getServiceName()
Description copied from class: StiService
Gets a service name.

Overrides:
getServiceName in class StiService

getDefaultCodeValue

public java.lang.String getDefaultCodeValue()
Specified by:
getDefaultCodeValue in class StiBarCodeTypeService

getModule

public double getModule()
Specified by:
getModule in class StiBarCodeTypeService

getHeight

public double getHeight()
Specified by:
getHeight in class StiBarCodeTypeService

getMode

public StiMaxicodeMode getMode()
Gets or sets the mode of the Maxicode.

Returns:

setMode

public void setMode(StiMaxicodeMode value)
Gets or sets the mode of the Maxicode.


isProcessTilde

public boolean isProcessTilde()
the flag that indicates whether the data message supports character '~' as the escape. Escape sequence must have format '~ddd', where number from 0 to 255 (eg. "~000", "~029" etc.)

Returns:
the processTilde

setProcessTilde

public void setProcessTilde(boolean processTilde)
the flag that indicates whether the data message supports character '~' as the escape. Escape sequence must have format '~ddd', where number from 0 to 255 (eg. "~000", "~029" etc.)

Parameters:
processTilde - the processTilde to set

getStructuredAppendPosition

public int getStructuredAppendPosition()
Gets or sets the structured append Position.

Returns:
the structuredAppendPosition

setStructuredAppendPosition

public void setStructuredAppendPosition(int structuredAppendPosition)
Gets or sets the structured append Position.

Parameters:
structuredAppendPosition - the structuredAppendPosition to set

getStructuredAppendTotal

public int getStructuredAppendTotal()
The structured append Total.

Returns:
the structuredAppendTotal

setStructuredAppendTotal

public void setStructuredAppendTotal(int structuredAppendTotal)
The structured append Total.

Parameters:
structuredAppendTotal - the structuredAppendTotal to set

isTrimExcessData

public boolean isTrimExcessData()
a value indicating whether it is necessary to trim excess data if the data length exceeds the capacity of the barcode.

Returns:
the trimExcessData

setTrimExcessData

public void setTrimExcessData(boolean trimExcessData)
a value indicating whether it is necessary to trim excess data if the data length exceeds the capacity of the barcode.

Parameters:
trimExcessData - the trimExcessData to set

getLabelFontHeight

public double getLabelFontHeight()
Specified by:
getLabelFontHeight in class StiBarCodeTypeService

getVisibleProperties

public java.lang.Boolean[] getVisibleProperties()

draw

public void draw(StiGraphics context,
                 StiBarCode barCode,
                 StiRectangle rect,
                 double zoom)
          throws java.lang.Exception
Specified by:
draw in class StiBarCodeTypeService
Throws:
java.lang.Exception

CreateNew

public StiBarCodeTypeService CreateNew()

setModule

public void setModule(double value)
Specified by:
setModule in class StiBarCodeTypeService

setHeight

public void setHeight(double value)
Specified by:
setHeight in class StiBarCodeTypeService