Class BladeDrawingUtils
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.blade.BladeDrawingUtils
-
public class BladeDrawingUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BladeDrawingUtils()
-
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.
-
-
-
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
- iftrue
, the gradient will be vertical, iffalse
, the gradient will be horizontal.
-
-