Class MatteDecorationPainter

    • Field Detail

      • DISPLAY_NAME

        public static final String DISPLAY_NAME
        The display name for the decoration painters of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MatteDecorationPainter

        public MatteDecorationPainter()
    • Method Detail

      • getDisplayName

        public String getDisplayName()
        Description copied from interface: SubstanceTrait
        Returns the display name of this trait. This method is part of officially supported API.
        Specified by:
        getDisplayName in interface SubstanceTrait
        Returns:
        The display name of this trait.
      • fill

        protected void fill​(Graphics2D graphics,
                            Component comp,
                            SubstanceColorScheme scheme,
                            int offsetY,
                            int x,
                            int y,
                            int width,
                            int height)
        Fills the relevant part with the gradient fill.
        Parameters:
        graphics - Graphics.
        comp - Component.
        scheme - Color scheme to use.
        offsetY - Vertical offset.
        x - X coordinate of the fill area.
        y - Y coordinate of the fill area.
        width - Fill area width.
        height - Fill area height.