Class PainterExtensions


  • public class PainterExtensions
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter​(java.awt.Color matte, java.awt.Color gloss, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle, java.awt.Color pinstripe)
      Gets a CompoundPainter object.
      static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter​(java.awt.Color color, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle)
      Gets the compound painter.
      static org.jdesktop.swingx.painter.MattePainter getMattePainter​(int width, int height, float[] fractions, java.awt.Color... colors)
      Gets a MattePainter object.
      • Methods inherited from class java.lang.Object

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

      • PainterExtensions

        public PainterExtensions()
    • Method Detail

      • getCompoundPainter

        public static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter​(java.awt.Color matte,
                                                                                     java.awt.Color gloss,
                                                                                     org.jdesktop.swingx.painter.GlossPainter.GlossPosition position,
                                                                                     double angle,
                                                                                     java.awt.Color pinstripe)
        Gets a CompoundPainter object.
        Parameters:
        matte - the matte color
        gloss - the gloss color
        position - the position
        angle - the angle
        pinstripe - the pinstripe painter
        Returns:
        the CompoundPainter object.
      • getCompoundPainter

        public static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter​(java.awt.Color color,
                                                                                     org.jdesktop.swingx.painter.GlossPainter.GlossPosition position,
                                                                                     double angle)
        Gets the compound painter.
        Parameters:
        color - the color
        position - the position
        angle - the angle
        Returns:
        the compound painter
      • getMattePainter

        public static org.jdesktop.swingx.painter.MattePainter getMattePainter​(int width,
                                                                               int height,
                                                                               float[] fractions,
                                                                               java.awt.Color... colors)
        Gets a MattePainter object.
        Parameters:
        width - the width
        height - the height
        fractions - the fractions
        colors - the colors
        Returns:
        the MattePainter object