com.stimulsoft.report.barCodes
Class StiStandard2of5BarCodeType
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.barCodes.StiBarCodeTypeService
com.stimulsoft.report.barCodes.StiStandard2of5BarCodeType
- All Implemented Interfaces:
- IStiSerializable, IStiSerializableRef, java.lang.Cloneable
public class StiStandard2of5BarCodeType
- extends StiBarCodeTypeService
The class describes the Barcode type - 2of5 Standard
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StiStandard2of5BarCodeType
public StiStandard2of5BarCodeType()
StiStandard2of5BarCodeType
public StiStandard2of5BarCodeType(double module,
double height,
double ratio)
getServiceName
public java.lang.String getServiceName()
- Gets a service name.
- Overrides:
getServiceName
in class StiService
getModule
public double getModule()
- Gets or sets width of the most fine element of the bar code.
- Specified by:
getModule
in class StiBarCodeTypeService
setModule
public void setModule(double value)
- Specified by:
setModule
in class StiBarCodeTypeService
getHeight
public double getHeight()
- Gets os sets height factor of the bar code.
- Specified by:
getHeight
in class StiBarCodeTypeService
setHeight
public void setHeight(double value)
- Specified by:
setHeight
in class StiBarCodeTypeService
getRatio
public final double getRatio()
- Get or sets value, which indicates WideToNarrow ratio.
setRatio
public final void setRatio(double value)
getLabelFontHeight
public double getLabelFontHeight()
- Specified by:
getLabelFontHeight
in class StiBarCodeTypeService
draw
public void draw(StiGraphics context,
StiBarCode barCode,
StiRectangle rect,
double zoom)
throws java.lang.Exception
- Draws the bar code with the specified parameters.
- Specified by:
draw
in class StiBarCodeTypeService
- Parameters:
context
- Context for drawing.shape
- Component that invokes drawing.rect
- The rectangle that shows coordinates for drawing.zoom
- Zoom of drawing.
- Throws:
java.lang.Exception
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
getDefaultCodeValue
public java.lang.String getDefaultCodeValue()
- Specified by:
getDefaultCodeValue
in class StiBarCodeTypeService