public class UCCEAN128Barcode extends Code128Barcode
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static String |
EAN128_AI
EAN 128 application identifier for all EAN 128 formats.
|
static String |
GTIN_AI
Global Trade Item Number application identifier.
|
static String |
SCC_14_AI
SCC-14 shipping code application identifier.
|
static String |
SHIPMENT_ID_AI
Shipment Identification Number application identifier.
|
static String |
SSCC_18_AI
SSCC-18 application identifier.
|
static String |
USPS_AI
US Postal service application identifier for all USPS formats.
|
A, B, BUF_SIZES, C, CHANGE_TO_A, CHANGE_TO_B, CHANGE_TO_C, FNC_1, mode, O, QUIET_SECTION, SHIFT, START_A, START_B, START_C, START_INDICES, startIndex, STOPbarHeight, barWidth, data, drawingQuietSection, drawingText, labelaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTNO_SUCH_PAGE, PAGE_EXISTSABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
UCCEAN128Barcode(String encodedData)
Creates a new UCC/EAN 128 barcode with the given application identifier and
data to encode.
|
UCCEAN128Barcode(String data,
boolean includeCheckDigit)
Creates a new UCC/EAN 128 barcode based on the provided data, with an
optional Modulo 10 check digit.
|
UCCEAN128Barcode(String applicationIdentifier,
String data)
Creates a new UCC/EAN 128 barcode with the given application identifier and
data to encode.
|
UCCEAN128Barcode(String applicationIdentifier,
String data,
boolean includeCheckDigit)
Creates a new UCC/EAN 128 barcode with the given application identifier and
data to encode.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
Returns the text to be displayed underneath the barcode.
|
protected Module |
getPreAmble()
Returns the pre-amble for this barcode type.
|
calculateChecksum, calculateMinimumBarHeight, encodeData, getCharacterSet, getPostAmble, getSymbolWidthdraw, drawTextLabelbeautify, draw, drawModule, getBounds, getBounds, getData, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getResolution, getSize, getWidth, getX, getY, isDrawingQuietSection, isDrawingText, output, paintComponent, print, setBarHeight, setBarWidth, setDrawingQuietSection, setDrawingText, setFont, setLabel, setResolution, toStringaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, 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, validateTreeaction, 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, 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, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String SSCC_18_AI
public static final String SCC_14_AI
public static final String GTIN_AI
public static final String EAN128_AI
public static final String SHIPMENT_ID_AI
public static final String USPS_AI
public UCCEAN128Barcode(String applicationIdentifier, String data) throws BarcodeException
applicationIdentifier - The application identifier for this barcodedata - The data to encodeBarcodeException - If the data to be encoded is invalidpublic UCCEAN128Barcode(String applicationIdentifier, String data, boolean includeCheckDigit) throws BarcodeException
applicationIdentifier - The application identifier for this barcodedata - The data to encodeincludeCheckDigit - specifies whether a mod 10 check digit should be generated or notBarcodeException - If the data to be encoded is invalidpublic UCCEAN128Barcode(String data, boolean includeCheckDigit) throws BarcodeException
data - The data to encodeincludeCheckDigit - if true then a modulo 10 check digit based on
data is appendedBarcodeException - If the data to be encoded is invalidpublic UCCEAN128Barcode(String encodedData) throws BarcodeException
encodedData - The data to encode. The application identifiers should
be enclosed in parentheses, i.e., (01) 123435 (14) 1234235 e.t.c.
Concatenating Element Strings of variable length, which includes all Application
Identifiers that do not start with two characters contained in Figure 5.3.8.2.1 ? 1,
involves the use of a Separator Character. The Separator Character used is the
Function 1 Character (FNC1). It is placed immediately after the last symbol
character of a variable length data string and is followed by the Application
Identifier of the next Element String. If the Element String is the last to be encoded,
it is followed by the Symbol Check and Stop Characters and not the FNC1
Separator Character.BarcodeException - If the data to be encoded is invalidprotected Module getPreAmble()
getPreAmble in class Code128Barcodepublic String getLabel()
getLabel in class Code128BarcodeCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.