@Deprecated
public final class BarCodeControl
extends javax.swing.JPanel
To use BarCodeControl add aspose-barcode.jar to classpath. Supported symbology: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost 2D: DataMatrix, PDf417, QR code
BarCodeBuilder
,
Serialized Formjavax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
BarCodeControl()
Deprecated.
Initializes a new instance of the
BarCodeControl class. |
BarCodeControl(java.lang.String codeText)
Deprecated.
Initializes a new instance of the
BarCodeControl class. |
BarCodeControl(java.lang.String codeText,
BaseEncodeType encodeType)
Deprecated.
Initializes a new instance of the
BarCodeControl class. |
Modifier and Type | Method and Description |
---|---|
float |
getAspectRatio()
Deprecated.
2D BarCode's module's height/width ratio (yDimension/xDimension).
|
boolean |
getAutoSize()
Deprecated.
Wether ajust image's size automatically.
|
int |
getAztectErrorLevel()
Deprecated.
Level of error corection of Aztect types of barcode.
|
java.awt.Color |
getBackColor()
Deprecated.
Background color of the barcode image
see
System.Drawing.Color |
java.awt.image.BufferedImage |
getBarCodeImage()
Deprecated.
Gets the BarCode Image.
|
float |
getBarHeight()
Deprecated.
height of 1D barcodes' bars.
|
java.awt.Color |
getBorderColor()
Deprecated.
BarCode Image's border's color
see
System.Drawing.Color
see BorderWidth
see BorderVisible
see BorderDashStyle |
BorderDashStyle |
getBorderDashStyle()
Deprecated.
BarCode Image's border's style
see
BarCode.BorderDashStyle
see BorderWidth
see BorderVisible
see BorderColor |
boolean |
getBorderVisible()
Deprecated.
wether BarCode Image's border is visible
see
BorderWidth
see
see |
float |
getBorderWidth()
Deprecated.
BarCode Image's border's width
DEFAULT GRAPHICS Unit: MILLIMETER
see
BorderVisible
see
see |
Caption |
getCaptionAbove()
Deprecated.
Caption Above the BarCode image.
|
Caption |
getCaptionBelow()
Deprecated.
Caption Below the BarCode image.
|
short |
getCodabarStartSymbol()
Deprecated.
Start symbol (character) of codabar symbology
see
CodabarStopSymbol
see CodabarSymbol |
short |
getCodabarStopSymbol()
Deprecated.
Stop symbol (character) of codabar symbology
see
CodabarStartSymbol
see CodabarSymbol |
CodeLocation |
getCodeLocation()
Deprecated.
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
|
java.lang.String |
getCodeText()
Deprecated.
Data to be encoded, different types of BarCode may have different CodeText length restrictions
See EnableEscape.
|
StringAlignment |
getCodeTextAlignment()
Deprecated.
Gets the alignment of the code text.
|
java.awt.Color |
getCodeTextColor()
Deprecated.
Specify the displaying CodeText's Color
see
System.Drawing.Color |
java.nio.charset.Charset |
getCodeTextEncoding()
Deprecated.
Gets a character encoding.
|
java.awt.Font |
getCodeTextFont()
Deprecated.
Specify the displaying CodeText's font
|
float |
getCodeTextSpace()
Deprecated.
Space between the CodeText and the BarCode.
|
int |
getColumns()
Deprecated.
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable EncodeTypes: Pdf417
|
CustomerInformationInterpretingType |
getCustomerInformationInterpretingType()
Deprecated.
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
See
BarCode.CustomerInformationInterpretingType . |
DataMatrixEncodeMode |
getDataMatrixEncodeMode()
Deprecated.
Encode mode of Datamatrix barcode, default to AUTO
see
BarCode.DataMatrixEncodeModeDataMatrixEncodeMode . |
java.lang.String |
getDisplay2DText()
Deprecated.
Gets the text will displayed on the barcode's image.
|
EnableChecksum |
getEnableChecksum()
Deprecated.
|
boolean |
getEnableEscape()
Deprecated.
Indicates whether explains the character "\" as an escape character in CodeText property.
|
BaseEncodeType |
getEncodeType()
Deprecated.
BarCode's encode type (symbology).
|
java.awt.Color |
getForeColor()
Deprecated.
Foreground color of the barcode image, that is,
BAR's color of 1D barcode, Module's color of 2D barcode
see
System.Drawing.Color |
GraphicsUnit |
getGraphicsUnit()
Deprecated.
Measurement of various properties such as width, height etc.
|
float |
getImageHeight()
Deprecated.
BarCode image's height see
AutoSize , if AutoSize is true, height will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER |
com.aspose.barcode.ImageQualityMode |
getImageQuality()
Deprecated.
GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
|
float |
getImageWidth()
Deprecated.
BarCode image's width see
AutoSize , if AutoSize is true, ImageWidth will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER |
ITF14BorderType |
getITF14BorderType()
Deprecated.
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
int |
getMacroPdf417FileID()
Deprecated.
Gets macro pdf417 barcode's file ID.
|
int |
getMacroPdf417SegmentID()
Deprecated.
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
|
int |
getMacroPdf417SegmentsCount()
Deprecated.
Gets macro pdf417 barcode segments count.
|
com.aspose.barcode.MarginsF |
getMargins()
Deprecated.
Margin area around the core BarCode image
If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored
DEFAULT GRAPHICS Unit: MILLIMETER
|
Pdf417CompactionMode |
getPdf417CompactionMode()
Deprecated.
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is
<bode>AUTO</bode>
see BarCode.Pdf417CompactionMode |
Pdf417ErrorLevel |
getPdf417ErrorLevel()
Deprecated.
Gets Pdf417 symbology type of BarCode's error coccrection level
ranging from level0 to level9, level0 means no error correction info,
level9 means best error correction which means a larger picture
|
boolean |
getPdf417Truncate()
Deprecated.
whether pdf417 symbology type of BarCode is truncated (to reduce space)
|
float |
getPlanetShortBarHeight()
Deprecated.
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
float |
getPostnetShortBarHeight()
Deprecated.
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
|
java.lang.String |
getPrinterName()
Deprecated.
Choose printer, if not specified, Print() method will choose the first available printer
|
QREncodeMode |
getQREncodeMode()
Deprecated.
QR symbology type of BarCode's encoding mode, default mode is
<bode>AUTO</bode> |
QRErrorLevel |
getQRErrorLevel()
Deprecated.
Level of Reed-Solomon error correction for QR barcode.
|
com.aspose.barcode.Resolution |
getResolution()
Deprecated.
Gets the resolution of the BarCode image
see
BarCode.Resolution |
float |
getRotationAngleF()
Deprecated.
BarCode image's rotation angle, measured in degree, e.g.
|
int |
getRows()
Deprecated.
2D BarCode's rows, if setting is illegal then rows will be calculated automatically
appliable EncodeTypes: Pdf417
|
java.lang.String |
getSupplementData()
Deprecated.
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
float |
getSupplementSpace()
Deprecated.
Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter
see
System.Drawing.GraphicsUnit
see SupplementData |
com.aspose.barcode.TextRenderingHint |
getTextRenderingHint()
Deprecated.
Specifies the quality of text rendering.
|
float |
getWideNarrowRatio()
Deprecated.
Wide bars to Narrow bars ratio for some 1D BarCode.
|
float |
getxDimension()
Deprecated.
x-dimension, smallest width unit of BarCode's bars or spaces.
|
float |
getyDimension()
Deprecated.
y-dimension, smallest height unit of 2D BarCode's modules.
|
protected void |
paintComponent(java.awt.Graphics g)
Deprecated.
|
void |
print()
Deprecated.
Print BarCodeImage
see
PrinterName |
void |
rotate()
Deprecated.
Rotate barcode image clockwise for 90 degrees
|
void |
rotate(float angle)
Deprecated.
Rotate barcode image clockwise
|
void |
rotate(int direction,
float angle)
Deprecated.
|
void |
rotate(com.aspose.barcode.RotationDirection direction,
float angle)
Deprecated.
Rotate the barcode image
|
void |
save(java.io.OutputStream stream,
BarCodeImageFormat format)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename,
BarCodeImageFormat format)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
setAspectRatio(float value)
Deprecated.
2D BarCode's module's height/width ratio (yDimension/xDimension).
|
void |
setAutoSize(boolean value)
Deprecated.
Sets a value indicating whether the image size is to be adjusted automatically.
|
void |
setAztectErrorLevel(int value)
Deprecated.
Level of error corection of Aztect types of barcode.
|
void |
setBackColor(java.awt.Color value)
Deprecated.
Background color of the barcode image
see
System.Drawing.Color |
void |
setBarHeight(float value)
Deprecated.
height of 1D barcodes' bars.
|
void |
setBorderColor(java.awt.Color value)
Deprecated.
BarCode Image's border's color
see
System.Drawing.Color
see BorderWidth
see BorderVisible
see BorderDashStyle |
void |
setBorderDashStyle(BorderDashStyle value)
Deprecated.
BarCode Image's border's style
see
BarCode.BorderDashStyle
see BorderWidth
see BorderVisible
see BorderColor |
void |
setBorderDashStyle(int value)
Deprecated.
|
void |
setBorderVisible(boolean value)
Deprecated.
wether BarCode Image's border is visible
see
BorderWidth
see
see |
void |
setBorderWidth(float value)
Deprecated.
BarCode Image's border's width
DEFAULT GRAPHICS Unit: MILLIMETER
see
BorderVisible
see
see |
void |
setCaptionAbove(Caption value)
Deprecated.
Caption Above the BarCode image.
|
void |
setCaptionBelow(Caption value)
Deprecated.
Caption Below the BarCode image.
|
void |
setCodabarStartSymbol(short value)
Deprecated.
Start symbol (character) of codabar symbology
see
CodabarStopSymbol
see CodabarSymbol |
void |
setCodabarStopSymbol(short value)
Deprecated.
Stop symbol (character) of codabar symbology
see
CodabarStartSymbol
see CodabarSymbol |
void |
setCodeLocation(CodeLocation value)
Deprecated.
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
|
void |
setCodeText(java.lang.String value)
Deprecated.
Data to be encoded, different types of BarCode may have different CodeText length restrictions
|
void |
setCodeTextAlignment(int value)
Deprecated.
|
void |
setCodeTextAlignment(StringAlignment value)
Deprecated.
CodeTextAlignment
|
void |
setCodeTextColor(java.awt.Color value)
Deprecated.
Specify the displaying CodeText's Color
see
System.Drawing.Color |
void |
setCodeTextEncoding(java.nio.charset.Charset value)
Deprecated.
Sets a character encoding.
|
void |
setCodeTextFont(java.awt.Font value)
Deprecated.
Specify the displaying CodeText's font
|
void |
setCodeTextSpace(float value)
Deprecated.
Space between the CodeText and the BarCode.
|
void |
setColumns(int value)
Deprecated.
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable EncodeTypes: Pdf417
|
void |
setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
Deprecated.
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
See
BarCode.CustomerInformationInterpretingType . |
void |
setCustomerInformationInterpretingType(int value)
Deprecated.
|
void |
setDataMatrixEncodeMode(DataMatrixEncodeMode value)
Deprecated.
Encode mode of Datamatrix barcode, default to AUTO
see
BarCode.DataMatrixEncodeModeDataMatrixEncodeMode . |
void |
setDataMatrixEncodeMode(int value)
Deprecated.
|
void |
setDisplay2DText(java.lang.String value)
Deprecated.
Sets the text will displayed on the barcode's image.
|
void |
setEnableChecksum(EnableChecksum value)
Deprecated.
|
void |
setEnableChecksum(int value)
Deprecated.
|
void |
setEnableEscape(boolean value)
Deprecated.
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setEncodeType(BaseEncodeType value)
Deprecated.
BarCode's encode type (symbology).
|
void |
setForeColor(java.awt.Color value)
Deprecated.
Foreground color of the barcode image, that is,
BAR's color of 1D barcode, Module's color of 2D barcode
see
System.Drawing.Color |
void |
setGraphicsUnit(GraphicsUnit value)
Deprecated.
Measurement of various properties such as width, height etc.
|
void |
setGraphicsUnit(int value)
Deprecated.
|
void |
setImageHeight(float value)
Deprecated.
BarCode image's height see
AutoSize , if AutoSize is true, height will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER |
void |
setImageQuality(com.aspose.barcode.ImageQualityMode value)
Deprecated.
GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
|
void |
setImageQuality(int value)
Deprecated.
|
void |
setImageWidth(float value)
Deprecated.
BarCode image's width.
|
void |
setITF14BorderType(int value)
Deprecated.
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
void |
setITF14BorderType(ITF14BorderType value)
Deprecated.
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
void |
setMacroPdf417FileID(int value)
Deprecated.
Sets macro pdf417 barcode's file ID.
|
void |
setMacroPdf417SegmentID(int value)
Deprecated.
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
|
void |
setMacroPdf417SegmentsCount(int value)
Deprecated.
Sets macro pdf417 barcode segments count.
|
void |
setMargins(com.aspose.barcode.MarginsF value)
Deprecated.
Margin area around the core BarCode image
If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored
DEFAULT GRAPHICS Unit: MILLIMETER
|
void |
setPdf417CompactionMode(int value)
Deprecated.
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is
<bode>AUTO</bode>
see BarCode.Pdf417CompactionMode |
void |
setPdf417CompactionMode(Pdf417CompactionMode value)
Deprecated.
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is
<bode>AUTO</bode>
see BarCode.Pdf417CompactionMode |
void |
setPdf417ErrorLevel(int value)
Deprecated.
Sets Pdf417 symbology type of BarCode's error coccrection level
ranging from level0 to level9, level0 means no error correction info,
level9 means best error correction which means a larger picture
|
void |
setPdf417ErrorLevel(Pdf417ErrorLevel value)
Deprecated.
Sets Pdf417 symbology type of BarCode's error coccrection level
ranging from level0 to level9, level0 means no error correction info,
level9 means best error correction which means a larger picture
|
void |
setPdf417Truncate(boolean value)
Deprecated.
whether pdf417 symbology type of BarCode is truncated (to reduce space)
|
void |
setPlanetShortBarHeight(float value)
Deprecated.
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
void |
setPostnetShortBarHeight(float value)
Deprecated.
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
|
void |
setPrinterName(java.lang.String value)
Deprecated.
Choose printer, if not specified, Print() method will choose the first available printer
|
void |
setQREncodeMode(int value)
Deprecated.
QR symbology type of BarCode's encoding mode, default mode is
<bode>AUTO</bode> |
void |
setQREncodeMode(QREncodeMode value)
Deprecated.
QR symbology type of BarCode's encoding mode, default mode is
<bode>AUTO</bode> |
void |
setQRErrorLevel(int value)
Deprecated.
|
void |
setQRErrorLevel(QRErrorLevel value)
Deprecated.
Level of Reed-Solomon error correction for QR barcode.
|
void |
setResolution(com.aspose.barcode.Resolution value)
Deprecated.
Sets the resolution of the BarCode image
see
BarCode.Resolution |
void |
setRotationAngleF(float value)
Deprecated.
BarCode image's rotation angle, measured in degree, e.g.
|
void |
setRows(int value)
Deprecated.
2D BarCode's rows, if setting is illegal then rows will be calculated automatically
appliable EncodeTypes: Pdf417
|
void |
setSize(int width,
int height)
Deprecated.
|
void |
setSupplementData(java.lang.String value)
Deprecated.
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
void |
setSupplementSpace(float value)
Deprecated.
Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter
see
System.Drawing.GraphicsUnit
see SupplementData |
void |
setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)
Deprecated.
Specifies the quality of text rendering.
|
void |
setWideNarrowRatio(float value)
Deprecated.
Wide bars to Narrow bars ratio for some 1D BarCode.
|
void |
setxDimension(float value)
Deprecated.
x-dimension, smallest width unit of BarCode's bars or spaces.
|
void |
setyDimension(float value)
Deprecated.
y-dimension, smallest height unit of 2D BarCode's modules.
|
java.lang.String |
toString()
Deprecated.
overried to string method
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public BarCodeControl()
Initializes a new instance of the BarCodeControl
class.
public BarCodeControl(java.lang.String codeText, BaseEncodeType encodeType)
Initializes a new instance of the BarCodeControl
class.
codeText
- data to be encodedencodeType
- barcode's typepublic BarCodeControl(java.lang.String codeText)
Initializes a new instance of the BarCodeControl
class.
codeText
- data to be encodedpublic void setSize(int width, int height)
setSize
in class java.awt.Component
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public BaseEncodeType getEncodeType()
public void setEncodeType(BaseEncodeType value)
public java.nio.charset.Charset getCodeTextEncoding()
Gets a character encoding.
public void setCodeTextEncoding(java.nio.charset.Charset value)
Sets a character encoding.
public java.lang.String getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions See EnableEscape. See CodeTextFont. See CodeTextColor. See CodeLocation. See CodeTextSpace. See CodeTextAlignment.
Create and save a BarCode imagecom.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR; b.setCodeText("12345678"); b.save("test.bmp");
public void setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions
Create and save a BarCode imagecom.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodeText("12345678"); b.save("test.bmp");
public java.lang.String getDisplay2DText()
Gets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.
Value: The text to display.public void setDisplay2DText(java.lang.String value)
Sets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.
Value: The text to display.public ITF14BorderType getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public void setITF14BorderType(ITF14BorderType value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public void setITF14BorderType(int value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public boolean getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
see CodeText
<note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>
public void setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property.
see CodeText
<note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>
public java.awt.Font getCodeTextFont()
public void setCodeTextFont(java.awt.Font value)
value
- CodeTextFontpublic java.awt.Color getCodeTextColor()
Specify the displaying CodeText's Color
see System.Drawing.Color
public void setCodeTextColor(java.awt.Color value)
Specify the displaying CodeText's Color
see System.Drawing.Color
public CodeLocation getCodeLocation()
BarCode.CodeLocation
CodeLocation
public void setCodeLocation(CodeLocation value)
BarCode.CodeLocation
CodeLocation
public float getCodeTextSpace()
Space between the CodeText and the BarCode.
DEFAULT GRAPHICS Unit: MILLIMETER
see CodeText
see CodeLocation
see CodeTextFont
see CodeTextColor
see CodeTextAlignment
public void setCodeTextSpace(float value)
Space between the CodeText and the BarCode.
DEFAULT GRAPHICS Unit: MILLIMETER
see CodeText
see CodeLocation
see CodeTextFont
see CodeTextColor
see CodeTextAlignment
public StringAlignment getCodeTextAlignment()
Gets the alignment of the code text.
see System.Drawing.StringAlignment
see
see
see
@Deprecated public void setCodeTextAlignment(int value)
public void setCodeTextAlignment(StringAlignment value)
public float getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
public void setRotationAngleF(float value)
public boolean getAutoSize()
Wether ajust image's size automatically. Recommended:true
public void setAutoSize(boolean value)
public float getImageWidth()
BarCode image's width see AutoSize
, if AutoSize is true, ImageWidth will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER
public void setImageWidth(float value)
public float getImageHeight()
BarCode image's height see AutoSize
, if AutoSize is true, height will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER
public void setImageHeight(float value)
BarCode image's height see AutoSize
, if AutoSize is true, height will
be increased accordingly
DEFAULT GRAPHICS Unit: MILLIMETER
public Caption getCaptionAbove()
Caption Above the BarCode image. see Caption
CaptionAbove contains the following properties:
CaptionAbove.Font,
CaptionAbove.ForeColor,
CaptionAbove.Space,
CaptionAbove.Visible,
CaptionAbove.TEXT,
CaptionAbove.TextAlign
public void setCaptionAbove(Caption value)
Caption Above the BarCode image. see Caption
CaptionAbove contains the following properties:
CaptionAbove.Font,
CaptionAbove.ForeColor,
CaptionAbove.Space,
CaptionAbove.Visible,
CaptionAbove.TEXT,
CaptionAbove.TextAlign
public Caption getCaptionBelow()
Caption Below the BarCode image. see Caption
CaptionBelow contains the following properties:
CaptionBelow.Font,
CaptionBelow.ForeColor,
CaptionBelow.Space,
CaptionBelow.Visible,
CaptionBelow.TEXT,
CaptionBelow.TextAlign
public void setCaptionBelow(Caption value)
Caption Below the BarCode image. see Caption
CaptionBelow contains the following properties:
CaptionBelow.Font,
CaptionBelow.ForeColor,
CaptionBelow.Space,
CaptionBelow.Visible,
CaptionBelow.TEXT,
CaptionBelow.TextAlign
public GraphicsUnit getGraphicsUnit()
Measurement of various properties such as width, height etc.
DEFAULT GraphicsUnit: MILLIMETER
see System.Drawing.GraphicsUnit
public void setGraphicsUnit(GraphicsUnit value)
Measurement of various properties such as width, height etc.
DEFAULT GraphicsUnit: MILLIMETER
see System.Drawing.GraphicsUnit
@Deprecated public void setGraphicsUnit(int value)
Measurement of various properties such as width, height etc.
DEFAULT GraphicsUnit: MILLIMETER
see System.Drawing.GraphicsUnit
public com.aspose.barcode.Resolution getResolution()
Gets the resolution of the BarCode image
see BarCode.Resolution
public void setResolution(com.aspose.barcode.Resolution value)
Sets the resolution of the BarCode image
see BarCode.Resolution
public float getBorderWidth()
BarCode Image's border's width
DEFAULT GRAPHICS Unit: MILLIMETER
see BorderVisible
see
see
public void setBorderWidth(float value)
BarCode Image's border's width
DEFAULT GRAPHICS Unit: MILLIMETER
see BorderVisible
see
see
public boolean getBorderVisible()
wether BarCode Image's border is visible
see BorderWidth
see
see
public void setBorderVisible(boolean value)
wether BarCode Image's border is visible
see BorderWidth
see
see
public java.awt.Color getBorderColor()
BarCode Image's border's color
see System.Drawing.Color
see BorderWidth
see BorderVisible
see BorderDashStyle
public void setBorderColor(java.awt.Color value)
BarCode Image's border's color
see System.Drawing.Color
see BorderWidth
see BorderVisible
see BorderDashStyle
public BorderDashStyle getBorderDashStyle()
BarCode Image's border's style
see BarCode.BorderDashStyle
see BorderWidth
see BorderVisible
see BorderColor
@Deprecated public void setBorderDashStyle(int value)
BarCode Image's border's style
see BarCode.BorderDashStyle
see BorderWidth
see BorderVisible
see BorderColor
public void setBorderDashStyle(BorderDashStyle value)
BarCode Image's border's style
see BarCode.BorderDashStyle
see BorderWidth
see BorderVisible
see BorderColor
public short getCodabarStartSymbol()
Start symbol (character) of codabar symbology
see CodabarStopSymbol
see CodabarSymbol
public void setCodabarStartSymbol(short value)
Start symbol (character) of codabar symbology
see CodabarStopSymbol
see CodabarSymbol
public short getCodabarStopSymbol()
Stop symbol (character) of codabar symbology
see CodabarStartSymbol
see CodabarSymbol
public void setCodabarStopSymbol(short value)
Stop symbol (character) of codabar symbology
see CodabarStartSymbol
see CodabarSymbol
public float getxDimension()
x-dimension, smallest width unit of BarCode's bars or spaces.
increase this will increase the whole barcode image's width if AutoSize is true
DEFAULT GRAPHICS Unit: MILLIMETER
see yDimension
see AutoSize
see BarHeight
public void setxDimension(float value)
x-dimension, smallest width unit of BarCode's bars or spaces.
increase this will increase the whole barcode image's width if AutoSize is true
DEFAULT GRAPHICS Unit: MILLIMETER
see yDimension
see AutoSize
see BarHeight
public float getyDimension()
y-dimension, smallest height unit of 2D BarCode's modules.
Some square symbols (such as DataMatrix) may ignore this and
use x-dimension for both width unit and height unit
In 2D barcode, y-dimension * rows determines BarCode's height
In 1D barcode, BarHeight determines BarCode's height.
DEFAULT GRAPHICS Unit: MILLIMETER
see xDimension
see BarHeight
public void setyDimension(float value)
y-dimension, smallest height unit of 2D BarCode's modules.
Some square symbols (such as DataMatrix) may ignore this and
use x-dimension for both width unit and height unit
In 2D barcode, y-dimension * rows determines BarCode's height
In 1D barcode, BarHeight determines BarCode's height.
DEFAULT GRAPHICS Unit: MILLIMETER
see xDimension
see BarHeight
public float getBarHeight()
height of 1D barcodes' bars.
In 2D barcode, y-dimension * rows determines BarCode's height
In 1D barcode, BarHeight determines BarCode's height.
DEFAULT GRAPHICS Unit: MILLIMETER
see yDimension
public void setBarHeight(float value)
height of 1D barcodes' bars.
In 2D barcode, y-dimension * rows determines BarCode's height
In 1D barcode, BarHeight determines BarCode's height.
DEFAULT GRAPHICS Unit: MILLIMETER
see yDimension
public java.awt.Color getForeColor()
Foreground color of the barcode image, that is,
BAR's color of 1D barcode, Module's color of 2D barcode
see System.Drawing.Color
public void setForeColor(java.awt.Color value)
Foreground color of the barcode image, that is,
BAR's color of 1D barcode, Module's color of 2D barcode
see System.Drawing.Color
public java.awt.Color getBackColor()
Background color of the barcode image
see System.Drawing.Color
public void setBackColor(java.awt.Color value)
Background color of the barcode image
see System.Drawing.Color
public EnableChecksum getEnableChecksum()
Enable checksum during generation for 1D barcodes.
DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
public void setEnableChecksum(EnableChecksum value)
Enable checksum during generation for 1D barcodes.
DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
@Deprecated public void setEnableChecksum(int value)
Enable checksum during generation for 1D barcodes.
DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
public CustomerInformationInterpretingType getCustomerInformationInterpretingType()
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
See BarCode.CustomerInformationInterpretingType
.
@Deprecated public void setCustomerInformationInterpretingType(int value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
See BarCode.CustomerInformationInterpretingType
.
public void setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
See BarCode.CustomerInformationInterpretingType
.
public float getAspectRatio()
2D BarCode's module's height/width ratio (yDimension/xDimension).
calculated based on xDimension set to 0 means
not using this feature.
see xDimension
see yDimension
public void setAspectRatio(float value)
2D BarCode's module's height/width ratio (yDimension/xDimension).
calculated based on xDimension set to 0 means
not using this feature.
see xDimension
see yDimension
public int getColumns()
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417
public void setColumns(int value)
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417
public int getRows()
2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417
public void setRows(int value)
2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417
public DataMatrixEncodeMode getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to AUTO
see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
public void setDataMatrixEncodeMode(DataMatrixEncodeMode value)
Encode mode of Datamatrix barcode, default to AUTO
see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
@Deprecated public void setDataMatrixEncodeMode(int value)
Encode mode of Datamatrix barcode, default to AUTO
see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
public Pdf417CompactionMode getPdf417CompactionMode()
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode>
see BarCode.Pdf417CompactionMode
public void setPdf417CompactionMode(int value)
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode>
see BarCode.Pdf417CompactionMode
public void setPdf417CompactionMode(Pdf417CompactionMode value)
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode>
see BarCode.Pdf417CompactionMode
public boolean getPdf417Truncate()
whether pdf417 symbology type of BarCode is truncated (to reduce space)
public void setPdf417Truncate(boolean value)
whether pdf417 symbology type of BarCode is truncated (to reduce space)
public Pdf417ErrorLevel getPdf417ErrorLevel()
Gets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
public void setPdf417ErrorLevel(Pdf417ErrorLevel value)
Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
public void setPdf417ErrorLevel(int value)
Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
public int getMacroPdf417SegmentsCount()
Gets macro pdf417 barcode segments count.
public void setMacroPdf417SegmentsCount(int value)
Sets macro pdf417 barcode segments count.
public int getMacroPdf417SegmentID()
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public void setMacroPdf417SegmentID(int value)
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public int getMacroPdf417FileID()
Gets macro pdf417 barcode's file ID.
public void setMacroPdf417FileID(int value)
Sets macro pdf417 barcode's file ID.
public float getWideNarrowRatio()
Wide bars to Narrow bars ratio for some 1D BarCode.
DEFAULT WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars
Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5
see EncodeTypes
public void setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio for some 1D BarCode.
DEFAULT WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars
Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5
see EncodeTypes
public com.aspose.barcode.MarginsF getMargins()
Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER
public void setMargins(com.aspose.barcode.MarginsF value)
Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER
public java.lang.String getSupplementData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
see EncodeTypes
see SupplementSpace
public void setSupplementData(java.lang.String value)
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
see EncodeTypes
see SupplementSpace
public float getSupplementSpace()
Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter
see System.Drawing.GraphicsUnit
see SupplementData
public void setSupplementSpace(float value)
Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter
see System.Drawing.GraphicsUnit
see SupplementData
public java.lang.String getPrinterName()
Choose printer, if not specified, Print() method will choose the first available printer
public void setPrinterName(java.lang.String value)
Choose printer, if not specified, Print() method will choose the first available printer
public com.aspose.barcode.ImageQualityMode getImageQuality()
GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode
see ImageQualityMode
public void setImageQuality(com.aspose.barcode.ImageQualityMode value)
GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode
see ImageQualityMode
@Deprecated public void setImageQuality(int value)
GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode
see ImageQualityMode
public com.aspose.barcode.TextRenderingHint getTextRenderingHint()
Specifies the quality of text rendering.
public void setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)
Specifies the quality of text rendering.
public QRErrorLevel getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel
.
public void setQRErrorLevel(QRErrorLevel value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel
.
@Deprecated public void setQRErrorLevel(int value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel
.
public QREncodeMode getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
public void setQREncodeMode(QREncodeMode value)
QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
public void setQREncodeMode(int value)
QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
public void rotate()
Rotate barcode image clockwise for 90 degrees
public void rotate(float angle)
Rotate barcode image clockwise
angle
- Rotation Anglepublic void rotate(com.aspose.barcode.RotationDirection direction, float angle)
Rotate the barcode image
direction
- rotation directionangle
- rotation angle@Deprecated public void rotate(int direction, float angle)
Rotate the barcode image
direction
- rotation directionangle
- rotation anglepublic void save(java.lang.String filename)
Save BarCodeImage to specific file in specific format
filename
- save to this file pathpublic void save(java.io.OutputStream stream, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
stream
- OutputStream
format
- BarCodeImageFormat
java.io.IOException
public void save(java.lang.String filename, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
filename
- save to this file pathformat
- BarCodeImageFormat
java.io.IOException
public void print() throws javax.print.PrintException
Print BarCodeImage
see PrinterName
javax.print.PrintException
public java.awt.image.BufferedImage getBarCodeImage()
Gets the BarCode Image. Type:Bitmap
public float getPostnetShortBarHeight()
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch)
see changing see System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: see BarHeightBarHeight
.
public void setPostnetShortBarHeight(float value)
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch)
see changing see System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: see BarHeightBarHeight
.
public float getPlanetShortBarHeight()
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
see changing see System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: see BarHeightBarHeight
.
public void setPlanetShortBarHeight(float value)
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
see changing see System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: see BarHeightBarHeight
.
public int getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
public void setAztectErrorLevel(int value)
Level of error corection of Aztect types of barcode. value should between 10 to 95
public java.lang.String toString()
overried to string method
toString
in class java.awt.Component