org.jvnet.substance.title
Interface SubstanceTitlePainter

All Superinterfaces:
SubstanceTrait
All Known Subinterfaces:
SubstanceHeaderPainter
All Known Implementing Classes:
ArcHeaderPainter, BaseHeaderPainter, BrushedMetalHeaderPainter, ClassicTitlePainter, FlatTitlePainter, Glass3DTitlePainter, ImageWrapperHeaderPainter, MarbleNoiseHeaderPainter, MatteHeaderPainter, RandomCubesTitlePainter

public interface SubstanceTitlePainter
extends SubstanceTrait

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

Starting from version 3.1, the current title painter (which can be obtained by calling SubstanceLookAndFeel.getCurrentTitlePainter() is used to paint not only the title panes, but also for combo boxes and selected tree / list / tables cells. The naming is unfortunate (would better be called SubstanceHeaderPainter or SubstanceSelectedPainter), but this can not be done without breaking the API.

Author:
Kirill Grouchnikov

Method Summary
 java.lang.String getDisplayName()
          Returns the display name of this trait.
 void paintTitleBackground(java.awt.Graphics2D graphics, java.awt.Component comp, int width, int height, int leftTitleX, int rightTitleX, SubstanceTheme theme, float borderAlpha)
          Paints the title background.
 

Method Detail

getDisplayName

java.lang.String getDisplayName()
Description copied from interface: SubstanceTrait
Returns the display name of this trait. This method is part of officially supported API.

Specified by:
getDisplayName in interface SubstanceTrait
Returns:
The display name of this trait.

paintTitleBackground

void paintTitleBackground(java.awt.Graphics2D graphics,
                          java.awt.Component comp,
                          int width,
                          int height,
                          int leftTitleX,
                          int rightTitleX,
                          SubstanceTheme theme,
                          float borderAlpha)
Paints the title background.

Parameters:
graphics - Graphics context.
comp - Component.
width - Width.
height - Height.
leftTitleX - Title start poisition.
rightTitleX - Title end position.
theme - Substance theme for painting the title packground.
borderAlpha - Border alpha factor.