Class SpecularRectangularSurfacePainter
java.lang.Object
org.pushingpixels.radiance.theming.api.painter.surface.SpecularRectangularSurfacePainter
- All Implemented Interfaces:
RadianceSurfacePainter, RadianceTrait
Surface painter that draws visuals with subtle 3D gradient appearance. This class is part of
officially supported API.
- Author:
- Kirill Grouchnikov
-
Constructor Summary
ConstructorsConstructorDescriptionSpecularRectangularSurfacePainter(RadianceSurfacePainter baseSurfacePainter, float alpha) SpecularRectangularSurfacePainter(RadianceSurfacePainter baseSurfacePainter, ContainerColorTokensSingleColorQuery topQuery, ContainerColorTokensSingleColorQuery bottomQuery, float alpha) -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name ofthistrait.voidpaintSurface(Graphics g, Component comp, float width, float height, Shape outline, ContainerColorTokens colorTokens) Fills the surface defined by the specified outline.
-
Constructor Details
-
SpecularRectangularSurfacePainter
-
SpecularRectangularSurfacePainter
public SpecularRectangularSurfacePainter(RadianceSurfacePainter baseSurfacePainter, ContainerColorTokensSingleColorQuery topQuery, ContainerColorTokensSingleColorQuery bottomQuery, float alpha)
-
-
Method Details
-
getDisplayName
Description copied from interface:RadianceTraitReturns the display name ofthistrait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceRadianceTrait- Returns:
- The display name of
thistrait.
-
paintSurface
public void paintSurface(Graphics g, Component comp, float width, float height, Shape outline, ContainerColorTokens colorTokens) Description copied from interface:RadianceSurfacePainterFills the surface defined by the specified outline.- Specified by:
paintSurfacein interfaceRadianceSurfacePainter- Parameters:
g- Graphics context.comp- Component to paint.width- Width of a UI component.height- Height of a UI component.outline- Outline of a UI component.colorTokens- Color tokens.
-