Class AbstractButtonShape
- 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.swing.shape.JComponentShape
-
- com.inductiveautomation.rm.swing.shape.LabeledShape
-
- com.inductiveautomation.rm.swing.shape.AbstractButtonShape
-
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
- Direct Known Subclasses:
JButtonShape,JMenuItemShape,JToggleButtonShape
public class AbstractButtonShape extends LabeledShape
A JComponentShape for AbstractButton.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
-
Constructor Summary
Constructors Constructor Description AbstractButtonShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureComponent(JBuilder aBldr, javax.swing.JComponent aComp)Override to apply subclass attributes.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.lang.BooleangetBorderPainted()Returns whether button border is painted.java.lang.StringgetButtonGroupName()Returns the button group name.java.lang.BooleangetContentAreaFilled()Returns whether button content area filled.java.lang.BooleangetFocusPainted()Returns whether focus is painted.java.awt.InsetsgetMargin()Returns the button margins.java.lang.StringgetMarginString()Returns the margin string.java.lang.StringgetPressedImageName()Returns the pressed image name.java.lang.StringgetPropertyNameMapped(java.lang.String aPropertyName)Returns a mapped property name.java.lang.StringgetSelectedImageName()Returns the selected image name.booleanisBorderPainted()Returns whether button border is painted.booleanisContentAreaFilled()Returns whether button content area filled.booleanisFocusPainted()Returns whether focus is painted.booleanisSelected()Returns whether button is selected.voidsetBorderPainted(java.lang.Boolean aValue)Sets whether button border is painted.voidsetButtonGroupName(java.lang.String aName)Sets the button group name.voidsetContentAreaFilled(java.lang.Boolean aValue)Sets whether button content area filled.voidsetFocusPainted(java.lang.Boolean aValue)Sets whether focus is painted.voidsetMargin(java.awt.Insets theInsets)Sets the button margins.voidsetMarginString(java.lang.String aString)Sets the button margin string.voidsetPressedImageName(java.lang.String aName)Sets the pressed image name.voidsetSelected(boolean aValue)Sets whether button is selected.voidsetSelectedImageName(java.lang.String aName)Sets the selected image name.protected RXElementtoXMLShape(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.swing.shape.LabeledShape
childrenSuperSelectImmediately, getAlignmentX, getAlignmentY, getHorizontalAlignment, getHorizontalAlignmentDefault, getHorizontalAlignmentInt, getHorizontalAlignmentString, getHorizontalTextPosition, getHorizontalTextPositionInt, getHorizontalTextPositionString, getIcon, getIcon, getIconTextGap, getImageFile, getImageFile, getImageName, getText, getVerticalAlignment, getVerticalAlignmentDefault, getVerticalAlignmentInt, getVerticalAlignmentString, getVerticalTextPosition, getVerticalTextPositionInt, getVerticalTextPositionString, setAlignmentX, setAlignmentY, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setImageName, setText, setVerticalAlignment, setVerticalTextPosition
-
Methods inherited from class com.inductiveautomation.rm.swing.shape.JComponentShape
acceptsMouse, 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.RMParentShape
addChild, 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.RMShape
acceptsChildren, 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, 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.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
isSelected
public boolean isSelected()
Returns whether button is selected.
-
setSelected
public void setSelected(boolean aValue)
Sets whether button is selected.
-
getSelectedImageName
public java.lang.String getSelectedImageName()
Returns the selected image name.
-
setSelectedImageName
public void setSelectedImageName(java.lang.String aName)
Sets the selected image name.
-
getPressedImageName
public java.lang.String getPressedImageName()
Returns the pressed image name.
-
setPressedImageName
public void setPressedImageName(java.lang.String aName)
Sets the pressed image name.
-
isBorderPainted
public boolean isBorderPainted()
Returns whether button border is painted.
-
getBorderPainted
public java.lang.Boolean getBorderPainted()
Returns whether button border is painted.
-
setBorderPainted
public void setBorderPainted(java.lang.Boolean aValue)
Sets whether button border is painted.
-
isContentAreaFilled
public boolean isContentAreaFilled()
Returns whether button content area filled.
-
getContentAreaFilled
public java.lang.Boolean getContentAreaFilled()
Returns whether button content area filled.
-
setContentAreaFilled
public void setContentAreaFilled(java.lang.Boolean aValue)
Sets whether button content area filled.
-
isFocusPainted
public boolean isFocusPainted()
Returns whether focus is painted.
-
getFocusPainted
public java.lang.Boolean getFocusPainted()
Returns whether focus is painted.
-
setFocusPainted
public void setFocusPainted(java.lang.Boolean aValue)
Sets whether focus is painted.
-
getMargin
public java.awt.Insets getMargin()
Returns the button margins.
-
setMargin
public void setMargin(java.awt.Insets theInsets)
Sets the button margins.
-
getMarginString
public java.lang.String getMarginString()
Returns the margin string.
-
setMarginString
public void setMarginString(java.lang.String aString)
Sets the button margin string.
-
getButtonGroupName
public java.lang.String getButtonGroupName()
Returns the button group name.
-
setButtonGroupName
public void setButtonGroupName(java.lang.String aName)
Sets the button group name.
-
getPropertyNameMapped
public java.lang.String getPropertyNameMapped(java.lang.String aPropertyName)
Returns a mapped property name.- Overrides:
getPropertyNameMappedin classRMShape
-
configureComponent
protected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
Override to apply subclass attributes.- Overrides:
configureComponentin classLabeledShape
-
toXMLShape
protected RXElement toXMLShape(RXArchiver anArchiver)
XML archival.- Overrides:
toXMLShapein classLabeledShape
-
fromXMLShape
protected void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Overrides:
fromXMLShapein classLabeledShape
-
-