Class RadianceRadioButtonUI

    • Constructor Summary

      Constructors 
      Constructor Description
      RadianceRadioButtonUI​(javax.swing.JToggleButton button)
      Simple constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.plaf.basic.BasicButtonListener createButtonListener​(javax.swing.AbstractButton b)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)  
      javax.swing.Icon getDefaultIcon()  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      StateTransitionTracker getTransitionTracker()
      Returns the model for tracking the transitions.
      protected void installDefaults​(javax.swing.AbstractButton b)  
      protected void installListeners​(javax.swing.AbstractButton b)  
      boolean isInside​(java.awt.event.MouseEvent me)
      Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      private void paintButtonText​(java.awt.Graphics g, javax.swing.AbstractButton button, java.awt.Rectangle textRect, java.lang.String text)
      Paints the text.
      protected void uninstallListeners​(javax.swing.AbstractButton b)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void updateIcon()  
      • Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI

        getPropertyPrefix, paintFocus, uninstallDefaults
      • Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI

        getTextShiftOffset, paintIcon
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • radiancePropertyListener

        private java.beans.PropertyChangeListener radiancePropertyListener
        Property change listener. Listens on changes to AbstractButton.MODEL_CHANGED_PROPERTY property.
      • button

        javax.swing.JToggleButton button
        Associated toggle button.
      • viewRect

        private java.awt.Rectangle viewRect
      • iconRect

        private java.awt.Rectangle iconRect
      • textRect

        private java.awt.Rectangle textRect
      • radianceIcon

        protected javax.swing.Icon radianceIcon
    • Constructor Detail

      • RadianceRadioButtonUI

        RadianceRadioButtonUI​(javax.swing.JToggleButton button)
        Simple constructor.
        Parameters:
        button - Associated radio button.
    • Method Detail

      • installListeners

        protected void installListeners​(javax.swing.AbstractButton b)
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicRadioButtonUI
      • installDefaults

        protected void installDefaults​(javax.swing.AbstractButton b)
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicRadioButtonUI
      • updateIcon

        protected void updateIcon()
      • uninstallListeners

        protected void uninstallListeners​(javax.swing.AbstractButton b)
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicRadioButtonUI
      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)
      • createButtonListener

        protected javax.swing.plaf.basic.BasicButtonListener createButtonListener​(javax.swing.AbstractButton b)
        Overrides:
        createButtonListener in class javax.swing.plaf.basic.BasicButtonUI
      • getDefaultIcon

        public javax.swing.Icon getDefaultIcon()
        Overrides:
        getDefaultIcon in class javax.swing.plaf.basic.BasicRadioButtonUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicRadioButtonUI
      • paintButtonText

        private void paintButtonText​(java.awt.Graphics g,
                                     javax.swing.AbstractButton button,
                                     java.awt.Rectangle textRect,
                                     java.lang.String text)
        Paints the text.
        Parameters:
        g - Graphic context
        button - Button
        textRect - Text rectangle
        text - Text to paint
      • isInside

        public boolean isInside​(java.awt.event.MouseEvent me)
        Description copied from interface: TransitionAwareUI
        Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
        Specified by:
        isInside in interface TransitionAwareUI
        Parameters:
        me - Mouse event.
        Returns:
        true if the mouse position of the specified event lies inside the area of the component designated for transition effects, false otherwise.
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicRadioButtonUI
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI