Interface SubstanceDecorationPainter
-
- All Superinterfaces:
SubstanceTrait
- All Known Implementing Classes:
ArcDecorationPainter,BrushedMetalDecorationPainter,ClassicDecorationPainter,FlatDecorationPainter,FractionBasedDecorationPainter,ImageWrapperDecorationPainter,MarbleNoiseDecorationPainter,MatteDecorationPainter
public interface SubstanceDecorationPainter extends SubstanceTrait
Decoration painter interface for Substance look and feel. This class is part of officially supported API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpaintDecorationArea(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)Paints the decoration area as a fully filled rectangle.voidpaintDecorationArea(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, java.awt.Shape contour, SubstanceColorScheme colorScheme)Paints the decoration area as a specified shape.-
Methods inherited from interface org.pushingpixels.substance.api.trait.SubstanceTrait
getDisplayName
-
-
-
-
Method Detail
-
paintDecorationArea
void paintDecorationArea(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin 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(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, java.awt.Shape contour, SubstanceColorScheme 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.
-
-