Class ButtonBackgroundDelegate
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.ButtonBackgroundDelegate
Delegate class for painting backgrounds of buttons in Radiance look and feel. This class
is for internal use only.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontains(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(Graphics2D graphics, AbstractButton button, RadianceButtonShaper shaper, RadianceSurfacePainter surfacePainter, RadianceOutlinePainter outlinePainter, int width, int height) private voiddrawBackground(Graphics2D g, AbstractButton button, RadianceButtonShaper shaper, RadianceSurfacePainter surfacePainter, RadianceOutlinePainter outlinePainter, int width, int height, ContainerColorTokens colorTokens, Set<RadianceThemingSlices.Side> openSides, boolean isContentAreaFilled, boolean isBorderPainted, ComponentState currState, float overallAlpha) voidupdateBackground(Graphics g, AbstractButton button) Updates background of the specified button.
-
Field Details
-
mutableContainerTokens
-
-
Constructor Details
-
ButtonBackgroundDelegate
public ButtonBackgroundDelegate()
-
-
Method Details
-
drawBackground
private void drawBackground(Graphics2D graphics, AbstractButton button, RadianceButtonShaper shaper, RadianceSurfacePainter surfacePainter, RadianceOutlinePainter outlinePainter, int width, int height) -
drawBackground
private void drawBackground(Graphics2D g, AbstractButton button, RadianceButtonShaper shaper, RadianceSurfacePainter surfacePainter, RadianceOutlinePainter outlinePainter, int width, int height, ContainerColorTokens colorTokens, Set<RadianceThemingSlices.Side> openSides, boolean isContentAreaFilled, boolean isBorderPainted, ComponentState currState, float overallAlpha) -
updateBackground
Updates background of the specified button.- Parameters:
g- Graphic context.button- Button to update.
-
contains
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.
-