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,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class Barcode extends AbstractJ2DShape implements RMShapeSelfInit Filename: Barcode Author: Perry Arellano-Jones Created on: 6/15/15 Project: ignition_dev_7_8BProvides a Barcode component for the Reporting Module. 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringARCHIVE_NAMEstatic java.lang.StringCODE_FORMAT_ATTRIBstatic java.lang.StringCODESTRING_ATTRIBstatic java.lang.StringCONTENT_PROPstatic java.awt.FontDEFAULT_LABEL_FONTstatic java.lang.StringFONT_ATTRIBstatic java.lang.StringPLACEHOLDER_ATTRIBstatic java.awt.FontPLACEHOLDER_FONTstatic java.lang.StringQR_CODE_AUTOstatic java.lang.StringQR_CODE_EC_LEVEL_ATTRIBstatic java.lang.StringQR_CODE_VERSION_ATTRIBstatic java.util.Map<com.google.zxing.BarcodeFormat,java.lang.String>samplestatic java.lang.StringSHOWTEXT_ATTRIB- 
Fields inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapeDEFAULT_COLORS, dirty, DPI300, DPI72, RasterDPI
 - 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description Barcode()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawErrorAndThrow(java.awt.Graphics2D g, int width, int height, int pad, java.lang.IllegalArgumentException iae)java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.com.google.zxing.BarcodeFormatgetBarcodeFormat()java.lang.StringgetCodeString()Returns the key used to load if none is provided.java.awt.FontgetLabelFont()intgetPageIndex()Returns the page index.java.lang.StringgetQrCodeVersion()com.google.zxing.qrcode.decoder.ErrorCorrectionLevelgetQrEcLevel()booleangetShowText()booleanisShowText()protected voidrender(java.awt.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(java.lang.String str)Sets the key used to create a barcode if none is provided.voidsetIsPlaceholder(boolean isPlaceholder)voidsetLabelFont(java.awt.Font labelFont)voidsetQrCodeVersion(java.lang.String version)voidsetQrEcLevel(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level)voidsetShowText(boolean showText)RXElementtoXML(RXArchiver anArchiver)XML Archival.- 
Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapegetDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirty
 - 
Methods 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, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
ARCHIVE_NAMEpublic static final java.lang.String ARCHIVE_NAME - See Also:
- Constant Field Values
 
 - 
CONTENT_PROPpublic static final java.lang.String CONTENT_PROP - See Also:
- Constant Field Values
 
 - 
CODESTRING_ATTRIBpublic static final java.lang.String CODESTRING_ATTRIB - See Also:
- Constant Field Values
 
 - 
CODE_FORMAT_ATTRIBpublic static final java.lang.String CODE_FORMAT_ATTRIB - See Also:
- Constant Field Values
 
 - 
QR_CODE_VERSION_ATTRIBpublic static final java.lang.String QR_CODE_VERSION_ATTRIB - See Also:
- Constant Field Values
 
 - 
QR_CODE_EC_LEVEL_ATTRIBpublic static final java.lang.String QR_CODE_EC_LEVEL_ATTRIB - See Also:
- Constant Field Values
 
 - 
QR_CODE_AUTOpublic static final java.lang.String QR_CODE_AUTO - See Also:
- Constant Field Values
 
 - 
SHOWTEXT_ATTRIBpublic static final java.lang.String SHOWTEXT_ATTRIB - See Also:
- Constant Field Values
 
 - 
PLACEHOLDER_ATTRIBpublic static final java.lang.String PLACEHOLDER_ATTRIB - See Also:
- Constant Field Values
 
 - 
FONT_ATTRIBpublic static final java.lang.String FONT_ATTRIB - See Also:
- Constant Field Values
 
 - 
DEFAULT_LABEL_FONTpublic static final java.awt.Font DEFAULT_LABEL_FONT 
 - 
PLACEHOLDER_FONTpublic static final java.awt.Font PLACEHOLDER_FONT 
 - 
samplepublic static final java.util.Map<com.google.zxing.BarcodeFormat,java.lang.String> sample 
 
- 
 - 
Method Detail- 
selfInitpublic void selfInit() - Specified by:
- selfInitin interface- RMShapeSelfInit
 
 - 
getCodeStringpublic java.lang.String getCodeString() Returns the key used to load if none is provided.
 - 
setCodeStringpublic void setCodeString(java.lang.String str) Sets the key used to create a barcode if none is provided.
 - 
renderprotected void render(java.awt.Graphics2D g, int width, int height)This is where implementations of AbstractJ2DShape actually paint themselves to a graphics context.- Specified by:
- renderin class- AbstractJ2DShape
 
 - 
drawErrorAndThrowpublic void drawErrorAndThrow(java.awt.Graphics2D g, int width, int height, int pad, java.lang.IllegalArgumentException iae)
 - 
getLabelFontpublic java.awt.Font getLabelFont() 
 - 
setLabelFontpublic void setLabelFont(java.awt.Font labelFont) 
 - 
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) 
 - 
getQrCodeVersionpublic java.lang.String getQrCodeVersion() 
 - 
setQrCodeVersionpublic void setQrCodeVersion(java.lang.String version) 
 - 
rpgShapeprotected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) Description copied from class:RMShapeGenerate report with report owner.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
 - 
setIsPlaceholderpublic void setIsPlaceholder(boolean isPlaceholder) 
 
- 
 
-