Class JComponentShape

    • Constructor Detail

      • JComponentShape

        public JComponentShape()
    • Method Detail

      • getAutoscrolls

        public java.lang.Boolean getAutoscrolls()
        Returns whether shape autoscrolls.
      • setAutoscrolls

        public void setAutoscrolls​(java.lang.Boolean aValue)
        Sets whether shape autoscrolls.
      • getForeground

        public RMColor getForeground()
        Returns foreground color.
      • setForeground

        public void setForeground​(RMColor aColor)
        Sets the foreground color.
      • getBackground

        public RMColor getBackground()
        Returns background color.
      • setBackground

        public void setBackground​(RMColor aColor)
        Sets the background color.
      • isFontSet

        public boolean isFontSet()
        Returns wether font has been set.
        Overrides:
        isFontSet in class RMShape
      • setFont

        public void setFont​(RMFont aFont)
        Sets the font.
        Overrides:
        setFont in class RMShape
      • getBorder

        public RMBorder getBorder()
        Returns the border.
      • setBorder

        public void setBorder​(RMBorder aBorder)
        Sets the border.
      • isOpaque

        public java.lang.Boolean isOpaque()
        Returns whether shape is opaque.
      • setOpaque

        public void setOpaque​(java.lang.Boolean aValue)
        Sets whether shape is opaque.
      • getToolTipText

        public java.lang.String getToolTipText()
        Returns the tool tip text.
      • setToolTipText

        public void setToolTipText​(java.lang.String aString)
        Sets the tool tip text.
      • isEnabled

        public boolean isEnabled()
        Whether shape is enabled.
      • setEnabled

        public void setEnabled​(boolean aValue)
        Sets whether shape is enabled.
      • getAction

        public java.lang.String getAction()
        Returns the action for this shape.
      • setAction

        public void setAction​(java.lang.String anAction)
        Sets the action for this shape.
      • getSendActionOnFocusLost

        public java.lang.Boolean getSendActionOnFocusLost()
        Returns whether shape SendActionOnFocusLost.
      • setSendActionOnFocusLost

        public void setSendActionOnFocusLost​(java.lang.Boolean aValue)
        Sets whether shape Sends action on FocusLost.
      • getItemDisplayKey

        public java.lang.String getItemDisplayKey()
        Returns the ItemDisplayKey.
      • setItemDisplayKey

        public void setItemDisplayKey​(java.lang.String aKey)
        Sets the ItemDisplayKey.
      • getClientProperty

        public java.lang.Object getClientProperty​(java.lang.String aName)
        Returns a named client property.
      • putClientProperty

        public java.lang.Object putClientProperty​(java.lang.String aName,
                                                  java.lang.Object aValue)
        Puts a named client property.
      • getRealClassName

        public java.lang.String getRealClassName()
        Returns the substitution class name.
      • setRealClassName

        public void setRealClassName​(java.lang.String aString)
        Sets the substitution class string.
      • firePropertyChange

        protected 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:
        firePropertyChange in class RMObject
      • acceptsMouse

        public boolean acceptsMouse()
        Overrides shape method to say we want events (to pass on to component).
        Overrides:
        acceptsMouse in class RMShape
      • dispatchEventToComponent

        protected void dispatchEventToComponent​(RMShapeMouseEvent anEvent,
                                                int anId)
        Sends given event to shape component.
      • getComponent

        public javax.swing.JComponent getComponent()
        Returns the component.
      • createComponent

        protected javax.swing.JComponent createComponent()
        Creates the component.
      • getComponentClass

        public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
        Returns the component class for this component shape.
      • configureComponent

        protected void configureComponent​(JBuilder aBldr,
                                          javax.swing.JComponent aComp)
        Configures the component.
      • createComponentDeep

        public void createComponentDeep​(JBuilder aBldr,
                                        javax.swing.JComponent aComp)
        Returns the component deep.
      • paintShape

        public void paintShape​(RMShapePainter aPntr)
        Overrides paintShape to paint JComponentShapes with image from component.
        Overrides:
        paintShape in class RMShape