Class BladeDrawingUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void paintBladeBorder​(java.awt.Component c, java.awt.Graphics2D g, int x, int y, int width, int height, float baseRadius, RadianceColorScheme borderScheme)  
      static void paintBladeSimpleBorder​(java.awt.Component c, java.awt.Graphics2D g, int width, int height, float baseRadius, RadianceColorScheme colorScheme)  
      static void paintRectangularBackground​(java.awt.Component c, java.awt.Graphics g, int startX, int startY, int width, int height, RadianceColorScheme colorScheme, float borderAlpha, boolean isVertical)
      Paints rectangular gradient background.
      • Methods inherited from class java.lang.Object

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

      • BladeDrawingUtils

        public BladeDrawingUtils()
    • Method Detail

      • paintBladeBorder

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

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

        public static void paintRectangularBackground​(java.awt.Component c,
                                                      java.awt.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.