Class JComponentShape
- 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
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- JComboBoxShape,- JListShape,- JMenuBarShape,- JPopupMenuShape,- JProgressBarShape,- JScrollPaneShape,- JSeparatorShape,- JSliderShape,- JSpinnerShape,- JSplitPaneShape,- JTabbedPaneShape,- JTableColumnShape,- JTableShape,- JTextComponentShape,- JTreeShape,- LabeledShape,- RJColorWellShape,- RJCustomViewShape,- RJThumbWheelShape,- SpringsPaneShape,- SwitchPaneShape
 
 public class JComponentShape extends RMParentShape A shape subclass for JComponent.
- 
- 
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 JComponentShape()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsMouse()Overrides shape method to say we want events (to pass on to component).RMParentShapeclone()Override to clear component.protected voidconfigureComponent(JBuilder aBldr, javax.swing.JComponent aComp)Configures the component.protected javax.swing.JComponentcreateComponent()Creates the component.voidcreateComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp)Returns the component deep.protected voiddispatchEventToComponent(RMShapeMouseEvent anEvent, int anId)Sends given event to shape component.protected voidfirePropertyChange(java.beans.PropertyChangeEvent anEvent, java.lang.String aName, java.lang.Object oldVal, java.lang.Object newVal, int anIndex)Override to clear component.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.lang.StringgetAction()Returns the action for this shape.java.lang.BooleangetAutoscrolls()Returns whether shape autoscrolls.RMColorgetBackground()Returns background color.RMBordergetBorder()Returns the border.java.lang.ObjectgetClientProperty(java.lang.String aName)Returns a named client property.javax.swing.JComponentgetComponent()Returns the component.java.lang.Class<? extends javax.swing.JComponent>getComponentClass()Returns the component class for this component shape.RMFontgetFont()Returns the font.RMColorgetForeground()Returns foreground color.java.lang.StringgetItemDisplayKey()Returns the ItemDisplayKey.java.lang.StringgetRealClassName()Returns the substitution class name.java.lang.BooleangetSendActionOnFocusLost()Returns whether shape SendActionOnFocusLost.java.lang.StringgetToolTipText()Returns the tool tip text.booleanisEnabled()Whether shape is enabled.booleanisFontSet()Returns wether font has been set.java.lang.BooleanisOpaque()Returns whether shape is opaque.voidmouseClicked(RMShapeMouseEvent anEvent)Handles mouse clicked events.voidmouseDragged(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidmouseEntered(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidmouseExited(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidmouseMoved(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidmousePressed(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidmouseReleased(RMShapeMouseEvent anEvent)Overrides shape method to pass events on to component.voidpaintShape(RMShapePainter aPntr)Overrides paintShape to paint JComponentShapes with image from component.java.lang.ObjectputClientProperty(java.lang.String aName, java.lang.Object aValue)Puts a named client property.voidsetAction(java.lang.String anAction)Sets the action for this shape.voidsetAutoscrolls(java.lang.Boolean aValue)Sets whether shape autoscrolls.voidsetBackground(RMColor aColor)Sets the background color.voidsetBorder(RMBorder aBorder)Sets the border.voidsetEnabled(boolean aValue)Sets whether shape is enabled.voidsetFont(RMFont aFont)Sets the font.voidsetForeground(RMColor aColor)Sets the foreground color.voidsetItemDisplayKey(java.lang.String aKey)Sets the ItemDisplayKey.voidsetOpaque(java.lang.Boolean aValue)Sets whether shape is opaque.voidsetRealClassName(java.lang.String aString)Sets the substitution class string.voidsetSendActionOnFocusLost(java.lang.Boolean aValue)Sets whether shape Sends action on FocusLost.voidsetToolTipText(java.lang.String aString)Sets the tool tip text.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement)Override to archive RealClassName last.protected RXElementtoXMLShape(RXArchiver anArchiver)XML archival.- 
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, childrenSuperSelectImmediately, 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, 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, setAlignmentX, setAlignmentY, 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- 
getAutoscrollspublic java.lang.Boolean getAutoscrolls() Returns whether shape autoscrolls.
 - 
setAutoscrollspublic void setAutoscrolls(java.lang.Boolean aValue) Sets whether shape autoscrolls.
 - 
getForegroundpublic RMColor getForeground() Returns foreground color.
 - 
setForegroundpublic void setForeground(RMColor aColor) Sets the foreground color.
 - 
getBackgroundpublic RMColor getBackground() Returns background color.
 - 
setBackgroundpublic void setBackground(RMColor aColor) Sets the background color.
 - 
isFontSetpublic boolean isFontSet() Returns wether font has been set.
 - 
getBorderpublic RMBorder getBorder() Returns the border.
 - 
setBorderpublic void setBorder(RMBorder aBorder) Sets the border.
 - 
isOpaquepublic java.lang.Boolean isOpaque() Returns whether shape is opaque.
 - 
setOpaquepublic void setOpaque(java.lang.Boolean aValue) Sets whether shape is opaque.
 - 
getToolTipTextpublic java.lang.String getToolTipText() Returns the tool tip text.
 - 
setToolTipTextpublic void setToolTipText(java.lang.String aString) Sets the tool tip text.
 - 
isEnabledpublic boolean isEnabled() Whether shape is enabled.
 - 
setEnabledpublic void setEnabled(boolean aValue) Sets whether shape is enabled.
 - 
getActionpublic java.lang.String getAction() Returns the action for this shape.
 - 
setActionpublic void setAction(java.lang.String anAction) Sets the action for this shape.
 - 
getSendActionOnFocusLostpublic java.lang.Boolean getSendActionOnFocusLost() Returns whether shape SendActionOnFocusLost.
 - 
setSendActionOnFocusLostpublic void setSendActionOnFocusLost(java.lang.Boolean aValue) Sets whether shape Sends action on FocusLost.
 - 
getItemDisplayKeypublic java.lang.String getItemDisplayKey() Returns the ItemDisplayKey.
 - 
setItemDisplayKeypublic void setItemDisplayKey(java.lang.String aKey) Sets the ItemDisplayKey.
 - 
getClientPropertypublic java.lang.Object getClientProperty(java.lang.String aName) Returns a named client property.
 - 
putClientPropertypublic java.lang.Object putClientProperty(java.lang.String aName, java.lang.Object aValue)Puts a named client property.
 - 
getRealClassNamepublic java.lang.String getRealClassName() Returns the substitution class name.
 - 
setRealClassNamepublic void setRealClassName(java.lang.String aString) Sets the substitution class string.
 - 
firePropertyChangeprotected void firePropertyChange(java.beans.PropertyChangeEvent anEvent, java.lang.String aName, java.lang.Object oldVal, java.lang.Object newVal, int anIndex)Override to clear component.- Overrides:
- firePropertyChangein class- RMObject
 
 - 
acceptsMousepublic boolean acceptsMouse() Overrides shape method to say we want events (to pass on to component).- Overrides:
- acceptsMousein class- RMShape
 
 - 
mousePressedpublic void mousePressed(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mousePressedin class- RMShape
 
 - 
mouseDraggedpublic void mouseDragged(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mouseDraggedin class- RMShape
 
 - 
mouseReleasedpublic void mouseReleased(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mouseReleasedin class- RMShape
 
 - 
mouseClickedpublic void mouseClicked(RMShapeMouseEvent anEvent) Handles mouse clicked events.- Overrides:
- mouseClickedin class- RMShape
 
 - 
mouseEnteredpublic void mouseEntered(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mouseEnteredin class- RMShape
 
 - 
mouseMovedpublic void mouseMoved(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mouseMovedin class- RMShape
 
 - 
mouseExitedpublic void mouseExited(RMShapeMouseEvent anEvent) Overrides shape method to pass events on to component.- Overrides:
- mouseExitedin class- RMShape
 
 - 
dispatchEventToComponentprotected void dispatchEventToComponent(RMShapeMouseEvent anEvent, int anId) Sends given event to shape component.
 - 
getComponentpublic javax.swing.JComponent getComponent() Returns the component.
 - 
createComponentprotected javax.swing.JComponent createComponent() Creates the component.
 - 
getComponentClasspublic java.lang.Class<? extends javax.swing.JComponent> getComponentClass() Returns the component class for this component shape.
 - 
configureComponentprotected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp) Configures the component.
 - 
createComponentDeeppublic void createComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp) Returns the component deep.
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Overrides paintShape to paint JComponentShapes with image from component.- Overrides:
- paintShapein class- RMShape
 
 - 
clonepublic RMParentShape clone() Override to clear component.- Overrides:
- clonein class- RMParentShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
 - 
toXMLChildrenprotected void toXMLChildren(RXArchiver anArchiver, RXElement anElement) Override to archive RealClassName last.- Overrides:
- toXMLChildrenin class- RMParentShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
 
- 
 
-