Package com.jgoodies.looks.plastic
Class PlasticXPUtils
java.lang.Object
com.jgoodies.looks.plastic.PlasticXPUtils
Consists exclusively of static methods that provide convenience behavior.
- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawButtonBorder
(Graphics g, int x, int y, int w, int h, Color backgroundColor, Color edgeColor, Color cornerColor) Draws a button border for an xp button with the given colors.(package private) static void
drawDefaultButtonBorder
(Graphics g, int x, int y, int w, int h) Draws a border for a default xp button.(package private) static void
drawDisabledButtonBorder
(Graphics g, int x, int y, int w, int h) Draws a border for a disabled xp button.(package private) static void
drawFocusedButtonBorder
(Graphics g, int x, int y, int w, int h) Draws a border for a focused xp button.private static void
drawInnerButtonDecoration
(Graphics g, int x, int y, int w, int h, Color baseColor) Draws a button border for an xp button with the given colors.(package private) static void
drawPlainButtonBorder
(Graphics g, int x, int y, int w, int h) Draws a plain border for an xp button.(package private) static void
drawPressedButtonBorder
(Graphics g, int x, int y, int w, int h) Draws a border for a pressed xp button.(package private) static void
An optimized version of Graphics.drawRect.private static Color
translucentColor
(Color baseColor, int alpha) Returns a color that is a translucent copy of the given color.
-
Constructor Details
-
PlasticXPUtils
private PlasticXPUtils()
-
-
Method Details
-
drawPlainButtonBorder
Draws a plain border for an xp button. -
drawPressedButtonBorder
Draws a border for a pressed xp button. -
drawDefaultButtonBorder
Draws a border for a default xp button. -
drawFocusedButtonBorder
Draws a border for a focused xp button. -
drawDisabledButtonBorder
Draws a border for a disabled xp button. -
drawButtonBorder
public static void drawButtonBorder(Graphics g, int x, int y, int w, int h, Color backgroundColor, Color edgeColor, Color cornerColor) Draws a button border for an xp button with the given colors. -
drawInnerButtonDecoration
private static void drawInnerButtonDecoration(Graphics g, int x, int y, int w, int h, Color baseColor) Draws a button border for an xp button with the given colors. -
drawRect
An optimized version of Graphics.drawRect. -
translucentColor
Returns a color that is a translucent copy of the given color.- Parameters:
baseColor
- the base coloralpha
- the alpha value- Returns:
- the translucent color with specified alpha
-