Class ButtonBackgroundDelegate

java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.ButtonBackgroundDelegate

public class ButtonBackgroundDelegate extends Object
Delegate class for painting backgrounds of buttons in Radiance look and feel. This class is for internal use only.
Author:
Kirill Grouchnikov
  • Constructor Details

    • ButtonBackgroundDelegate

      public ButtonBackgroundDelegate()
  • Method Details

    • updateBackground

      public void updateBackground(Graphics g, AbstractButton button)
      Updates background of the specified button.
      Parameters:
      g - Graphic context.
      button - Button to update.
    • contains

      public static boolean contains(AbstractButton button, int x, int y)
      Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component. x and y are defined to be relative to the coordinate system of the specified component.
      Parameters:
      button - the component where the x,y location is being queried;
      x - the x coordinate of the point
      y - the y coordinate of the point
      Returns:
      true if the specified x,y location is contained within the look and feel's defined shape of the specified component, false otherwise.