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 voidadd3DEffekt(Graphics g, Rectangle r) private static voidadd3DEffekt(Graphics g, Rectangle r, boolean isHorizontal, Color startC0, Color stopC0, Color startC1, Color stopC1) static void(package private) static voidaddLight3DEffekt(Graphics g, Rectangle r, boolean isHorizontal) (package private) static voiddrawActiveButtonBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawButtonBorder(Graphics g, int x, int y, int w, int h, boolean active) (package private) static voiddrawDark3DBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawDefaultButtonBorder(Graphics g, int x, int y, int w, int h, boolean active) (package private) static voiddrawDefaultButtonPressedBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawDisabledBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawFlush3DBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawPressed3DBorder(Graphics g, int x, int y, int w, int h) private static void(package private) static voiddrawThinFlush3DBorder(Graphics g, int x, int y, int w, int h) (package private) static voiddrawThinPressed3DBorder(Graphics g, int x, int y, int w, int h) (package private) static booleanChecks and returns whether we have a custom hint that forces the 3D mode.(package private) static booleanChecks and returns whether we have a custom hint that prevents the 3D mode.(package private) static booleanChecks 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
-