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
public class MatteFillPainter extends ClassicFillPainter
Fill painter that returns images with matte appearance. This class is part of officially supported API.
-
-
Field Summary
Fields Modifier and Type Field Description static MatteFillPainterINSTANCEReusable instance of this painter.
-
Constructor Summary
Constructors Constructor Description MatteFillPainter()Creates a new matte fill painter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetBottomFillColor(SubstanceColorScheme fillScheme)Computes the color of the bottom portion of the fill.java.lang.StringgetDisplayName()Returns the display name ofthistrait.java.awt.ColorgetMidFillColorTop(SubstanceColorScheme fillScheme)Computes the color of the middle portion of the fill from the top.java.awt.ColorgetTopFillColor(SubstanceColorScheme fillScheme)Computes the color of the top portion of the fill.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.pushingpixels.substance.api.painter.fill.StandardFillPainter
getBottomShineColor, getMidFillColorBottom, getTopShineColor, paintContourBackground
-
-
-
-
Field Detail
-
INSTANCE
public static final MatteFillPainter INSTANCE
Reusable instance of this painter.
-
-
Method Detail
-
getDisplayName
public java.lang.String 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
public java.awt.Color getTopFillColor(SubstanceColorScheme fillScheme)
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
public java.awt.Color getMidFillColorTop(SubstanceColorScheme fillScheme)
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
public java.awt.Color getBottomFillColor(SubstanceColorScheme fillScheme)
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.
-
-