Class LabeledShape
- java.lang.Object
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- AbstractButtonShape,- JLabelShape
 
 public class LabeledShape extends JComponentShape A JComponentShape subclass for Labeled JComponents (JLabel, AbstractButton).
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description LabeledShape()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchildrenSuperSelectImmediately()Declare this for editing.protected voidconfigureComponent(JBuilder aBldr, javax.swing.JComponent aComp)Override to apply subclass attributes.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMTypes.AlignXgetAlignmentX()Returns the horizontal alignment.RMTypes.AlignYgetAlignmentY()Returns the vertical alignment.intgetHorizontalAlignment()Returns the HorizontalAlignment.intgetHorizontalAlignmentDefault()Returns the default HorizontalAlignment.static java.lang.IntegergetHorizontalAlignmentInt(java.lang.String aString)Sets the horizontal alignment of the given component as a string ("left", "center" or "right").static java.lang.StringgetHorizontalAlignmentString(int anInt)Returns the horizontal alignment of the given component as a string ("left", "center" or "right").intgetHorizontalTextPosition()Returns the HorizontalTextPosition.static java.lang.IntegergetHorizontalTextPositionInt(java.lang.String aString)Sets the label's horizontal text position as a string.static java.lang.StringgetHorizontalTextPositionString(int anInt)Returns the labels horizontal text position as a string.javax.swing.IcongetIcon()Returns the icon.protected javax.swing.IcongetIcon(java.lang.String aName)Returns an icon for given name.intgetIconTextGap()Returns the IconTextGap.WebFilegetImageFile()Returns the image WebFile.WebFilegetImageFile(java.lang.String aName)Returns the image WebFile.java.lang.StringgetImageName()Returns the image name.java.lang.StringgetText()Returns the text.intgetVerticalAlignment()Returns the VerticalAlignment.intgetVerticalAlignmentDefault()Returns the default VerticalAlignment.static java.lang.IntegergetVerticalAlignmentInt(java.lang.String aString)Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").static java.lang.StringgetVerticalAlignmentString(int anInt)Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").intgetVerticalTextPosition()Returns the VerticalTextPosition.static java.lang.IntegergetVerticalTextPositionInt(java.lang.String aString)Sets the label's vertical text position as a string.static java.lang.StringgetVerticalTextPositionString(int anInt)Returns the labels vertical text position as a string.voidsetAlignmentX(RMTypes.AlignX anAlignX)Sets the alignment x.voidsetAlignmentY(RMTypes.AlignY anAlignY)Sets the alignment x.voidsetHorizontalAlignment(int aValue)Sets the HorizontalAlignment.voidsetHorizontalTextPosition(int aValue)Sets the HorizontalTextPosition.voidsetIcon(javax.swing.Icon anIcon)Sets the icon.voidsetIconTextGap(int aValue)Sets the IconTextGap.voidsetImageName(java.lang.String aName)Sets the image name.voidsetText(java.lang.String aString)Sets the text.voidsetVerticalAlignment(int aValue)Sets the VerticalAlignment.voidsetVerticalTextPosition(int aValue)Sets the VerticalTextPosition.protected RXElementtoXMLShape(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.swing.shape.JComponentShapeacceptsMouse, clone, createComponent, createComponentDeep, dispatchEventToComponent, firePropertyChange, getAction, getAutoscrolls, getBackground, getBorder, getClientProperty, getComponent, getComponentClass, getFont, getForeground, getItemDisplayKey, getRealClassName, getSendActionOnFocusLost, getToolTipText, isEnabled, isFontSet, isOpaque, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintShape, putClientProperty, setAction, setAutoscrolls, setBackground, setBorder, setEnabled, setFont, setForeground, setItemDisplayKey, setOpaque, setRealClassName, setSendActionOnFocusLost, setToolTipText, toXMLChildren
 - 
Methods 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, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, 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, 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, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, 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, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, 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, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getTextpublic java.lang.String getText() Returns the text.
 - 
setTextpublic void setText(java.lang.String aString) Sets the text.
 - 
getImageNamepublic java.lang.String getImageName() Returns the image name.
 - 
setImageNamepublic void setImageName(java.lang.String aName) Sets the image name.
 - 
getImageFilepublic WebFile getImageFile() Returns the image WebFile.
 - 
getImageFilepublic WebFile getImageFile(java.lang.String aName) Returns the image WebFile.
 - 
getHorizontalAlignmentpublic int getHorizontalAlignment() Returns the HorizontalAlignment.
 - 
setHorizontalAlignmentpublic void setHorizontalAlignment(int aValue) Sets the HorizontalAlignment.
 - 
getHorizontalAlignmentDefaultpublic int getHorizontalAlignmentDefault() Returns the default HorizontalAlignment.
 - 
getAlignmentXpublic RMTypes.AlignX getAlignmentX() Returns the horizontal alignment.- Overrides:
- getAlignmentXin class- RMShape
 
 - 
setAlignmentXpublic void setAlignmentX(RMTypes.AlignX anAlignX) Sets the alignment x.- Overrides:
- setAlignmentXin class- RMShape
 
 - 
getVerticalAlignmentpublic int getVerticalAlignment() Returns the VerticalAlignment.
 - 
setVerticalAlignmentpublic void setVerticalAlignment(int aValue) Sets the VerticalAlignment.
 - 
getVerticalAlignmentDefaultpublic int getVerticalAlignmentDefault() Returns the default VerticalAlignment.
 - 
getAlignmentYpublic RMTypes.AlignY getAlignmentY() Returns the vertical alignment.- Overrides:
- getAlignmentYin class- RMShape
 
 - 
setAlignmentYpublic void setAlignmentY(RMTypes.AlignY anAlignY) Sets the alignment x.- Overrides:
- setAlignmentYin class- RMShape
 
 - 
getHorizontalTextPositionpublic int getHorizontalTextPosition() Returns the HorizontalTextPosition.
 - 
setHorizontalTextPositionpublic void setHorizontalTextPosition(int aValue) Sets the HorizontalTextPosition.
 - 
getVerticalTextPositionpublic int getVerticalTextPosition() Returns the VerticalTextPosition.
 - 
setVerticalTextPositionpublic void setVerticalTextPosition(int aValue) Sets the VerticalTextPosition.
 - 
getIconTextGappublic int getIconTextGap() Returns the IconTextGap.
 - 
setIconTextGappublic void setIconTextGap(int aValue) Sets the IconTextGap.
 - 
getHorizontalAlignmentStringpublic static java.lang.String getHorizontalAlignmentString(int anInt) Returns the horizontal alignment of the given component as a string ("left", "center" or "right").
 - 
getHorizontalAlignmentIntpublic static java.lang.Integer getHorizontalAlignmentInt(java.lang.String aString) Sets the horizontal alignment of the given component as a string ("left", "center" or "right").
 - 
getVerticalAlignmentStringpublic static java.lang.String getVerticalAlignmentString(int anInt) Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").
 - 
getVerticalAlignmentIntpublic static java.lang.Integer getVerticalAlignmentInt(java.lang.String aString) Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").
 - 
getHorizontalTextPositionStringpublic static java.lang.String getHorizontalTextPositionString(int anInt) Returns the labels horizontal text position as a string.
 - 
getHorizontalTextPositionIntpublic static java.lang.Integer getHorizontalTextPositionInt(java.lang.String aString) Sets the label's horizontal text position as a string.
 - 
getVerticalTextPositionStringpublic static java.lang.String getVerticalTextPositionString(int anInt) Returns the labels vertical text position as a string.
 - 
getVerticalTextPositionIntpublic static java.lang.Integer getVerticalTextPositionInt(java.lang.String aString) Sets the label's vertical text position as a string.
 - 
getIconpublic javax.swing.Icon getIcon() Returns the icon.
 - 
setIconpublic void setIcon(javax.swing.Icon anIcon) Sets the icon.
 - 
configureComponentprotected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp) Override to apply subclass attributes.- Overrides:
- configureComponentin class- JComponentShape
 
 - 
getIcon@Nullable protected javax.swing.Icon getIcon(java.lang.String aName) Returns an icon for given name.
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Declare this for editing.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLShapein class- JComponentShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLShapein class- JComponentShape
 
 
- 
 
-