Class Barcode
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape
com.inductiveautomation.rm.shape.j2dshapes.Barcode
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- RMShapeSelfInit,- PropertyChangeListener,- Cloneable,- EventListener
Filename: Barcode
 Author: Perry Arellano-Jones
 Created on: 6/15/15
 Project: ignition_dev_7_8B
 
Provides a Barcode component for the Reporting Module.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFieldsModifier 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.j2dshapes.AbstractJ2DShapeDEFAULT_COLORS, dirty, DPI300, DPI72, RasterDPIFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddrawErrorAndThrow(Graphics2D g, int width, int height, int pad, IllegalArgumentException iae) fromXML(RXArchiver anArchiver, RXElement anElement) 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 anArchiver) XML Archival.Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapegetDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirtyMethods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, computePrefHeight, computePrefWidth, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, 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, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, 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, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, 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- 
Barcodepublic Barcode()
 
- 
- 
Method Details- 
selfInitpublic void selfInit()- Specified by:
- selfInitin interface- RMShapeSelfInit
 
- 
getCodeStringReturns the key used to load if none is provided.
- 
setCodeStringSets the key used to create a barcode if none is provided.
- 
renderThis is where implementations of AbstractJ2DShape actually paint themselves to a graphics context.- Specified by:
- renderin class- AbstractJ2DShape
 
- 
drawErrorAndThrowpublic void drawErrorAndThrow(Graphics2D g, int width, int height, int pad, IllegalArgumentException iae) 
- 
getLabelFont
- 
setLabelFont
- 
getPageIndexpublic int getPageIndex()Returns the page index.
- 
isShowTextpublic boolean isShowText()
- 
setShowTextpublic void setShowText(boolean showText) 
- 
getShowTextpublic boolean getShowText()
- 
getBarcodeFormatpublic com.google.zxing.BarcodeFormat getBarcodeFormat()
- 
setBarcodeFormatpublic void setBarcodeFormat(com.google.zxing.BarcodeFormat format) 
- 
getQrEcLevelpublic com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getQrEcLevel()
- 
setQrEcLevelpublic void setQrEcLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level) 
- 
getQrCodeVersion
- 
setQrCodeVersion
- 
rpgShapeDescription copied from class:RMShapeGenerate report with report owner.
- 
toXMLXML Archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
- 
setIsPlaceholderpublic void setIsPlaceholder(boolean isPlaceholder) 
 
-