Package com.inductiveautomation.rm.shape
Class RMLabels
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
com.inductiveautomation.rm.shape.RMParentShape
com.inductiveautomation.rm.shape.RMLabels
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
This class represents a block of labels.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFieldsFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEditor method - indicates that labels child should super-select immediately.clone()Override to clone grouping.voidfixSize()Resets labels block width and height if any of labels other attributes have changed.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the dataset key associated with labels.Returns the grouping for this labels shape.getLabel()Returns the default label shape.doubleReturns the height of an individual label.doubleReturns the width of an individual label.intReturns the number of columns in the labels block.intReturns the number of rows in the labels block.getSort(int anIndex) Returns the specific sort at the given index.intReturns the number of sorts associated with labels.getSorts()Returns the list of sorts associated with labels.doubleReturns the spacing between labels vertically.doubleReturns the spacing between labels horizontally.voidpaintShape(RMShapePainter aPntr) Paint labels shapes.rpgAll(ReportOwner anRptOwner, RMShape aParent) Report Generation.voidsetDatasetKey(String aKeyPath) Sets the dataset key associated with labels.voidsetHeight(double value) Overrides shape method to recalc spacing height.voidsetLabelFormat(LabelFormat labelFormat) voidsetLabelHeight(double height) voidsetLabelWidth(double width) voidsetNumberOfColumns(int aValue) Sets the number of columns in the labels block.voidsetNumberOfRows(int aValue) Sets the number of rows in the labels block.voidOverridden because we want the size of the RMLabels to be the computed size determined by the size and numbers of the individual labelsvoidsetSpacingHeight(double aValue) Sets the spacing between labels vertically.voidsetSpacingWidth(double aValue) Sets the spacing between labels horizontally.voidsetWidth(double aWidth) Overrides shape method to recalc spacing width.protected RXElementtoXMLShape(RXArchiver anArchiver) XML archival.voidMethods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, 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, rpgChildren, sendShapesToBack, setLayout, setNeedsLayout, setSourceURL, toXML, toXMLChildrenMethods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, 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, getDisplayedFill, 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, rpgBindings, rpgShape, 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, 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.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
DATAKEY_PROP- See Also:
 
- 
LAYOUT_PROP- See Also:
 
 
- 
- 
Constructor Details- 
RMLabelspublic RMLabels()Creates a new labels template.
 
- 
- 
Method Details- 
getLabelFormat
- 
setLabelFormat
- 
getLabelReturns the default label shape.
- 
getDatasetKeyReturns the dataset key associated with labels.- Overrides:
- getDatasetKeyin class- RMShape
 
- 
setDatasetKeySets the dataset key associated with labels.
- 
getGroupingReturns the grouping for this labels shape.
- 
getSortsReturns the list of sorts associated with labels.
- 
getSortCountpublic int getSortCount()Returns the number of sorts associated with labels.
- 
getSortReturns the specific sort at the given index.
- 
getNumberOfRowspublic int getNumberOfRows()Returns the number of rows in the labels block.
- 
setNumberOfRowspublic void setNumberOfRows(int aValue) Sets the number of rows in the labels block.
- 
getNumberOfColumnspublic int getNumberOfColumns()Returns the number of columns in the labels block.
- 
setNumberOfColumnspublic void setNumberOfColumns(int aValue) Sets the number of columns in the labels block.
- 
getSpacingWidthpublic double getSpacingWidth()Returns the spacing between labels horizontally.
- 
setSpacingWidthpublic void setSpacingWidth(double aValue) Sets the spacing between labels horizontally.
- 
getSpacingHeightpublic double getSpacingHeight()Returns the spacing between labels vertically.
- 
setSpacingHeightpublic void setSpacingHeight(double aValue) Sets the spacing between labels vertically.
- 
getLabelWidthpublic double getLabelWidth()Returns the width of an individual label.
- 
setLabelWidthpublic void setLabelWidth(double width) 
- 
getLabelHeightpublic double getLabelHeight()Returns the height of an individual label.
- 
setLabelHeightpublic void setLabelHeight(double height) 
- 
setWidthpublic void setWidth(double aWidth) Overrides shape method to recalc spacing width.- Overrides:
- setWidthin class- RMParentShape
 
- 
setHeightpublic void setHeight(double value) Overrides shape method to recalc spacing height.- Overrides:
- setHeightin class- RMParentShape
 
- 
fixSizepublic void fixSize()Resets labels block width and height if any of labels other attributes have changed.
- 
updateLabelSizespublic void updateLabelSizes()
- 
rpgAllReport Generation.- Overrides:
- rpgAllin class- RMParentShape
 
- 
paintShapePaint labels shapes.- Overrides:
- paintShapein class- RMShape
 
- 
cloneOverride to clone grouping.- Overrides:
- clonein class- RMParentShape
 
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Editor method - indicates that labels child should super-select immediately.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
- 
fromXMLShapeXML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
- 
setSizeOverridden because we want the size of the RMLabels to be the computed size determined by the size and numbers of the individual labels
 
-