Class MatteFillPainter
java.lang.Object
org.pushingpixels.substance.api.painter.fill.StandardFillPainter
org.pushingpixels.substance.api.painter.fill.ClassicFillPainter
org.pushingpixels.substance.api.painter.fill.MatteFillPainter
- All Implemented Interfaces:
SubstanceFillPainter, SubstanceTrait
Fill painter that returns images with matte appearance. This class is part of
officially supported API.
- Since:
- version 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MatteFillPainterReusable instance of this painter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBottomFillColor(SubstanceColorScheme fillScheme) Computes the color of the bottom portion of the fill.Returns the display name ofthistrait.getMidFillColorTop(SubstanceColorScheme fillScheme) Computes the color of the middle portion of the fill from the top.getTopFillColor(SubstanceColorScheme fillScheme) Computes the color of the top portion of the fill.Methods inherited from class StandardFillPainter
getBottomShineColor, getMidFillColorBottom, getTopShineColor, paintContourBackground
-
Field Details
-
INSTANCE
Reusable instance of this painter.
-
-
Constructor Details
-
MatteFillPainter
public MatteFillPainter()Creates a new matte fill painter.
-
-
Method Details
-
getDisplayName
Description copied from interface:SubstanceTraitReturns the display name ofthistrait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceSubstanceTrait- Overrides:
getDisplayNamein classClassicFillPainter- Returns:
- The display name of
thistrait.
-
getTopFillColor
Description copied from class:StandardFillPainterComputes the color of the top portion of the fill. Override to provide different visual.- Overrides:
getTopFillColorin classClassicFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the top portion of the fill.
-
getMidFillColorTop
Description copied from class:StandardFillPainterComputes the color of the middle portion of the fill from the top. Override to provide different visual.- Overrides:
getMidFillColorTopin classClassicFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the middle portion of the fill from the top.
-
getBottomFillColor
Description copied from class:StandardFillPainterComputes the color of the bottom portion of the fill. Override to provide different visual.- Overrides:
getBottomFillColorin classStandardFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the bottom portion of the fill.
-