org.pushingpixels.substance.api.painter.decoration
Interface SubstanceDecorationPainter

All Superinterfaces:
SubstanceTrait
All Known Implementing Classes:
ArcDecorationPainter, BrushedMetalDecorationPainter, ClassicDecorationPainter, FlatDecorationPainter, FractionBasedDecorationPainter, Glass3DDecorationPainter, ImageWrapperDecorationPainter, MarbleNoiseDecorationPainter, MatteDecorationPainter

public interface SubstanceDecorationPainter
extends SubstanceTrait

Decoration painter interface for Substance look and feel. This class is part of officially supported API.

Since:
version 4.3

Method Summary
 void paintDecorationArea(java.awt.Graphics2D graphics, java.awt.Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)
          Paints the decoration area.
 
Methods inherited from interface org.pushingpixels.substance.api.trait.SubstanceTrait
getDisplayName
 

Method Detail

paintDecorationArea

void paintDecorationArea(java.awt.Graphics2D graphics,
                         java.awt.Component comp,
                         DecorationAreaType decorationAreaType,
                         int width,
                         int height,
                         SubstanceSkin skin)
Paints the decoration area.

Parameters:
graphics - Graphics context.
comp - Component.
decorationAreaType - Decoration area type. Must not be null.
width - Width.
height - Height.
skin - Skin for painting the decoration area.