|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.mlf.metouia.borders.MetouiaBorderUtilities
This is a utility class for painting simple 3d borders, and providding common ones.
Constructor Summary | |
MetouiaBorderUtilities()
|
Method Summary | |
static void |
drawBevel3DBorder(java.awt.Graphics g,
int x,
int y,
int w,
int h,
java.awt.Color highlight,
java.awt.Color shadow,
java.awt.Color innerHighlight,
java.awt.Color innerShadow)
Draws a bevel 3d border with the specified colors. |
static void |
drawDisabledBorder(java.awt.Graphics g,
int x,
int y,
int w,
int h)
Draws a disabled simple 3d border. |
static void |
drawSimple3DBorder(java.awt.Graphics g,
int x,
int y,
int w,
int h,
java.awt.Color highlight,
java.awt.Color shadow)
Draws a simple 3d border with specified colors. |
static javax.swing.border.Border |
getButtonBorder()
Gets a border instance for a button. |
static javax.swing.border.Border |
getDesktopIconBorder()
Gets a border instance for a desktop icon. |
static javax.swing.border.Border |
getTextBorder()
Gets a border instance for a text component. |
static javax.swing.border.Border |
getTextFieldBorder()
Gets a border instance for a text field component. |
static javax.swing.border.Border |
getToggleButtonBorder()
Gets a border instance for a toggle button. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetouiaBorderUtilities()
Method Detail |
public static void drawDisabledBorder(java.awt.Graphics g, int x, int y, int w, int h)
g
- The graphics context.x
- The x coordinate of the top left corner.y
- The y coordinate of the top left corner.w
- The width.h
- The height.public static final void drawSimple3DBorder(java.awt.Graphics g, int x, int y, int w, int h, java.awt.Color highlight, java.awt.Color shadow)
g
- The graphics context.x
- The x coordinate of the top left corner.y
- The y coordinate of the top left corner.w
- The width.h
- The height.highlight
- The highlight color to use.shadow
- The shadow color to use.public static final void drawBevel3DBorder(java.awt.Graphics g, int x, int y, int w, int h, java.awt.Color highlight, java.awt.Color shadow, java.awt.Color innerHighlight, java.awt.Color innerShadow)
g
- The graphics context.x
- The x coordinate of the top left corner.y
- The y coordinate of the top left corner.w
- The width.h
- The height.highlight
- The highlight color to use.shadow
- The shadow color to use.innerHighlight
- The inner highlight color to use.innerShadow
- The inner shadow color to use.public static javax.swing.border.Border getButtonBorder()
public static javax.swing.border.Border getTextBorder()
public static javax.swing.border.Border getTextFieldBorder()
public static javax.swing.border.Border getToggleButtonBorder()
public static javax.swing.border.Border getDesktopIconBorder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |