Class PlasticUtils

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

public final class PlasticUtils extends Object
Consists exclusively of static methods that provide convenience behavior.
Version:
$Revision: 1.9 $
  • Field Details

  • Constructor Details

    • PlasticUtils

      private PlasticUtils()
  • Method Details

    • drawDark3DBorder

      static void drawDark3DBorder(Graphics g, int x, int y, int w, int h)
    • drawDisabledBorder

      static void drawDisabledBorder(Graphics g, int x, int y, int w, int h)
    • drawFlush3DBorder

      static void drawFlush3DBorder(Graphics g, int x, int y, int w, int h)
    • drawPressed3DBorder

      static void drawPressed3DBorder(Graphics g, int x, int y, int w, int h)
    • drawButtonBorder

      static void drawButtonBorder(Graphics g, int x, int y, int w, int h, boolean active)
    • drawActiveButtonBorder

      static void drawActiveButtonBorder(Graphics g, int x, int y, int w, int h)
    • drawDefaultButtonBorder

      static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h, boolean active)
    • drawDefaultButtonPressedBorder

      static void drawDefaultButtonPressedBorder(Graphics g, int x, int y, int w, int h)
    • drawThinFlush3DBorder

      static void drawThinFlush3DBorder(Graphics g, int x, int y, int w, int h)
    • drawThinPressed3DBorder

      static void drawThinPressed3DBorder(Graphics g, int x, int y, int w, int h)
    • isLeftToRight

      static boolean isLeftToRight(Component c)
    • is3D

      static boolean is3D(String keyPrefix)
      Checks and returns whether the specified component type has 3D effects.
      Parameters:
      keyPrefix - the prefix of the key used to lookup the setting
      Returns:
      true if the component type shall be rendered with a 3D effect
      See Also:
    • force3D

      static boolean force3D(JComponent c)
      Checks and returns whether we have a custom hint that forces the 3D mode.
      Parameters:
      c - the component to inspect
      Returns:
      true if the given component has a 3D hint set
      See Also:
    • forceFlat

      static boolean forceFlat(JComponent c)
      Checks and returns whether we have a custom hint that prevents the 3D mode.
      Parameters:
      c - the component to inspect
      Returns:
      true if the given component has a flat hint set
      See Also:
    • add3DEffekt

      private static void add3DEffekt(Graphics g, Rectangle r, boolean isHorizontal, Color startC0, Color stopC0, Color startC1, Color stopC1)
    • add3DEffekt

      static void add3DEffekt(Graphics g, Rectangle r)
    • addLight3DEffekt

      static void addLight3DEffekt(Graphics g, Rectangle r, boolean isHorizontal)
    • addLight3DEffekt

      public static void addLight3DEffekt(Graphics g, Rectangle r)
    • drawRect

      private static void drawRect(Graphics g, int x, int y, int w, int h)