Class DelegateBorderPainter

java.lang.Object
org.pushingpixels.substance.api.painter.border.StandardBorderPainter
org.pushingpixels.substance.api.painter.border.DelegateBorderPainter
All Implemented Interfaces:
SubstanceBorderPainter, SubstanceTrait

public class DelegateBorderPainter extends StandardBorderPainter
Delegate border painter that allows tweaking the visual appearance of borders.
  • Field Details

    • displayName

      protected String displayName
      Display name of this border painter.
    • delegate

      protected StandardBorderPainter delegate
      The delegate border painter.
    • topMask

      protected int topMask
      8-digit hexadecimal mask applied on the top color painted by delegate. Can be used to apply custom translucency. For example, value 0x80FFFFFF will result in 50% translucency of the original top border color.
    • midMask

      protected int midMask
      8-digit hexadecimal mask applied on the middle color painted by delegate. Can be used to apply custom translucency. For example, value 0x80FFFFFF will result in 50% translucency of the original middle border color.
    • bottomMask

      protected int bottomMask
      8-digit hexadecimal mask applied on the bottom color painted by delegate. Can be used to apply custom translucency. For example, value 0x80FFFFFF will result in 50% translucency of the original bottom border color.
    • transform

      protected ColorSchemeTransform transform
      Transformation to be applied on the color schemes prior to compute the colors to be used for border painting.
    • transformMap

      protected static final LazyResettableHashMap<SubstanceColorScheme> transformMap
      Map of transformed color schemes (to speed up the subsequent lookups).
  • Constructor Details

    • DelegateBorderPainter

      public DelegateBorderPainter(String displayName, StandardBorderPainter delegate, ColorSchemeTransform transform)
      Creates a new delegate border painter
      Parameters:
      displayName - Display name of this border painter.
      delegate - The delegate border painter.
      transform - Transformation to be applied on the color schemes prior to compute the colors to be used for border painting.
    • DelegateBorderPainter

      public DelegateBorderPainter(String displayName, StandardBorderPainter delegate, int topMask, int midMask, int bottomMask, ColorSchemeTransform transform)
      Creates a new delegate border painter
      Parameters:
      displayName - Display name of this border painter.
      delegate - The delegate border painter.
      topMask - 8-digit hexadecimal mask applied on the top color painted by the delegate.
      midMask - 8-digit hexadecimal mask applied on the middle color painted by the delegate.
      bottomMask - 8-digit hexadecimal mask applied on the bottom color painted by the delegate.
      transform - Transformation to be applied on the color schemes prior to compute the colors to be used for border painting.
  • Method Details