|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.awt.UIUtilities
public final class UIUtilities
Utilities for User-Interface.
Utility
,
SwingUtilities
Method Summary | |
---|---|
static void |
addLookAndFeelMenuItems(java.awt.Component root,
javax.swing.JMenu view)
Adds pluggable look-and-feel menu items to a menu. |
static void |
drawCenteredString(java.awt.Graphics g,
java.lang.String text,
int cx,
int cy)
draws a centered String. |
static java.awt.Frame |
getParentalFrame(java.awt.Component n)
Deprecated. Use SwingUtilities.getAncestorOfClass(Frame.class, n) instead. |
static java.awt.Window |
getParentalWindow(java.awt.Component n)
Deprecated. Use SwingUtilities.getAncestorOfClass(Window.class, n) instead. |
static java.lang.String |
info(java.beans.FeatureDescriptor desc)
Get Information on a feature descriptor. |
static java.lang.String |
info(java.beans.PropertyDescriptor desc)
Get Information on a property descriptor. |
static void |
printBean(java.lang.Class beanClass)
|
static void |
printBean(java.lang.Class beanClass,
java.io.PrintStream ps)
Print Information on a bean. |
static void |
setCenter(java.awt.Component comp)
Center a component on the screen. |
static void |
setCenter(java.awt.Component comp,
java.awt.Component parent)
Center a component within a parental component. |
static void |
setDefaultLookAndFeel()
Set the system default look and feel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setCenter(java.awt.Component comp, java.awt.Component parent)
comp
- the component to be centered.parent
- center relative to what. null
to center relative to screen.setCenter(Component)
public static void setCenter(java.awt.Component comp)
comp
- the component to be centered relative to the screen.
It must already have its final size set.public static void drawCenteredString(java.awt.Graphics g, java.lang.String text, int cx, int cy)
public static java.awt.Window getParentalWindow(java.awt.Component n)
SwingUtilities.getAncestorOfClass(Window.class, n)
instead.
Traverses parents until a Window is found.
null
if none.SwingUtilities.windowForComponent(java.awt.Component)
,
SwingUtilities.getAncestorOfClass(Class, Component)
public static java.awt.Frame getParentalFrame(java.awt.Component n)
SwingUtilities.getAncestorOfClass(Frame.class, n)
instead.
Traverses parents until a Frame is found.
null
if none.SwingUtilities.getAncestorOfClass(Class, Component)
public static void addLookAndFeelMenuItems(java.awt.Component root, javax.swing.JMenu view)
root
- which root component to set the look and feel for.view
- the menu to add the Look and Feel chooser items.public static void setDefaultLookAndFeel()
UIManager
public static void printBean(java.lang.Class beanClass)
public static void printBean(java.lang.Class beanClass, java.io.PrintStream ps)
public static java.lang.String info(java.beans.FeatureDescriptor desc)
public static java.lang.String info(java.beans.PropertyDescriptor desc)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |