Package com.jgoodies.looks.plastic
Class PlasticUtils
java.lang.Object
com.jgoodies.looks.plastic.PlasticUtils
Consists exclusively of static methods that provide convenience behavior.
- Version:
- $Revision: 1.9 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
add3DEffekt
(Graphics g, Rectangle r) private static void
add3DEffekt
(Graphics g, Rectangle r, boolean isHorizontal, Color startC0, Color stopC0, Color startC1, Color stopC1) static void
(package private) static void
addLight3DEffekt
(Graphics g, Rectangle r, boolean isHorizontal) (package private) static void
drawActiveButtonBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawButtonBorder
(Graphics g, int x, int y, int w, int h, boolean active) (package private) static void
drawDark3DBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawDefaultButtonBorder
(Graphics g, int x, int y, int w, int h, boolean active) (package private) static void
drawDefaultButtonPressedBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawDisabledBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawFlush3DBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawPressed3DBorder
(Graphics g, int x, int y, int w, int h) private static void
(package private) static void
drawThinFlush3DBorder
(Graphics g, int x, int y, int w, int h) (package private) static void
drawThinPressed3DBorder
(Graphics g, int x, int y, int w, int h) (package private) static boolean
Checks and returns whether we have a custom hint that forces the 3D mode.(package private) static boolean
Checks and returns whether we have a custom hint that prevents the 3D mode.(package private) static boolean
Checks and returns whether the specified component type has 3D effects.(package private) static boolean
-
Field Details
-
FRACTION_3D
private static final float FRACTION_3D- See Also:
-
-
Constructor Details
-
PlasticUtils
private PlasticUtils()
-
-
Method Details
-
drawDark3DBorder
-
drawDisabledBorder
-
drawFlush3DBorder
-
drawPressed3DBorder
-
drawButtonBorder
-
drawActiveButtonBorder
-
drawDefaultButtonBorder
-
drawDefaultButtonPressedBorder
-
drawThinFlush3DBorder
-
drawThinPressed3DBorder
-
isLeftToRight
-
is3D
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
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
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
-
add3DEffekt
-
addLight3DEffekt
-
addLight3DEffekt
-
drawRect
-