Package com.jgoodies.looks.plastic
Class PlasticUtils
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticUtils
-
public final class PlasticUtils extends java.lang.ObjectConsists exclusively of static methods that provide convenience behavior.- Version:
- $Revision: 1.9 $
-
-
Field Summary
Fields Modifier and Type Field Description private static floatFRACTION_3D
-
Constructor Summary
Constructors Modifier Constructor Description privatePlasticUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidadd3DEffekt(java.awt.Graphics g, java.awt.Rectangle r)private static voidadd3DEffekt(java.awt.Graphics g, java.awt.Rectangle r, boolean isHorizontal, java.awt.Color startC0, java.awt.Color stopC0, java.awt.Color startC1, java.awt.Color stopC1)static voidaddLight3DEffekt(java.awt.Graphics g, java.awt.Rectangle r)(package private) static voidaddLight3DEffekt(java.awt.Graphics g, java.awt.Rectangle r, boolean isHorizontal)(package private) static voiddrawActiveButtonBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawButtonBorder(java.awt.Graphics g, int x, int y, int w, int h, boolean active)(package private) static voiddrawDark3DBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawDefaultButtonBorder(java.awt.Graphics g, int x, int y, int w, int h, boolean active)(package private) static voiddrawDefaultButtonPressedBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawDisabledBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawFlush3DBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawPressed3DBorder(java.awt.Graphics g, int x, int y, int w, int h)private static voiddrawRect(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawThinFlush3DBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static voiddrawThinPressed3DBorder(java.awt.Graphics g, int x, int y, int w, int h)(package private) static booleanforce3D(javax.swing.JComponent c)Checks and returns whether we have a custom hint that forces the 3D mode.(package private) static booleanforceFlat(javax.swing.JComponent c)Checks and returns whether we have a custom hint that prevents the 3D mode.(package private) static booleanis3D(java.lang.String keyPrefix)Checks and returns whether the specified component type has 3D effects.(package private) static booleanisLeftToRight(java.awt.Component c)
-
-
-
Field Detail
-
FRACTION_3D
private static final float FRACTION_3D
- See Also:
- Constant Field Values
-
-
Method Detail
-
drawDark3DBorder
static void drawDark3DBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawDisabledBorder
static void drawDisabledBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawFlush3DBorder
static void drawFlush3DBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawPressed3DBorder
static void drawPressed3DBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawButtonBorder
static void drawButtonBorder(java.awt.Graphics g, int x, int y, int w, int h, boolean active)
-
drawActiveButtonBorder
static void drawActiveButtonBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawDefaultButtonBorder
static void drawDefaultButtonBorder(java.awt.Graphics g, int x, int y, int w, int h, boolean active)
-
drawDefaultButtonPressedBorder
static void drawDefaultButtonPressedBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawThinFlush3DBorder
static void drawThinFlush3DBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
drawThinPressed3DBorder
static void drawThinPressed3DBorder(java.awt.Graphics g, int x, int y, int w, int h)
-
isLeftToRight
static boolean isLeftToRight(java.awt.Component c)
-
is3D
static boolean is3D(java.lang.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(JComponent),forceFlat(JComponent)
-
force3D
static boolean force3D(javax.swing.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(JComponent)
-
forceFlat
static boolean forceFlat(javax.swing.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:
force3D(JComponent)
-
add3DEffekt
private static void add3DEffekt(java.awt.Graphics g, java.awt.Rectangle r, boolean isHorizontal, java.awt.Color startC0, java.awt.Color stopC0, java.awt.Color startC1, java.awt.Color stopC1)
-
add3DEffekt
static void add3DEffekt(java.awt.Graphics g, java.awt.Rectangle r)
-
addLight3DEffekt
static void addLight3DEffekt(java.awt.Graphics g, java.awt.Rectangle r, boolean isHorizontal)
-
addLight3DEffekt
public static void addLight3DEffekt(java.awt.Graphics g, java.awt.Rectangle r)
-
drawRect
private static void drawRect(java.awt.Graphics g, int x, int y, int w, int h)
-
-