Java JButton Settings getHudControlShadowSize(AbstractButton button)

Here you can find the source of getHudControlShadowSize(AbstractButton button)

Description

Gets the number of pixels that a HUD style widget's shadow takes up.

License

LGPL

Parameter

Parameter Description
button the button that the shadow is drawn on.

Return

the number of pixels that a HUD style widget's shadow takes up.

Declaration

public static int getHudControlShadowSize(AbstractButton button) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.AbstractButton;

public class Main {
    /**/*from w ww .  j av a 2s . c  o m*/
     * Gets the number of pixels that a HUD style widget's shadow takes up. HUD button's have a
     * shadow directly below them, that is, there is no top, left or right component to the shadow.
     *
     * @param button the button that the shadow is drawn on.
     * @return the number of pixels that a HUD style widget's shadow takes up.
     */
    public static int getHudControlShadowSize(AbstractButton button) {
        // TODO use the button's font size to figure this out.
        return 2;
    }
}

Related

  1. getButtonPane()
  2. getButtonSelectColor()
  3. getButtonSelectedInt(ButtonGroup buttonGroup)
  4. getButtonSelectedString(ButtonGroup buttonGroup)
  5. getDefaultFatButtonMargin()
  6. getIcon(AbstractButton b)
  7. getListenedButtonsFor(Container c)
  8. getMonospaceButton(final String text, final int size)
  9. getPreferredButtonSize(AbstractButton b, int textIconGap)