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,- PropertyChangeListener,- Cloneable,- 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
A shape subclass for JComponent.
- 
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 TypeMethodDescriptionbooleanOverrides shape method to say we want events (to pass on to component).clone()Override to clear component.protected voidconfigureComponent(JBuilder aBldr, JComponent aComp) Configures the component.protected JComponentCreates the component.voidcreateComponentDeep(JBuilder aBldr, JComponent aComp) Returns the component deep.protected voiddispatchEventToComponent(RMShapeMouseEvent anEvent, int anId) Sends given event to shape component.protected voidfirePropertyChange(PropertyChangeEvent anEvent, String aName, Object oldVal, Object newVal, int anIndex) Override to clear component.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the action for this shape.Returns whether shape autoscrolls.Returns background color.Returns the border.getClientProperty(String aName) Returns a named client property.Returns the component.Class<? extends JComponent>Returns the component class for this component shape.getFont()Returns the font.Returns foreground color.Returns the ItemDisplayKey.Returns the substitution class name.Returns whether shape SendActionOnFocusLost.Returns the tool tip text.booleanWhether shape is enabled.booleanReturns wether font has been set.isOpaque()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.putClientProperty(String aName, Object aValue) Puts a named client property.voidSets the action for this shape.voidsetAutoscrolls(Boolean aValue) Sets whether shape autoscrolls.voidsetBackground(RMColor aColor) Sets the background color.voidSets the border.voidsetEnabled(boolean aValue) Sets whether shape is enabled.voidSets the font.voidsetForeground(RMColor aColor) Sets the foreground color.voidsetItemDisplayKey(String aKey) Sets the ItemDisplayKey.voidSets whether shape is opaque.voidsetRealClassName(String aString) Sets the substitution class string.voidsetSendActionOnFocusLost(Boolean aValue) Sets whether shape Sends action on FocusLost.voidsetToolTipText(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, toXMLMethods 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, 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- 
JComponentShapepublic JComponentShape()
 
- 
- 
Method Details- 
getAutoscrollsReturns whether shape autoscrolls.
- 
setAutoscrollsSets whether shape autoscrolls.
- 
getForegroundReturns foreground color.
- 
setForegroundSets the foreground color.
- 
getBackgroundReturns background color.
- 
setBackgroundSets the background color.
- 
isFontSetpublic boolean isFontSet()Returns wether font has been set.
- 
getFontReturns the font.
- 
setFontSets the font.
- 
getBorderReturns the border.
- 
setBorderSets the border.
- 
isOpaqueReturns whether shape is opaque.
- 
setOpaqueSets whether shape is opaque.
- 
getToolTipTextReturns the tool tip text.
- 
setToolTipTextSets the tool tip text.
- 
isEnabledpublic boolean isEnabled()Whether shape is enabled.
- 
setEnabledpublic void setEnabled(boolean aValue) Sets whether shape is enabled.
- 
getActionReturns the action for this shape.
- 
setActionSets the action for this shape.
- 
getSendActionOnFocusLostReturns whether shape SendActionOnFocusLost.
- 
setSendActionOnFocusLostSets whether shape Sends action on FocusLost.
- 
getItemDisplayKeyReturns the ItemDisplayKey.
- 
setItemDisplayKeySets the ItemDisplayKey.
- 
getClientPropertyReturns a named client property.
- 
putClientPropertyPuts a named client property.
- 
getRealClassNameReturns the substitution class name.
- 
setRealClassNameSets the substitution class string.
- 
firePropertyChangeprotected void firePropertyChange(PropertyChangeEvent anEvent, String aName, Object oldVal, 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
 
- 
mousePressedOverrides shape method to pass events on to component.- Overrides:
- mousePressedin class- RMShape
 
- 
mouseDraggedOverrides shape method to pass events on to component.- Overrides:
- mouseDraggedin class- RMShape
 
- 
mouseReleasedOverrides shape method to pass events on to component.- Overrides:
- mouseReleasedin class- RMShape
 
- 
mouseClickedHandles mouse clicked events.- Overrides:
- mouseClickedin class- RMShape
 
- 
mouseEnteredOverrides shape method to pass events on to component.- Overrides:
- mouseEnteredin class- RMShape
 
- 
mouseMovedOverrides shape method to pass events on to component.- Overrides:
- mouseMovedin class- RMShape
 
- 
mouseExitedOverrides shape method to pass events on to component.- Overrides:
- mouseExitedin class- RMShape
 
- 
dispatchEventToComponentSends given event to shape component.
- 
getComponentReturns the component.
- 
createComponentCreates the component.
- 
getComponentClassReturns the component class for this component shape.
- 
configureComponentConfigures the component.
- 
createComponentDeepReturns the component deep.
- 
paintShapeOverrides paintShape to paint JComponentShapes with image from component.- Overrides:
- paintShapein class- RMShape
 
- 
cloneOverride to clear component.- Overrides:
- clonein class- RMParentShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
- 
toXMLChildrenOverride to archive RealClassName last.- Overrides:
- toXMLChildrenin class- RMParentShape
 
- 
fromXMLShapeXML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
 
-