Class WaveDelegateFillPainter

  • All Implemented Interfaces:
    org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter, org.pushingpixels.substance.api.trait.SubstanceTrait
    Direct Known Subclasses:
    StandardWaveFillPainter


    public abstract class WaveDelegateFillPainter
    extends java.lang.Object
    implements org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter
    Base class for fill painters that overlay wave gradient on top of some other fill painter.This class is part of officially supported API. The implementation borrows heavily from this.
    • Constructor Summary

      Constructors 
      Constructor Description
      WaveDelegateFillPainter​(java.lang.String painterName, org.pushingpixels.substance.api.colorscheme.ColorSchemeTransform transformation, org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter delegate)
      Creates a new wave-overlaying painter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDisplayName​()  
      void paintContourBackground​(java.awt.Graphics g, java.awt.Component comp, float width, float height, java.awt.Shape contour, boolean isFocused, org.pushingpixels.substance.api.colorscheme.SubstanceColorScheme fillScheme, boolean hasShine)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaveDelegateFillPainter

        public WaveDelegateFillPainter​(java.lang.String painterName,
                                       org.pushingpixels.substance.api.colorscheme.ColorSchemeTransform transformation,
                                       org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter delegate)
        Creates a new wave-overlaying painter.
        Parameters:
        painterName - Painter display name.
        transformation - Optional scheme transformation. If null, the result will be identical to using the delegate painter.
        delegate - Delegate painter.
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName​()
        Specified by:
        getDisplayName in interface org.pushingpixels.substance.api.trait.SubstanceTrait
      • paintContourBackground

        public void paintContourBackground​(java.awt.Graphics g,
                                           java.awt.Component comp,
                                           float width,
                                           float height,
                                           java.awt.Shape contour,
                                           boolean isFocused,
                                           org.pushingpixels.substance.api.colorscheme.SubstanceColorScheme fillScheme,
                                           boolean hasShine)
        Specified by:
        paintContourBackground in interface org.pushingpixels.substance.api.painter.fill.SubstanceFillPainter