Class PlasticXPUtils

java.lang.Object
com.jgoodies.looks.plastic.PlasticXPUtils

public final class PlasticXPUtils extends Object
Consists exclusively of static methods that provide convenience behavior.
Version:
$Revision: 1.5 $
  • Constructor Details

    • PlasticXPUtils

      private PlasticXPUtils()
  • Method Details

    • drawPlainButtonBorder

      static void drawPlainButtonBorder(Graphics g, int x, int y, int w, int h)
      Draws a plain border for an xp button.
    • drawPressedButtonBorder

      static void drawPressedButtonBorder(Graphics g, int x, int y, int w, int h)
      Draws a border for a pressed xp button.
    • drawDefaultButtonBorder

      static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h)
      Draws a border for a default xp button.
    • drawFocusedButtonBorder

      static void drawFocusedButtonBorder(Graphics g, int x, int y, int w, int h)
      Draws a border for a focused xp button.
    • drawDisabledButtonBorder

      static void drawDisabledButtonBorder(Graphics g, int x, int y, int w, int h)
      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

      static void drawRect(Graphics g, int x, int y, int w, int h)
      An optimized version of Graphics.drawRect.
    • translucentColor

      private static Color translucentColor(Color baseColor, int alpha)
      Returns a color that is a translucent copy of the given color.
      Parameters:
      baseColor - the base color
      alpha - the alpha value
      Returns:
      the translucent color with specified alpha