|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.GuiHelper
various static method to provide functionality not immidiately available in Swing.
Constructor Summary | |
GuiHelper()
|
Method Summary | |
static void |
drawFocusRectangle(Graphics g,
int x,
int y,
int width,
int height)
Draw a focus rectangle, Focus color must be set before calling this function |
static String |
encodeColor(Color color)
This is the reverse of Color.decode() |
static int |
getWidthAsComponent(Object theObject)
|
static int |
getWidthAsComponent(Object theObject,
Font useFont)
Returns the width of the object when it would be drawn as a component (in a JTable). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GuiHelper()
Method Detail |
public static int getWidthAsComponent(Object theObject)
public static int getWidthAsComponent(Object theObject, Font useFont)
theObject
- this is the content. A String or an icon can be given.useFont
- provide a Font object that will be used to calculate the width when it turns out to be something that has to be rendered using a font (i.e. not an icon etc).
public static String encodeColor(Color color)
public static void drawFocusRectangle(Graphics g, int x, int y, int width, int height)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |