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 voiddrawButtonBorder(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 voiddrawDefaultButtonBorder(Graphics g, int x, int y, int w, int h) Draws a border for a default xp button.(package private) static voiddrawDisabledButtonBorder(Graphics g, int x, int y, int w, int h) Draws a border for a disabled xp button.(package private) static voiddrawFocusedButtonBorder(Graphics g, int x, int y, int w, int h) Draws a border for a focused xp button.private static voiddrawInnerButtonDecoration(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 voiddrawPlainButtonBorder(Graphics g, int x, int y, int w, int h) Draws a plain border for an xp button.(package private) static voiddrawPressedButtonBorder(Graphics g, int x, int y, int w, int h) Draws a border for a pressed xp button.(package private) static voidAn optimized version of Graphics.drawRect.private static ColortranslucentColor(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
-