Class SimplisticFillPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.fill.StandardFillPainter
-
- org.pushingpixels.substance.internal.painter.SimplisticFillPainter
-
- All Implemented Interfaces:
SubstanceFillPainter,SubstanceTrait
- Direct Known Subclasses:
SubstanceImageCreator.SimplisticSoftBorderReverseFillPainter
public class SimplisticFillPainter extends StandardFillPainter
Fill painter that returns images with simplistic appearance. This class is for internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description static SimplisticFillPainterINSTANCEReusable instance of this painter.
-
Constructor Summary
Constructors Constructor Description SimplisticFillPainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBottomShineColor(SubstanceColorScheme fillScheme)Computes the color of the bottom portion of the shine.StringgetDisplayName()Returns the display name ofthistrait.ColorgetMidFillColorTop(SubstanceColorScheme fillScheme)Computes the color of the middle portion of the fill from the top.ColorgetTopFillColor(SubstanceColorScheme fillScheme)Computes the color of the top portion of the fill.ColorgetTopShineColor(SubstanceColorScheme fillScheme)Computes the color of the top portion of the shine.-
Methods inherited from class org.pushingpixels.substance.api.painter.fill.StandardFillPainter
getBottomFillColor, getMidFillColorBottom, paintContourBackground
-
-
-
-
Field Detail
-
INSTANCE
public static final SimplisticFillPainter INSTANCE
Reusable instance of this painter.
-
-
Method Detail
-
getDisplayName
public 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 classStandardFillPainter- Returns:
- The display name of
thistrait.
-
getTopFillColor
public 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 classStandardFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the top portion of the fill.
-
getMidFillColorTop
public 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 classStandardFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the middle portion of the fill from the top.
-
getTopShineColor
public Color getTopShineColor(SubstanceColorScheme fillScheme)
Description copied from class:StandardFillPainterComputes the color of the top portion of the shine. Override to provide different visual.- Overrides:
getTopShineColorin classStandardFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the top portion of the shine.
-
getBottomShineColor
public Color getBottomShineColor(SubstanceColorScheme fillScheme)
Description copied from class:StandardFillPainterComputes the color of the bottom portion of the shine. Override to provide different visual.- Overrides:
getBottomShineColorin classStandardFillPainter- Parameters:
fillScheme- The fill scheme.- Returns:
- The color of the bottom portion of the shine.
-
-