|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubstanceTitlePainter
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.
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 |
---|
java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is
part of officially supported API.
getDisplayName
in interface SubstanceTrait
this
trait.void paintTitleBackground(java.awt.Graphics2D graphics, java.awt.Component comp, int width, int height, int leftTitleX, int rightTitleX, SubstanceTheme theme, float borderAlpha)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |