org.jvnet.substance.title
Class MarbleNoiseHeaderPainter
java.lang.Object
org.jvnet.substance.title.BaseHeaderPainter
org.jvnet.substance.title.ImageWrapperHeaderPainter
org.jvnet.substance.title.MarbleNoiseHeaderPainter
- All Implemented Interfaces:
- SubstanceHeaderPainter, SubstanceTitlePainter, SubstanceTrait
public class MarbleNoiseHeaderPainter
- extends ImageWrapperHeaderPainter
Implementation of SubstanceHeaderPainter
that uses marble noise
painting on title panes.
- Since:
- version 4.0
- Author:
- Kirill Grouchnikov
Field Summary |
static java.lang.String |
DISPLAY_NAME
The display name for the title painters of this class. |
Constructor Summary |
MarbleNoiseHeaderPainter()
Creates a new marble noise header painter that is used to paint title
panes, menubars and toolbars. |
MarbleNoiseHeaderPainter(boolean isPaintingToolbars,
boolean isPaintingGeneralDecorationAreas)
Creates a new marble noise 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISPLAY_NAME
public static final java.lang.String DISPLAY_NAME
- The display name for the title painters of this class.
- See Also:
- Constant Field Values
MarbleNoiseHeaderPainter
public MarbleNoiseHeaderPainter()
- Creates a new marble noise header painter that is used to paint title
panes, menubars and toolbars.
MarbleNoiseHeaderPainter
public MarbleNoiseHeaderPainter(boolean isPaintingToolbars,
boolean isPaintingGeneralDecorationAreas)
- Creates a new marble noise 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.
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.