Class LabeledShape
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- AbstractButtonShape,- JLabelShape
A JComponentShape subclass for Labeled JComponents (JLabel, AbstractButton).
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeclare this for editing.protected voidconfigureComponent(JBuilder aBldr, JComponent aComp) Override to apply subclass attributes.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the horizontal alignment.Returns the vertical alignment.intReturns the HorizontalAlignment.intReturns the default HorizontalAlignment.static IntegergetHorizontalAlignmentInt(String aString) Sets the horizontal alignment of the given component as a string ("left", "center" or "right").static StringgetHorizontalAlignmentString(int anInt) Returns the horizontal alignment of the given component as a string ("left", "center" or "right").intReturns the HorizontalTextPosition.static IntegergetHorizontalTextPositionInt(String aString) Sets the label's horizontal text position as a string.static StringgetHorizontalTextPositionString(int anInt) Returns the labels horizontal text position as a string.getIcon()Returns the icon.protected IconReturns an icon for given name.intReturns the IconTextGap.Returns the image WebFile.getImageFile(String aName) Returns the image WebFile.Returns the image name.getText()Returns the text.intReturns the VerticalAlignment.intReturns the default VerticalAlignment.static IntegergetVerticalAlignmentInt(String aString) Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").static StringgetVerticalAlignmentString(int anInt) Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").intReturns the VerticalTextPosition.static IntegergetVerticalTextPositionInt(String aString) Sets the label's vertical text position as a string.static 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.voidSets the icon.voidsetIconTextGap(int aValue) Sets the IconTextGap.voidsetImageName(String aName) Sets the image name.voidSets 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, toXMLChildrenMethods 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, toXMLMethods 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, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
LabeledShapepublic LabeledShape()
 
- 
- 
Method Details- 
getTextReturns the text.
- 
setTextSets the text.
- 
getImageNameReturns the image name.
- 
setImageNameSets the image name.
- 
getImageFileReturns the image WebFile.
- 
getImageFileReturns the image WebFile.
- 
getHorizontalAlignmentpublic int getHorizontalAlignment()Returns the HorizontalAlignment.
- 
setHorizontalAlignmentpublic void setHorizontalAlignment(int aValue) Sets the HorizontalAlignment.
- 
getHorizontalAlignmentDefaultpublic int getHorizontalAlignmentDefault()Returns the default HorizontalAlignment.
- 
getAlignmentXReturns the horizontal alignment.- Overrides:
- getAlignmentXin class- RMShape
 
- 
setAlignmentXSets 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.
- 
getAlignmentYReturns the vertical alignment.- Overrides:
- getAlignmentYin class- RMShape
 
- 
setAlignmentYSets 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.
- 
getHorizontalAlignmentStringReturns the horizontal alignment of the given component as a string ("left", "center" or "right").
- 
getHorizontalAlignmentIntSets the horizontal alignment of the given component as a string ("left", "center" or "right").
- 
getVerticalAlignmentStringReturns the vertical alignment of the given component as a string ("top", "center" or "bottom").
- 
getVerticalAlignmentIntSets the vertical alignment of the given component as a string ("top", "center" or "bottom").
- 
getHorizontalTextPositionStringReturns the labels horizontal text position as a string.
- 
getHorizontalTextPositionIntSets the label's horizontal text position as a string.
- 
getVerticalTextPositionStringReturns the labels vertical text position as a string.
- 
getVerticalTextPositionIntSets the label's vertical text position as a string.
- 
getIconReturns the icon.
- 
setIconSets the icon.
- 
configureComponentOverride to apply subclass attributes.- Overrides:
- configureComponentin class- JComponentShape
 
- 
getIconReturns an icon for given name.
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Declare this for editing.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- JComponentShape
 
- 
fromXMLShapeXML unarchival.- Overrides:
- fromXMLShapein class- JComponentShape
 
 
-