public class DrawUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ARC_SIZE |
| Constructor and Description |
|---|
DrawUtils() |
| Modifier and Type | Method and Description |
|---|---|
static GradientPaint |
getGradientPaint(Color startColor,
Color endColor,
Shape shape) |
static GeneralPath |
getRoundedShape(Polygon polygon) |
static Shape |
getRoundedShape(Rectangle shape) |
static void |
gradientFillShape(Graphics2D g,
Color startColor,
Color endColor,
Shape shape) |
static void |
initializeGraphics2D(Graphics2D g) |
static void |
setupRoundedGeneralPath(Polygon polygon,
GeneralPath generalPath) |
public static final int ARC_SIZE
public static void gradientFillShape(Graphics2D g, Color startColor, Color endColor, Shape shape)
public static GradientPaint getGradientPaint(Color startColor, Color endColor, Shape shape)
public static void initializeGraphics2D(Graphics2D g)
public static GeneralPath getRoundedShape(Polygon polygon)
public static void setupRoundedGeneralPath(Polygon polygon, GeneralPath generalPath)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.