Class FlatBorderPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.border.StandardBorderPainter
-
- org.pushingpixels.substance.api.painter.border.FlatBorderPainter
-
- All Implemented Interfaces:
SubstanceBorderPainter,SubstanceTrait
public class FlatBorderPainter extends StandardBorderPainter
Border painter that returns images with flat appearance. This class is part of officially supported API.
-
-
Constructor Summary
Constructors Constructor Description FlatBorderPainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetBottomBorderColor(SubstanceColorScheme borderScheme)Computes the color of the bottom portion of the border.java.lang.StringgetDisplayName()Returns the display name ofthistrait.java.awt.ColorgetMidBorderColor(SubstanceColorScheme borderScheme)Computes the color of the middle portion of the border.-
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.border.StandardBorderPainter
getRepresentativeColor, getTopBorderColor, isPaintingInnerContour, paintBorder
-
-
-
-
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 classStandardBorderPainter- Returns:
- The display name of
thistrait.
-
getMidBorderColor
public java.awt.Color getMidBorderColor(SubstanceColorScheme borderScheme)
Description copied from class:StandardBorderPainterComputes the color of the middle portion of the border. Override to provide different visual.- Overrides:
getMidBorderColorin classStandardBorderPainter- Parameters:
borderScheme- The border color scheme.- Returns:
- The color of the middle portion of the border.
-
getBottomBorderColor
public java.awt.Color getBottomBorderColor(SubstanceColorScheme borderScheme)
Description copied from class:StandardBorderPainterComputes the color of the bottom portion of the border. Override to provide different visual.- Overrides:
getBottomBorderColorin classStandardBorderPainter- Parameters:
borderScheme- The border color scheme.- Returns:
- The color of the bottom portion of the border.
-
-