public class BarCodeGeneratorControl extends javax.swing.JLabel implements IBarCodeGeneratorControl
javax.swing.JLabel.AccessibleJLabel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
BarCodeGeneratorControl()
Initializes a new instance of the BarCodeGeneratorControl class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Releases resource.
|
AutoSizeMode |
getAutoSizeMode()
Gets the mode by which the barcode automatically resizes.
|
java.awt.Color |
getBackgroundColor()
Background color of the barcode image.
|
Unit |
getBarCodeHeight()
BarCode image height when com.aspose.barcode.generation.AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
|
Padding |
getBarcodePaddings()
Gets Barcode paddings parameters com.aspose.barcode.generation.Padding .
|
java.lang.String |
getBarcodeType()
BarCode's encode type (symbology).
|
Unit |
getBarCodeWidth()
BarCode image width when com.aspose.barcode.generation.AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
|
java.awt.Color |
getBarColor()
Bars color.
|
Unit |
getBarHeight()
Height of 1D barcodes' bars.
|
BorderParameters |
getBorderParameters()
Gets Border parameters com.aspose.barcode.generation.BorderParameters .
|
CaptionUI |
getCaptionAbove()
Caption Above the BarCode image.
|
CaptionUI |
getCaptionBelow()
Caption Above the BarCode image.
|
boolean |
getChecksumAlwaysShow()
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
java.lang.String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
CodetextParametersUI |
getCodeTextParameters()
Gets CodeText parameters com.aspose.barcode.generation.CodetextParameters .
|
boolean |
getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
|
BaseEncodeType |
getEncodeType()
BarCode's encode type (symbology).
|
boolean |
getFilledBars()
Gets a value indicating whether bars filled.
|
float |
getResolution()
Gets the resolution of the BarCode image.
|
float |
getRotationAngle()
BarCode image rotation angle, measured in degree, e.g.
|
SpecificParametersUI |
getSpecific()
Specific parameters
|
boolean |
getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes.
|
float |
getWideNarrowRatio()
Wide bars to Narrow bars ratio.
|
Unit |
getXDimension()
X-dimension is the smallest width of the unit of BarCode bars or spaces.
|
EnableChecksum |
isChecksumEnabled() |
protected void |
paintComponent(java.awt.Graphics g) |
void |
setAutoSizeMode(AutoSizeMode value)
Sets the mode by which the barcode automatically resizes.
|
void |
setBackgroundColor(java.awt.Color value)
Background color of the barcode image.
|
void |
setBarcodeType(java.lang.String value)
BarCode's encode type (symbology).
|
void |
setBarColor(java.awt.Color value)
Bars color.
|
void |
setChecksumAlwaysShow(boolean value)
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
void |
setChecksumEnabled(EnableChecksum value)
Enable checksum during generation 1D barcodes.
|
void |
setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
void |
setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setEncodeType(BaseEncodeType value)
BarCode's encode type (symbology).
|
void |
setFilledBars(boolean value)
Gets a value indicating whether bars filled.
|
void |
setResolution(float value)
Sets the resolution of the BarCode image.
|
void |
setRotationAngle(float value)
BarCode image rotation angle, measured in degree, e.g.
|
void |
setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes.
|
void |
setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio.
|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, 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, 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, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public BarCodeGeneratorControl()
protected void dispose(boolean disposing)
disposing
- true to release both managed and unmanaged resources; false to release only unmanaged resources.protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public java.lang.String getCodeText()
public void setCodeText(java.lang.String value)
public BaseEncodeType getEncodeType()
getEncodeType
in interface IBarCodeGeneratorControl
public void setEncodeType(BaseEncodeType value)
setEncodeType
in interface IBarCodeGeneratorControl
public java.lang.String getBarcodeType()
public void setBarcodeType(java.lang.String value)
public AutoSizeMode getAutoSizeMode()
public void setAutoSizeMode(AutoSizeMode value)
public CaptionUI getCaptionAbove()
public CaptionUI getCaptionBelow()
public Unit getXDimension()
public Unit getBarHeight()
public Unit getBarCodeHeight()
public Unit getBarCodeWidth()
public java.awt.Color getBarColor()
public void setBarColor(java.awt.Color value)
value
- public Padding getBarcodePaddings()
public boolean getChecksumAlwaysShow()
public void setChecksumAlwaysShow(boolean value)
public EnableChecksum isChecksumEnabled()
public void setChecksumEnabled(EnableChecksum value)
public boolean getEnableEscape()
public void setEnableEscape(boolean value)
public boolean getThrowExceptionWhenCodeTextIncorrect()
public void setThrowExceptionWhenCodeTextIncorrect(boolean value)
public float getWideNarrowRatio()
public void setWideNarrowRatio(float value)
value
- The WideNarrowRatio parameter value is less than or equal to 0.public CodetextParametersUI getCodeTextParameters()
public boolean getFilledBars()
public void setFilledBars(boolean value)
public SpecificParametersUI getSpecific()
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value)
public float getResolution()
public void setResolution(float value)
value
- The Resolution parameter value is less than or equal to 0.public BorderParameters getBorderParameters()
public float getRotationAngle()
getRotationAngle
in interface IBarCodeGeneratorControl
public void setRotationAngle(float value)
setRotationAngle
in interface IBarCodeGeneratorControl