Class BladeDrawingUtils
java.lang.Object
org.pushingpixels.radiance.theming.internal.blade.BladeDrawingUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
paintBladeBorder
(Component c, Graphics2D g, int x, int y, int width, int height, float baseRadius, RadianceColorScheme borderScheme) static void
paintBladeSimpleBorder
(Component c, Graphics2D g, int width, int height, float baseRadius, RadianceColorScheme colorScheme) 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.
-
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
- iftrue
, the gradient will be vertical, iffalse
, the gradient will be horizontal.
-