|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.memoire.bu
Class BuLib

java.lang.Objectcom.memoire.fu.FuLib
com.memoire.bu.BuLib
- public class BuLib
- extends com.memoire.fu.FuLib
Utility class with only static methods. For small and useful services.
| Field Summary | |
static java.lang.String[] |
BU_CLASSES
|
static java.awt.Frame |
HELPER
|
private static java.lang.Object |
key_
|
private static java.lang.String |
NO_AUTO_MNEMONIC
|
private static java.lang.reflect.Method |
set_rh_
|
static java.lang.String[] |
SWING_CLASSES
|
private static java.lang.Object |
value_off_
|
private static java.lang.Object |
value_on_
|
| Fields inherited from class com.memoire.fu.FuLib |
FU_CLASSES, JAVA_CLASSES |
| Constructor Summary | |
BuLib()
|
|
| Method Summary | |
static java.lang.String |
candidateMnemonics(java.lang.String _s)
|
static void |
centerComponent(java.awt.Component _c)
Center a component on its parent or the screen. |
static void |
computeMnemonics(java.awt.Container _rootpane)
|
static void |
computeMnemonics(java.awt.Container _rootpane,
java.awt.event.ActionListener _al)
|
static java.awt.Font |
deriveFont(java.awt.Font _ft,
int _size)
To get a font of the same family than an other but a little differente in size. |
static java.awt.Font |
deriveFont(java.awt.Font _ft,
int _style,
int _size)
To get a font of the same family than an other but a little difference in size or style. |
static java.awt.Font |
deriveFont(java.lang.String _key,
int _size)
To get a font of the same family than an other but a little differente in size. |
static java.awt.Font |
deriveFont(java.lang.String _key,
int _style,
int _size)
To get a font of the same family than an other but a little differente in size or style. |
private static void |
enableRecursively(java.awt.Component _r,
boolean _b)
|
static javax.swing.ImageIcon |
filter(javax.swing.JComponent _comp,
javax.swing.ImageIcon _icon,
java.awt.image.ImageFilter _filter)
|
static java.awt.Component |
findNamedComponent(java.awt.Container _parent,
java.lang.String _name)
Find a named component. |
static java.util.Vector |
getAllSubComponents(java.awt.Container _parent)
Returns all subcomponents of a container. |
private static void |
getAllSubComponents(java.util.Vector _v,
java.awt.Container _parent)
Internal use. |
static boolean |
getAutoMnemonic(javax.swing.JComponent _c)
|
static java.awt.Color |
getColor(java.awt.Color _c)
|
static java.awt.Color |
getColor(java.awt.Color _c,
boolean _e)
Adapts a color according to the theme filters. |
static java.awt.FontMetrics |
getFontMetrics(javax.swing.JComponent _comp)
|
static java.awt.FontMetrics |
getFontMetrics(javax.swing.JComponent _comp,
java.awt.Font _font)
|
static int |
getTabPlacement()
To get the tab placement customized by the user. |
static boolean |
isKunststoff()
|
static boolean |
isMetal()
|
static boolean |
isMotif()
|
static boolean |
isSlaf()
|
static boolean |
isSwing10()
|
static boolean |
isSwing11()
|
static boolean |
isUndecorated(java.awt.Window _w)
Returns the undecorated attribute of a dialog or a frame. |
static BuIcon |
loadCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given by an actionCommand. |
static BuIcon |
loadFrameCommandIcon(java.lang.String _cmd)
Deprecated. use BuResource.BU.loadBarCommandIcon(String) |
static BuIcon |
loadMenuCommandIcon(java.lang.String _cmd)
Deprecated. use BuResource.BU.loadMenuCommandIcon(String) |
static BuIcon |
loadToolCommandIcon(java.lang.String _cmd)
Deprecated. use BuResource.BU.loadToolCommandIcon(String) |
static java.awt.Color |
mixColors(java.awt.Color _a,
java.awt.Color _b)
|
static int |
mixColors(int _rgb1,
int _rgb2)
|
static void |
setAntialiasing(java.awt.Graphics _g)
Activates antialiasing. |
static void |
setAntialiasing(java.awt.Graphics _g,
boolean _e)
Enables or disables antialiasing. |
static void |
setAutoMnemonic(javax.swing.JComponent _c,
boolean _b)
|
static void |
setColor(java.awt.Graphics _g,
java.awt.Color _c)
|
static void |
setColor(java.awt.Graphics _g,
java.awt.Color _c,
boolean _e)
Sets color to a graphics. |
static void |
setDoubleBuffered(java.awt.Container _parent,
boolean _b)
Set/unset double-buffering for a tree of components. |
static void |
setFullScreen(java.awt.Window _w)
|
static void |
setIcon(javax.swing.AbstractButton _button,
BuIcon _icon)
Sets icons for an abstract button (button, menuitem, ...). |
static void |
setRecursiveEnabled(java.awt.Component _r,
boolean _b)
Enables a component and all his children, grand-children... |
static void |
setUndecorated(java.awt.Window _w,
boolean _s)
Sets undecorated attribute of a dialog or a frame. |
static java.lang.String |
simplifyComponentName(java.lang.String _name)
Simplifies a component name by removing any lowercase letter at the beginning. |
| Methods inherited from class com.memoire.fu.FuLib |
calendarCET, classExists, classInstance, clean, codeLocation, createURL, createURL, currentTimeMillis, currentTimeSeconds, date, date, date, decode, duration, encode, expandedPath, fileName, getArray, getParentFile, getProperties, getSystemProperty, getUserHome, isGziped, isLinux, isMachintosh, isUnix, isWindows, jdk, join, main, reducedPath, remove, removeIgnoreCase, replace, replaceIgnoreCase, runProgramm, runShellCommand, split, time, time, time, toURL, verifyMemory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
HELPER
public static final java.awt.Frame HELPER
key_
private static java.lang.Object key_
value_on_
private static java.lang.Object value_on_
value_off_
private static java.lang.Object value_off_
set_rh_
private static java.lang.reflect.Method set_rh_
NO_AUTO_MNEMONIC
private static final java.lang.String NO_AUTO_MNEMONIC
- See Also:
- Constant Field Values
BU_CLASSES
public static final java.lang.String[] BU_CLASSES
SWING_CLASSES
public static final java.lang.String[] SWING_CLASSES
| Constructor Detail |
BuLib
public BuLib()
| Method Detail |
getFontMetrics
public static java.awt.FontMetrics getFontMetrics(javax.swing.JComponent _comp)
getFontMetrics
public static java.awt.FontMetrics getFontMetrics(javax.swing.JComponent _comp, java.awt.Font _font)
loadCommandIcon
public static BuIcon loadCommandIcon(java.lang.String _cmd)
- Load an icon from a file which the name is given
by an actionCommand.
loadMenuCommandIcon
public static BuIcon loadMenuCommandIcon(java.lang.String _cmd)
- Deprecated. use BuResource.BU.loadMenuCommandIcon(String)
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the menu icon size.
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the menu icon size.
loadToolCommandIcon
public static BuIcon loadToolCommandIcon(java.lang.String _cmd)
- Deprecated. use BuResource.BU.loadToolCommandIcon(String)
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the tool icon size.
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the tool icon size.
loadFrameCommandIcon
public static BuIcon loadFrameCommandIcon(java.lang.String _cmd)
- Deprecated. use BuResource.BU.loadBarCommandIcon(String)
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the bar icon size.
- Load an icon from a file which the name is given by an actionCommand and reduce it according to the bar icon size.
deriveFont
public static java.awt.Font deriveFont(java.lang.String _key, int _size)
- To get a font of the same family than an other but
a little differente in size.
deriveFont
public static java.awt.Font deriveFont(java.lang.String _key, int _style, int _size)
- To get a font of the same family than an other but
a little differente in size or style.
deriveFont
public static java.awt.Font deriveFont(java.awt.Font _ft, int _size)
- To get a font of the same family than an other but
a little differente in size.
deriveFont
public static java.awt.Font deriveFont(java.awt.Font _ft, int _style, int _size)
- To get a font of the same family than an other but
a little difference in size or style.
getTabPlacement
public static int getTabPlacement()
- To get the tab placement customized by the user.
(SwingConstants.LEFT, TOP, ...)
getAllSubComponents
private static void getAllSubComponents(java.util.Vector _v, java.awt.Container _parent)
- Internal use.
getAllSubComponents
public static java.util.Vector getAllSubComponents(java.awt.Container _parent)
- Returns all subcomponents of a container.
setDoubleBuffered
public static void setDoubleBuffered(java.awt.Container _parent, boolean _b)
- Set/unset double-buffering for a tree of components.
Except JPopupMenu and Window.
centerComponent
public static void centerComponent(java.awt.Component _c)
- Center a component on its parent or the screen.
simplifyComponentName
public static java.lang.String simplifyComponentName(java.lang.String _name)
- Simplifies a component name by removing any lowercase letter
at the beginning. btOPEN -> OPEN
findNamedComponent
public static java.awt.Component findNamedComponent(java.awt.Container _parent, java.lang.String _name)
- Find a named component.
enableRecursively
private static void enableRecursively(java.awt.Component _r, boolean _b)
setRecursiveEnabled
public static void setRecursiveEnabled(java.awt.Component _r, boolean _b)
- Enables a component and all his children, grand-children...
isUndecorated
public static final boolean isUndecorated(java.awt.Window _w)
- Returns the undecorated attribute of a dialog or a frame.
setUndecorated
public static final void setUndecorated(java.awt.Window _w, boolean _s)
- Sets undecorated attribute of a dialog or a frame.
setFullScreen
public static final void setFullScreen(java.awt.Window _w)
filter
public static final javax.swing.ImageIcon filter(javax.swing.JComponent _comp, javax.swing.ImageIcon _icon, java.awt.image.ImageFilter _filter)
setIcon
public static void setIcon(javax.swing.AbstractButton _button, BuIcon _icon)
- Sets icons for an abstract button (button, menuitem, ...).
mixColors
public static int mixColors(int _rgb1,
int _rgb2)
mixColors
public static java.awt.Color mixColors(java.awt.Color _a, java.awt.Color _b)
setColor
public static void setColor(java.awt.Graphics _g, java.awt.Color _c)
setColor
public static void setColor(java.awt.Graphics _g, java.awt.Color _c, boolean _e)
- Sets color to a graphics.
getColor
public static java.awt.Color getColor(java.awt.Color _c)
getColor
public static java.awt.Color getColor(java.awt.Color _c, boolean _e)
- Adapts a color according to the theme filters.
setAntialiasing
public static void setAntialiasing(java.awt.Graphics _g)
- Activates antialiasing.
setAntialiasing
public static void setAntialiasing(java.awt.Graphics _g, boolean _e)
- Enables or disables antialiasing.
setAutoMnemonic
public static void setAutoMnemonic(javax.swing.JComponent _c, boolean _b)
getAutoMnemonic
public static boolean getAutoMnemonic(javax.swing.JComponent _c)
computeMnemonics
public static void computeMnemonics(java.awt.Container _rootpane)
computeMnemonics
public static void computeMnemonics(java.awt.Container _rootpane, java.awt.event.ActionListener _al)
candidateMnemonics
public static java.lang.String candidateMnemonics(java.lang.String _s)
isMetal
public static boolean isMetal()
isMotif
public static boolean isMotif()
isSlaf
public static boolean isSlaf()
isKunststoff
public static boolean isKunststoff()
isSwing10
public static boolean isSwing10()
isSwing11
public static boolean isSwing11()
|
|||||||||
| Home >> All >> com >> memoire >> [ bu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC