Package UI

Class BLeveledButtonUIX


  • public class BLeveledButtonUIX
    extends BlueishButtonUI
    BLeveledButtonUIX is a custom button UI that extends BlueishButtonUI. It provides a leveled button appearance with different borders for different states.
    • Field Summary

      • Fields inherited from class javax.swing.plaf.basic.BasicButtonUI

        defaultTextIconGap, defaultTextShiftOffset
    • Constructor Summary

      Constructors 
      Constructor Description
      BLeveledButtonUIX()
      Constructs a BLeveledButtonUIX.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void installUI​(javax.swing.JComponent c)
      Installs the UI for a specified component.
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)
      Paints the specified component.
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, createButtonListener, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

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

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

      • BLeveledButtonUIX

        public BLeveledButtonUIX()
        Constructs a BLeveledButtonUIX. Calls the superclass constructor.
    • Method Detail

      • installUI

        public void installUI​(javax.swing.JComponent c)
        Installs the UI for a specified component. Sets the rollover enabled and applies the default border.
        Overrides:
        installUI in class BlueishButtonUI
        Parameters:
        c - the component where this UI will be installed
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Paints the specified component. Changes the border based on the rollover, armed, and selected states of the button.
        Overrides:
        paint in class BlueishButtonUI
        Parameters:
        g - the Graphics context in which to paint
        c - the component being painted