Class ClassicBorderPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.border.StandardBorderPainter
-
- org.pushingpixels.substance.api.painter.border.ClassicBorderPainter
-
- All Implemented Interfaces:
SubstanceBorderPainter
,SubstanceTrait
public class ClassicBorderPainter extends StandardBorderPainter
Border painter that returns images with classic appearance. This class is part of officially supported API.
-
-
Constructor Summary
Constructors Constructor Description ClassicBorderPainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getBottomBorderColor(SubstanceColorScheme borderScheme)
Computes the color of the bottom portion of the border.String
getDisplayName()
Returns the display name ofthis
trait.Color
getMidBorderColor(SubstanceColorScheme borderScheme)
Computes the color of the middle portion of the border.Color
getTopBorderColor(SubstanceColorScheme borderScheme)
Computes the color of the top portion of the border.-
Methods inherited from class org.pushingpixels.substance.api.painter.border.StandardBorderPainter
isPaintingInnerContour, paintBorder
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Description copied from interface:SubstanceTrait
Returns the display name ofthis
trait. This method is part of officially supported API.- Specified by:
getDisplayName
in interfaceSubstanceTrait
- Overrides:
getDisplayName
in classStandardBorderPainter
- Returns:
- The display name of
this
trait.
-
getTopBorderColor
public Color getTopBorderColor(SubstanceColorScheme borderScheme)
Description copied from class:StandardBorderPainter
Computes the color of the top portion of the border. Override to provide different visual.- Overrides:
getTopBorderColor
in classStandardBorderPainter
- Parameters:
borderScheme
- The border color scheme.- Returns:
- The color of the top portion of the border.
-
getMidBorderColor
public Color getMidBorderColor(SubstanceColorScheme borderScheme)
Description copied from class:StandardBorderPainter
Computes the color of the middle portion of the border. Override to provide different visual.- Overrides:
getMidBorderColor
in classStandardBorderPainter
- Parameters:
borderScheme
- The border color scheme.- Returns:
- The color of the middle portion of the border.
-
getBottomBorderColor
public Color getBottomBorderColor(SubstanceColorScheme borderScheme)
Description copied from class:StandardBorderPainter
Computes the color of the bottom portion of the border. Override to provide different visual.- Overrides:
getBottomBorderColor
in classStandardBorderPainter
- Parameters:
borderScheme
- The border color scheme.- Returns:
- The color of the bottom portion of the border.
-
-