Class BladeDrawingUtils

java.lang.Object
org.pushingpixels.radiance.theming.internal.blade.BladeDrawingUtils

public class BladeDrawingUtils extends Object
  • Constructor Details

    • BladeDrawingUtils

      public BladeDrawingUtils()
  • Method Details

    • paintBladeBorder

      public static void paintBladeBorder(Component c, Graphics2D g, int x, int y, int width, int height, float baseRadius, RadianceColorScheme borderScheme)
    • paintBladeSimpleBorder

      public static void paintBladeSimpleBorder(Component c, Graphics2D g, int width, int height, float baseRadius, RadianceColorScheme colorScheme)
    • paintRectangularBackground

      public static void paintRectangularBackground(Component c, Graphics g, int startX, int startY, int width, int height, RadianceColorScheme colorScheme, float borderAlpha, boolean isVertical)
      Paints rectangular gradient background.
      Parameters:
      g - Graphic context.
      startX - Background starting X coord.
      startY - Background starting Y coord.
      width - Background width.
      height - Background height.
      colorScheme - Color scheme for the background.
      borderAlpha - Border alpha.
      isVertical - if true, the gradient will be vertical, if false, the gradient will be horizontal.