Class ButtonBackgroundDelegate
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.utils.ButtonBackgroundDelegate
-
public class ButtonBackgroundDelegate extends java.lang.ObjectDelegate class for painting backgrounds of buttons in Radiance look and feel. This class is for internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description private BladeColorSchememutableBorderColorSchemeprivate BladeColorSchememutableFillColorScheme
-
Constructor Summary
Constructors Constructor Description ButtonBackgroundDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancontains(javax.swing.AbstractButton button, int x, int y)Returnstrueif the specified x,y location is contained within the look and feel's defined shape of the specified component.private voiddrawBackground(java.awt.Graphics2D graphics, javax.swing.AbstractButton button, RadianceButtonShaper shaper, RadianceFillPainter fillPainter, RadianceBorderPainter borderPainter, int width, int height)private voiddrawBackground(java.awt.Graphics2D g, javax.swing.AbstractButton button, RadianceButtonShaper shaper, RadianceFillPainter fillPainter, RadianceBorderPainter borderPainter, int width, int height, RadianceColorScheme colorScheme, RadianceColorScheme borderScheme, java.util.Set<RadianceThemingSlices.Side> openSides, boolean isContentAreaFilled, boolean isBorderPainted)voidupdateBackground(java.awt.Graphics g, javax.swing.AbstractButton button)Updates background of the specified button.
-
-
-
Field Detail
-
mutableFillColorScheme
private BladeColorScheme mutableFillColorScheme
-
mutableBorderColorScheme
private BladeColorScheme mutableBorderColorScheme
-
-
Method Detail
-
drawBackground
private void drawBackground(java.awt.Graphics2D graphics, javax.swing.AbstractButton button, RadianceButtonShaper shaper, RadianceFillPainter fillPainter, RadianceBorderPainter borderPainter, int width, int height)
-
drawBackground
private void drawBackground(java.awt.Graphics2D g, javax.swing.AbstractButton button, RadianceButtonShaper shaper, RadianceFillPainter fillPainter, RadianceBorderPainter borderPainter, int width, int height, RadianceColorScheme colorScheme, RadianceColorScheme borderScheme, java.util.Set<RadianceThemingSlices.Side> openSides, boolean isContentAreaFilled, boolean isBorderPainted)
-
updateBackground
public void updateBackground(java.awt.Graphics g, javax.swing.AbstractButton button)Updates background of the specified button.- Parameters:
g- Graphic context.button- Button to update.
-
contains
public static boolean contains(javax.swing.AbstractButton button, int x, int y)Returnstrueif the specified x,y location is contained within the look and feel's defined shape of the specified component.xandyare 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 pointy- the y coordinate of the point- Returns:
trueif the specified x,y location is contained within the look and feel's defined shape of the specified component,falseotherwise.
-
-