public class EAN13Barcode extends UPCABarcode
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BARCODE_LENGTH |
static java.lang.String |
ISBN_NUMBER_SYSTEM |
static int |
ISBN_SIZE |
static int |
LEFT_EVEN |
static int |
LEFT_ODD |
static int |
PARITY_EVEN |
static int |
PARITY_ODD |
static int |
RIGHT |
static java.lang.String[] |
TYPES
A list of type identifiers for the EAN13 barcode format
|
CHECKSUM_WEIGHT_EVEN, CHECKSUM_WEIGHT_ODD, label, requiresChecksum, widthbarHeight, barWidth, data, drawingQuietSection, drawingText, font, size, x, yaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| 构造器和说明 |
|---|
EAN13Barcode(java.lang.String data)
Constructs a basic mode EAN13 barcode with the specified data and an optional
checksum.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Module |
calculateChecksum()
Returns the checksum for the barcode, pre-encoded as a Module.
|
protected java.awt.Dimension |
calculateSize() |
protected java.awt.Dimension |
draw(AbstractOutput output,
int x,
int y,
double barWidth,
double barHeight) |
void |
draw(java.awt.Graphics2D g,
int x,
int y)
Renders this
Barcode at the specified location in
the specified Graphics2D context. |
protected Module[] |
encodeData()
Returns the encoded data for the barcode.
|
protected int |
getBarcodeLength() |
protected int |
getGuardCharSize() |
protected int |
getLeftWidth() |
static int |
getMod10CheckDigit(java.lang.String data) |
protected Module |
getRightMargin() |
calculateChecksum, getBarcodeWidth, getCentreGuard, getLabel, getLeftMargin, getModCheckDigit, getPostAmble, getPreAmblebeautify, calculateMinimumBarHeight, clone, drawModule, drawModule, getBackground, getBounds, getBounds, getData, getFont, getForeground, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getRcodeDrawPix, getRCodeErrorCorrect, getRCodeVersion, getResolution, getSize, getWidth, getX, getY, invalidateSize, isDrawingQuietSection, isDrawingText, paintComponent, setBackground, setBarHeight, setBarWidth, setDrawingQuietSection, setDrawingText, setFont, setForeground, setRcodeDrawPix, setRCodeErrorCorrect, setRCodeVersion, setResolution, setSVGScalaraddAncestorListener, 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, hide, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, 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, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, 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, 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, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String[] TYPES
public static final int LEFT_ODD
public static final int LEFT_EVEN
public static final int RIGHT
public static final int PARITY_EVEN
public static final int PARITY_ODD
public static final int BARCODE_LENGTH
public static final java.lang.String ISBN_NUMBER_SYSTEM
public static final int ISBN_SIZE
public EAN13Barcode(java.lang.String data)
throws BarcodeException
data - The data to encodeBarcodeException - If the data to be encoded is invalidprotected int getBarcodeLength()
getBarcodeLength 在类中 UPCABarcodeprotected int getGuardCharSize()
getGuardCharSize 在类中 UPCABarcodeprotected int getLeftWidth()
getLeftWidth 在类中 UPCABarcodeprotected Module getRightMargin()
getRightMargin 在类中 UPCABarcodepublic void draw(java.awt.Graphics2D g,
int x,
int y)
BarcodeImplBarcode at the specified location in
the specified Graphics2D context.
The origin of the layout is placed at x, y. Rendering may touch
any point within getBounds() of this position. This
leaves the g2 unchanged.draw 在类中 BarcodeImplg - The graphics contextx - The horizontal value of the upper left co-ordinate of the bounding boxy - The vertical value of the upper left co-ordinate of the bounding boxprotected java.awt.Dimension draw(AbstractOutput output, int x, int y, double barWidth, double barHeight)
draw 在类中 UPCABarcodeprotected java.awt.Dimension calculateSize()
calculateSize 在类中 BarcodeImplprotected Module[] encodeData()
encodeData 在类中 UPCABarcodeprotected Module calculateChecksum()
calculateChecksum 在类中 UPCABarcodepublic static int getMod10CheckDigit(java.lang.String data)