public class GraphicsUtils extends Object
Constructor and Description |
---|
GraphicsUtils() |
Modifier and Type | Method and Description |
---|---|
Graphics2D |
createAAGraphics(Graphics g) |
Color |
deriveWithAlpha(Color color,
int alpha) |
void |
drawString(JComponent component,
Graphics2D graphics,
String string,
Color foreground,
int x,
int y) |
void |
drawStringWithShadow(JComponent component,
Graphics2D graphics,
String string,
Color foreground,
int x,
int y) |
FontMetrics |
getFontMetrics(JComponent component,
Font font) |
static GraphicsUtils |
getInstance() |
Shape |
getRoundShape(int width,
int height) |
void |
setGradientPaint(Graphics2D g,
int x,
int height,
Color start,
Color stop) |
public static GraphicsUtils getInstance()
public Graphics2D createAAGraphics(Graphics g)
public void drawStringWithShadow(JComponent component, Graphics2D graphics, String string, Color foreground, int x, int y)
public void drawString(JComponent component, Graphics2D graphics, String string, Color foreground, int x, int y)
public FontMetrics getFontMetrics(JComponent component, Font font)
public Shape getRoundShape(int width, int height)
public void setGradientPaint(Graphics2D g, int x, int height, Color start, Color stop)
Copyright © 2013. All rights reserved.