Interface RadianceDecorationPainter
- All Superinterfaces:
RadianceTrait
- All Known Implementing Classes:
ArcDecorationPainter
,BrushedMetalDecorationPainter
,ClassicDecorationPainter
,FlatDecorationPainter
,FractionBasedDecorationPainter
,Glass3DDecorationPainter
,ImageWrapperDecorationPainter
,MarbleNoiseDecorationPainter
,MatteDecorationPainter
Decoration painter interface for Radiance look and feel. This class
is part of officially supported API.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
paintDecorationArea
(Graphics2D graphics, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin) Paints the decoration area as a fully filled rectangle.void
paintDecorationArea
(Graphics2D graphics, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, Shape contour, RadianceColorScheme colorScheme) Paints the decoration area as a specified shape.Methods inherited from interface org.pushingpixels.radiance.theming.api.trait.RadianceTrait
getDisplayName
-
Method Details
-
paintDecorationArea
void paintDecorationArea(Graphics2D graphics, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin) Paints the decoration area as a fully filled rectangle.- Parameters:
graphics
- Graphics context.comp
- Component.decorationAreaType
- Decoration area type. Must not benull
.width
- Width.height
- Height.skin
- Skin for painting the decoration area.
-
paintDecorationArea
void paintDecorationArea(Graphics2D graphics, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, Shape contour, RadianceColorScheme colorScheme) Paints the decoration area as a specified shape.- Parameters:
graphics
- Graphics context.comp
- Component.decorationAreaType
- Decoration area type. Must not benull
.contour
- Contour to fill.colorScheme
- Color scheme for painting the decoration area.
-