org.pushingpixels.substance.flamingo.utils
Class CommandButtonBackgroundDelegate

java.lang.Object
  extended by org.pushingpixels.substance.flamingo.utils.CommandButtonBackgroundDelegate

public class CommandButtonBackgroundDelegate
extends java.lang.Object

Delegate class for painting backgrounds of buttons in Substance look and feel. This class is for internal use only.


Constructor Summary
CommandButtonBackgroundDelegate()
           
 
Method Summary
static java.awt.image.BufferedImage getCombinedCommandButtonBackground(org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton, javax.swing.ButtonModel actionModel, java.awt.Rectangle actionArea, org.pushingpixels.flamingo.api.common.model.PopupButtonModel popupModel, java.awt.Rectangle popupArea)
           
static java.awt.image.BufferedImage getFullAlphaBackground(org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton, javax.swing.ButtonModel buttonModel, org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter fillPainter, org.pushingpixels.substance.api.painter.border.SubstanceBorderPainter borderPainter, int width, int height, org.pushingpixels.substance.internal.animation.StateTransitionTracker stateTransitionTracker, boolean ignoreSelections)
          Retrieves the background for the specified button.
static void paintThemedCommandButtonIcon(java.awt.Graphics2D g, java.awt.Rectangle iconRect, org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton, javax.swing.Icon regular, javax.swing.ButtonModel model, org.pushingpixels.substance.internal.animation.StateTransitionTracker stateTransitionTracker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandButtonBackgroundDelegate

public CommandButtonBackgroundDelegate()
Method Detail

getFullAlphaBackground

public static java.awt.image.BufferedImage getFullAlphaBackground(org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton,
                                                                  javax.swing.ButtonModel buttonModel,
                                                                  org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter fillPainter,
                                                                  org.pushingpixels.substance.api.painter.border.SubstanceBorderPainter borderPainter,
                                                                  int width,
                                                                  int height,
                                                                  org.pushingpixels.substance.internal.animation.StateTransitionTracker stateTransitionTracker,
                                                                  boolean ignoreSelections)
Retrieves the background for the specified button.

Parameters:
commandButton - Button.
fillPainter - Button fill painter.
borderPainter - Button border painter.
width - Button width.
height - Button height.
Returns:
Button background.

getCombinedCommandButtonBackground

public static java.awt.image.BufferedImage getCombinedCommandButtonBackground(org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton,
                                                                              javax.swing.ButtonModel actionModel,
                                                                              java.awt.Rectangle actionArea,
                                                                              org.pushingpixels.flamingo.api.common.model.PopupButtonModel popupModel,
                                                                              java.awt.Rectangle popupArea)

paintThemedCommandButtonIcon

public static void paintThemedCommandButtonIcon(java.awt.Graphics2D g,
                                                java.awt.Rectangle iconRect,
                                                org.pushingpixels.flamingo.api.common.AbstractCommandButton commandButton,
                                                javax.swing.Icon regular,
                                                javax.swing.ButtonModel model,
                                                org.pushingpixels.substance.internal.animation.StateTransitionTracker stateTransitionTracker)