org.jvnet.substance.title
Class BrushedMetalHeaderPainter

java.lang.Object
  extended by org.jvnet.substance.title.BaseHeaderPainter
      extended by org.jvnet.substance.title.ImageWrapperHeaderPainter
          extended by org.jvnet.substance.title.BrushedMetalHeaderPainter
All Implemented Interfaces:
SubstanceHeaderPainter, SubstanceTitlePainter, SubstanceTrait

public class BrushedMetalHeaderPainter
extends ImageWrapperHeaderPainter

Implementation of SubstanceHeaderPainter that uses brushed metal painting on title panes.

Since:
version 4.0
Author:
Kirill Grouchnikov

Field Summary
static java.lang.String DISPLAY_NAME
          The display name for the header painters of this class.
 
Fields inherited from class org.jvnet.substance.title.ImageWrapperHeaderPainter
baseTitlePainter, colorizedTileMap, isPaintingSeparators, secondaryTitlePainter, singleTile, textureAlpha
 
Fields inherited from class org.jvnet.substance.title.BaseHeaderPainter
isPaintingGeneralDecorationAreas, isPaintingToolbars
 
Constructor Summary
BrushedMetalHeaderPainter()
          Creates a new brushed metal header painter that is used to paint title panes, menubars and toolbars.
BrushedMetalHeaderPainter(boolean isPaintingToolbars, boolean isPaintingGeneralDecorationAreas)
          Creates a new brushed metal header painter
 
Method Summary
 java.lang.String getDisplayName()
          Returns the display name of this trait.
 SubstanceTitlePainter getSecondaryPainter()
          Returns the secondary painter which is used for painting areas that do not have the painting of title pane (currently used for menu items).
 
Methods inherited from class org.jvnet.substance.title.ImageWrapperHeaderPainter
getColorizedTile, paintExtraBackground, paintTitleBackground, setBaseTitlePainter, setPaintingSeparators, setTextureAlpha, tileArea
 
Methods inherited from class org.jvnet.substance.title.BaseHeaderPainter
isPaintingContainer, isPaintingToolbarDropShadows, setPaintingGeneralDecorationAreas, setPaintingToolbarDropShadows, setPaintingToolbars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY_NAME

public static final java.lang.String DISPLAY_NAME
The display name for the header painters of this class.

See Also:
Constant Field Values
Constructor Detail

BrushedMetalHeaderPainter

public BrushedMetalHeaderPainter()
Creates a new brushed metal header painter that is used to paint title panes, menubars and toolbars.


BrushedMetalHeaderPainter

public BrushedMetalHeaderPainter(boolean isPaintingToolbars,
                                 boolean isPaintingGeneralDecorationAreas)
Creates a new brushed metal header painter

Parameters:
isPaintingToolbars - If true, this painter will be used to paint toolbars in addition to painting title panes and menubars.
isPaintingGeneralDecorationAreas - If true, this painter will be used to paint additional general decoration areas.
Method Detail

getDisplayName

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

Returns:
The display name of this trait.

getSecondaryPainter

public SubstanceTitlePainter getSecondaryPainter()
Description copied from interface: SubstanceHeaderPainter
Returns the secondary painter which is used for painting areas that do not have the painting of title pane (currently used for menu items).

Specified by:
getSecondaryPainter in interface SubstanceHeaderPainter
Overrides:
getSecondaryPainter in class ImageWrapperHeaderPainter
Returns:
The secondary painter.