Class SpecularRectangularFillPainter

  • All Implemented Interfaces:
    RadianceFillPainter, RadianceTrait

    public class SpecularRectangularFillPainter
    extends java.lang.Object
    implements RadianceFillPainter
    Fill painter that draws visuals with subtle 3D gradient appearance. This class is part of officially supported API.
    • Field Detail

      • SCALE

        private static int SCALE
      • alpha

        private float alpha
    • Constructor Detail

      • SpecularRectangularFillPainter

        public SpecularRectangularFillPainter​(RadianceFillPainter baseFillPainter,
                                              float alpha)
    • Method Detail

      • getDisplayName

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

        private double spline​(double startY,
                              double control1Y,
                              double control2Y,
                              double endY,
                              double t)
      • paintContourBackground

        public void paintContourBackground​(java.awt.Graphics g,
                                           java.awt.Component comp,
                                           float width,
                                           float height,
                                           java.awt.Shape contour,
                                           RadianceColorScheme fillScheme)
        Description copied from interface: RadianceFillPainter
        Fills the contour that matches the specified parameters.
        Specified by:
        paintContourBackground in interface RadianceFillPainter
        Parameters:
        g - Graphics context.
        comp - Component to paint.
        width - Width of a UI component.
        height - Height of a UI component.
        contour - Contour of a UI component.
        fillScheme - The fill color scheme.
      • getShineImage

        private java.awt.image.BufferedImage getShineImage​(java.awt.Component comp,
                                                           java.awt.Shape contour,
                                                           java.awt.Color topShineColor,
                                                           java.awt.Color bottomShineColor,
                                                           float alpha,
                                                           int shineWidth,
                                                           int shineHeight)