Class SpecularRectangularFillPainter
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.painter.fill.SpecularRectangularFillPainter
-
- All Implemented Interfaces:
RadianceFillPainter,RadianceTrait
public class SpecularRectangularFillPainter extends java.lang.Object implements RadianceFillPainter
Fill painter that draws visuals with subtle 3D gradient appearance. This class is part of officially supported API.
-
-
Constructor Summary
Constructors Constructor Description SpecularRectangularFillPainter(RadianceFillPainter baseFillPainter, float alpha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns the display name ofthistrait.java.awt.ColorgetRepresentativeColor(RadianceColorScheme fillScheme)voidpaintContourBackground(java.awt.Graphics g, java.awt.Component comp, float width, float height, java.awt.Shape contour, RadianceColorScheme fillScheme)Fills the contour that matches the specified parameters.
-
-
-
Constructor Detail
-
SpecularRectangularFillPainter
public SpecularRectangularFillPainter(RadianceFillPainter baseFillPainter, float alpha)
-
-
Method Detail
-
getDisplayName
public java.lang.String 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.
-
getRepresentativeColor
public java.awt.Color getRepresentativeColor(RadianceColorScheme fillScheme)
- Specified by:
getRepresentativeColorin interfaceRadianceFillPainter
-
paintContourBackground
public void paintContourBackground(java.awt.Graphics g, java.awt.Component comp, float width, float height, java.awt.Shape contour, RadianceColorScheme fillScheme)Description copied from interface:RadianceFillPainterFills the contour that matches the specified parameters.- Specified by:
paintContourBackgroundin interfaceRadianceFillPainter- Parameters:
g- Graphics context.comp- Component to paint.width- Width of a UI component.height- Height of a UI component.contour- Contour of a UI component.fillScheme- The fill color scheme.
-
-