public class QRcodeBarcode extends BarcodeImpl
barHeight, barWidth, data, drawingQuietSection, drawingText, font, size, x, y
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
QRcodeBarcode(java.lang.String data) |
限定符和类型 | 方法和说明 |
---|---|
protected Module |
calculateChecksum() |
protected java.awt.Dimension |
draw(AbstractOutput output,
int x2,
int y2,
double barWidth2,
double barHeight2) |
void |
draw(java.awt.Graphics2D g,
int x,
int y)
绘制二维码
|
protected java.awt.Dimension |
draw(GraphicsOutput output,
int x2,
int y2,
double barWidth2,
double barHeight2) |
protected Module[] |
encodeData() |
protected double |
getBarcodeWidth(int resolution) |
int |
getHeight()
获取生成二维码的高度
|
protected Module |
getPostAmble() |
protected Module |
getPreAmble() |
int |
getWidth()
获取生成二维码的宽度
|
protected int |
QRCodeversiontoint(int rCodeVersion) |
beautify, calculateMinimumBarHeight, calculateSize, clone, drawModule, drawModule, getBackground, getBounds, getBounds, getData, getFont, getForeground, getLabel, getMaximumSize, getMinimumSize, getPreferredSize, getRcodeDrawPix, getRCodeErrorCorrect, getRCodeVersion, getResolution, getSize, getX, getY, invalidateSize, isDrawingQuietSection, isDrawingText, paintComponent, setBackground, setBarHeight, setBarWidth, setDrawingQuietSection, setDrawingText, setFont, setForeground, setRcodeDrawPix, setRCodeErrorCorrect, setRCodeVersion, setResolution, setSVGScalar
addAncestorListener, 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, updateUI
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, 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, transferFocusUpCycle
public QRcodeBarcode(java.lang.String data) throws BarcodeException
data
- 生成二维码的源数据BarcodeException
protected int QRCodeversiontoint(int rCodeVersion)
public void draw(java.awt.Graphics2D g, int x, int y)
draw
在类中 BarcodeImpl
g
- 画板x
- 起始点xy
- 起始点ypublic int getWidth()
getWidth
在类中 BarcodeImpl
public int getHeight()
getHeight
在类中 BarcodeImpl
protected Module calculateChecksum()
calculateChecksum
在类中 BarcodeImpl
protected Module[] encodeData()
encodeData
在类中 BarcodeImpl
protected double getBarcodeWidth(int resolution)
getBarcodeWidth
在类中 BarcodeImpl
protected Module getPostAmble()
getPostAmble
在类中 BarcodeImpl
protected Module getPreAmble()
getPreAmble
在类中 BarcodeImpl
protected java.awt.Dimension draw(GraphicsOutput output, int x2, int y2, double barWidth2, double barHeight2)
protected java.awt.Dimension draw(AbstractOutput output, int x2, int y2, double barWidth2, double barHeight2)
draw
在类中 BarcodeImpl