Class RMBarcode
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,Unexpandable,RMShapeSelfInit,PropertyChangeListener,Cloneable,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Fontstatic final Stringstatic final Stringstatic final Fontstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.inductiveautomation.rm.shape.rm2dshapes.AbstractRM2DShape
DEFAULT_COLORS, USE_RASTER_ATTRIB, USE_RASTER_PROPERTY_STRINGFields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawErrorAndThrow(Graphics2D g, int width, int height, int pad, IllegalArgumentException iae) fromXML(RXArchiver archiver, RXElement element) XML unarchival.com.google.zxing.BarcodeFormatReturns the key used to load if none is provided.intReturns the page index.com.google.zxing.qrcode.decoder.ErrorCorrectionLevelbooleanbooleanprotected voidrender(Graphics2D g, int width, int height) This is where implementations of AbstractJ2DShape actually paint themselves to a graphics context.protected RMShaperpgShape(ReportOwner anRptOwner, RMShape aParent) Generate report with report owner.voidselfInit()voidsetBarcodeFormat(com.google.zxing.BarcodeFormat format) voidsetCodeString(String str) Sets the key used to create a barcode if none is provided.voidsetIsPlaceholder(boolean isPlaceholder) voidsetLabelFont(Font labelFont) voidsetQrCodeVersion(String version) voidsetQrEcLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level) voidsetShowText(boolean showText) toXML(RXArchiver archiver) XML Archival.Methods inherited from class com.inductiveautomation.rm.shape.rm2dshapes.AbstractRM2DShape
clone, getDefaultColorCodes, getDefaultColors, getDisplayedFill, getRenderContext, getUseRaster, getUserRasterInternal, isRpg, setDirty, setIsRpg, setRenderContext, setUseRaster, useImageForVector, writeEnd, writeStartMethods inherited from class com.inductiveautomation.rm.shape.RMParentShape
addChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXMLChildren, fromXMLShape, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXMLChildren, toXMLShapeMethods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
ARCHIVE_NAME
- See Also:
-
CONTENT_PROP
- See Also:
-
CODESTRING_ATTRIB
- See Also:
-
CODE_FORMAT_ATTRIB
- See Also:
-
QR_CODE_VERSION_ATTRIB
- See Also:
-
QR_CODE_EC_LEVEL_ATTRIB
- See Also:
-
QR_CODE_AUTO
- See Also:
-
SHOWTEXT_ATTRIB
- See Also:
-
PLACEHOLDER_ATTRIB
- See Also:
-
FONT_ATTRIB
- See Also:
-
DEFAULT_LABEL_FONT
-
PLACEHOLDER_FONT
-
sample
-
-
Constructor Details
-
RMBarcode
public RMBarcode()
-
-
Method Details
-
selfInit
public void selfInit()- Specified by:
selfInitin interfaceRMShapeSelfInit
-
getCodeString
Returns the key used to load if none is provided. -
setCodeString
Sets the key used to create a barcode if none is provided. -
render
This is where implementations of AbstractJ2DShape actually paint themselves to a graphics context.- Specified by:
renderin classAbstractRM2DShape
-
drawErrorAndThrow
public void drawErrorAndThrow(Graphics2D g, int width, int height, int pad, IllegalArgumentException iae) -
getLabelFont
-
setLabelFont
-
getPageIndex
public int getPageIndex()Returns the page index. -
isShowText
public boolean isShowText() -
setShowText
public void setShowText(boolean showText) -
getShowText
public boolean getShowText() -
getBarcodeFormat
public com.google.zxing.BarcodeFormat getBarcodeFormat() -
setBarcodeFormat
public void setBarcodeFormat(com.google.zxing.BarcodeFormat format) -
getQrEcLevel
public com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getQrEcLevel() -
setQrEcLevel
public void setQrEcLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level) -
getQrCodeVersion
-
setQrCodeVersion
-
rpgShape
Description copied from class:RMShapeGenerate report with report owner. -
toXML
XML Archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classAbstractRM2DShape
-
fromXML
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classAbstractRM2DShape
-
setIsPlaceholder
public void setIsPlaceholder(boolean isPlaceholder)
-