Class BasicJideButtonUI


public class BasicJideButtonUI extends JideButtonUI
JideButtonUI implementation
  • Field Details

    • defaultTextIconGap

      protected int defaultTextIconGap
    • defaultTextShiftOffset

      protected int defaultTextShiftOffset
    • _painter

      protected ThemePainter _painter
    • _shadowColor

      protected Color _shadowColor
    • _darkShadowColor

      protected Color _darkShadowColor
    • _highlight

      protected Color _highlight
    • _lightHighlightColor

      protected Color _lightHighlightColor
    • _focusColor

      protected Color _focusColor
    • _isFloatingIcon

      protected boolean _isFloatingIcon
    • viewRect

      protected static Rectangle viewRect
    • textRect

      protected static Rectangle textRect
    • iconRect

      protected static Rectangle iconRect
  • Constructor Details

    • BasicJideButtonUI

      public BasicJideButtonUI()
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
    • getPropertyPrefix

      protected String getPropertyPrefix()
    • installUI

      public void installUI(JComponent c)
      Overrides:
      installUI in class ComponentUI
    • installDefaults

      protected void installDefaults(AbstractButton b)
    • installListeners

      protected void installListeners(AbstractButton b)
    • installKeyboardActions

      protected void installKeyboardActions(AbstractButton b)
    • uninstallUI

      public void uninstallUI(JComponent c)
      Overrides:
      uninstallUI in class ComponentUI
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions(AbstractButton b)
    • uninstallListeners

      protected void uninstallListeners(AbstractButton b)
    • uninstallDefaults

      protected void uninstallDefaults(AbstractButton b)
    • createButtonListener

      protected BasicButtonListener createButtonListener(AbstractButton b)
    • getDefaultTextIconGap

      public int getDefaultTextIconGap(AbstractButton b)
    • getFocusColor

      protected Color getFocusColor()
    • paint

      public void paint(Graphics g, JComponent c)
      Overrides:
      paint in class ComponentUI
    • paintIcon

      protected void paintIcon(AbstractButton b, Graphics g)
    • getIcon

      protected Icon getIcon(AbstractButton b)
    • isFloatingIcon

      protected boolean isFloatingIcon()
    • paintText

      protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
      As of Java 2 platform v 1.4 this method should not be used or overridden. Use the paintText method which takes the AbstractButton argument.
      Parameters:
      g - the Graphics instance
      c - the component
      textRect - the rectangle of the text
      text - the text to paint
    • getForegroundOfState

      protected Color getForegroundOfState(AbstractButton b)
    • paintText

      protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
      Method which renders the text of the current button.

      Parameters:
      g - Graphics context
      b - Current button to render
      textRect - Bounding rectangle to render the text.
      text - String to render
      Since:
      1.4
    • paintBackground

      protected void paintBackground(Graphics g, AbstractButton b)
    • clearTextShiftOffset

      protected void clearTextShiftOffset()
    • setTextShiftOffset

      protected void setTextShiftOffset()
    • getTextShiftOffset

      protected int getTextShiftOffset()
    • getMinimumSize

      public Dimension getMinimumSize(JComponent c)
      Overrides:
      getMinimumSize in class ComponentUI
    • getPreferredSize

      public Dimension getPreferredSize(JComponent c)
      Overrides:
      getPreferredSize in class ComponentUI
    • getMaximumSize

      public Dimension getMaximumSize(JComponent c)
      Overrides:
      getMaximumSize in class ComponentUI
    • getPainter

      public ThemePainter getPainter()
    • updateMargin

      protected void updateMargin(AbstractButton b)
    • shouldWrapText

      public static boolean shouldWrapText(Component c)
      Checks if we should wrap text on a button. If the vertical text position is bottom and horizontal text position is center, we will wrap the text.
      Parameters:
      c - the component
      Returns:
      true or false.