|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.utils.PairwiseButtonBackgroundDelegate
public class PairwiseButtonBackgroundDelegate
Delegate class for painting backgrounds of buttons in Substance look and feel. This class is for internal use only.
| Nested Class Summary | |
|---|---|
static class |
PairwiseButtonBackgroundDelegate.ButtonBackground
Contains information on a button background. |
| Constructor Summary | |
|---|---|
PairwiseButtonBackgroundDelegate()
Simple constructor. |
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
getPairwiseBackground(javax.swing.AbstractButton button,
SubstanceGradientPainter painter,
int width,
int height,
SubstanceConstants.Side side,
boolean toIgnoreOpenSides)
Retrieves background image for the specified button in button pair (such as scrollbar arrows, for example). |
static void |
reset()
Resets image maps (used when setting new theme). |
static void |
updateBackground(java.awt.Graphics g,
javax.swing.AbstractButton button,
SubstanceConstants.Side side)
Updates background of the specified button. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PairwiseButtonBackgroundDelegate()
| Method Detail |
|---|
public static void reset()
SubstanceLookAndFeel.setCurrentTheme(String),
SubstanceLookAndFeel.setCurrentTheme(SubstanceTheme)
public static java.awt.image.BufferedImage getPairwiseBackground(javax.swing.AbstractButton button,
SubstanceGradientPainter painter,
int width,
int height,
SubstanceConstants.Side side,
boolean toIgnoreOpenSides)
button - Button.painter - Gradient painter.width - Button width.height - Button height.side - Button orientation.toIgnoreOpenSides - If true, the open side setting (controlled by
the SubstanceLookAndFeel.BUTTON_OPEN_SIDE_PROPERTY is
ignored.
public static void updateBackground(java.awt.Graphics g,
javax.swing.AbstractButton button,
SubstanceConstants.Side side)
g - Graphic context.button - Button to update.side - Button side.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||