java.lang.Object
com.memoire.fu.FuResource
com.memoire.bu.BuResource
- public class BuResource
- extends com.memoire.fu.FuResource
Utility class to manage resources.
As images, icons, localized strings, ...
|
Method Summary |
java.lang.String |
adjust(java.lang.String _path)
|
BuIcon |
getBarIcon(java.lang.String _path)
Deprecated. |
java.awt.Cursor |
getCursor(java.lang.String _path,
int _dx,
int _dy)
|
java.awt.Cursor |
getCursor(java.lang.String _path,
int _size,
java.awt.Point _spot)
|
java.awt.Cursor |
getCursor(java.lang.String _path,
int _size,
java.awt.Point _spot,
int _default)
|
java.net.URL |
getDefaultBase()
|
int |
getDefaultCursorSize()
|
int |
getDefaultFrameSize()
|
int |
getDefaultMenuSize()
|
int |
getDefaultSize()
|
int |
getDefaultTabSize()
|
int |
getDefaultToolSize()
|
BuIcon |
getFrameIcon(java.lang.String _path)
|
BuIcon |
getIcon(java.lang.String _path)
|
BuIcon |
getIcon(java.lang.String _path,
int _size)
|
BuIcon |
getIcon(java.net.URL _url)
|
private BuIcon |
getIcon0(java.lang.String _path)
|
java.awt.Image |
getImage(java.lang.String _path)
|
java.awt.Image |
getImage(java.lang.String _path,
int _size)
|
BuIcon |
getMenuIcon(java.lang.String _path)
|
BuResource |
getParent()
|
java.io.InputStream |
getStream(java.lang.String _path)
|
java.lang.String |
getString(java.lang.String _s)
|
BuIcon |
getTabIcon(java.lang.String _path)
|
BuIcon |
getToolIcon(java.lang.String _path)
|
java.net.URL |
getURL(java.lang.String _path)
|
BuIcon |
loadBarCommandIcon(java.lang.String _cmd)
Deprecated. |
BuIcon |
loadCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given
by an actionCommand. |
BuIcon |
loadFrameCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
frame icon size. |
BuIcon |
loadMenuCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
menu icon size. |
BuIcon |
loadTabCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
tab icon size. |
BuIcon |
loadToolCommandIcon(java.lang.String _cmd)
Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
tool icon size. |
static void |
main(java.lang.String[] argv)
|
BuIcon |
reduceFrameIcon(BuIcon _icon)
|
BuIcon |
reduceMenuIcon(BuIcon _icon)
|
BuIcon |
reduceTabIcon(BuIcon _icon)
|
BuIcon |
reduceToolIcon(BuIcon _icon)
|
static BuIcon |
resizeIcon(BuIcon _icon,
int _size)
|
void |
setDefaultBase(java.net.URL _v)
|
void |
setDefaultCursorSize(int _v)
|
void |
setDefaultFrameSize(int _v)
|
void |
setDefaultMenuSize(int _v)
|
void |
setDefaultSize(int _v)
|
void |
setDefaultTabSize(int _v)
|
void |
setDefaultToolSize(int _v)
|
void |
setParent(BuResource _parent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BU
public static final BuResource BU
defaultBase_
private java.net.URL defaultBase_
parent_
private BuResource parent_
global_
private static java.util.Hashtable global_
local_
private java.util.Hashtable local_
resized_
private static java.util.Hashtable resized_
BuResource
public BuResource()
getDefaultSize
public int getDefaultSize()
setDefaultSize
public void setDefaultSize(int _v)
getDefaultMenuSize
public int getDefaultMenuSize()
setDefaultMenuSize
public void setDefaultMenuSize(int _v)
getDefaultToolSize
public int getDefaultToolSize()
setDefaultToolSize
public void setDefaultToolSize(int _v)
getDefaultFrameSize
public int getDefaultFrameSize()
setDefaultFrameSize
public void setDefaultFrameSize(int _v)
getDefaultTabSize
public int getDefaultTabSize()
setDefaultTabSize
public void setDefaultTabSize(int _v)
getDefaultCursorSize
public int getDefaultCursorSize()
setDefaultCursorSize
public void setDefaultCursorSize(int _v)
getDefaultBase
public java.net.URL getDefaultBase()
setDefaultBase
public void setDefaultBase(java.net.URL _v)
getParent
public BuResource getParent()
setParent
public void setParent(BuResource _parent)
getURL
public java.net.URL getURL(java.lang.String _path)
adjust
public java.lang.String adjust(java.lang.String _path)
getStream
public java.io.InputStream getStream(java.lang.String _path)
getImage
public java.awt.Image getImage(java.lang.String _path,
int _size)
getImage
public java.awt.Image getImage(java.lang.String _path)
getIcon
public BuIcon getIcon(java.lang.String _path,
int _size)
getIcon
public BuIcon getIcon(java.lang.String _path)
getIcon0
private BuIcon getIcon0(java.lang.String _path)
getMenuIcon
public BuIcon getMenuIcon(java.lang.String _path)
getToolIcon
public BuIcon getToolIcon(java.lang.String _path)
getBarIcon
public BuIcon getBarIcon(java.lang.String _path)
- Deprecated.
getFrameIcon
public BuIcon getFrameIcon(java.lang.String _path)
getTabIcon
public BuIcon getTabIcon(java.lang.String _path)
reduceMenuIcon
public BuIcon reduceMenuIcon(BuIcon _icon)
reduceToolIcon
public BuIcon reduceToolIcon(BuIcon _icon)
reduceFrameIcon
public BuIcon reduceFrameIcon(BuIcon _icon)
reduceTabIcon
public BuIcon reduceTabIcon(BuIcon _icon)
resizeIcon
public static final BuIcon resizeIcon(BuIcon _icon,
int _size)
getIcon
public BuIcon getIcon(java.net.URL _url)
loadCommandIcon
public BuIcon loadCommandIcon(java.lang.String _cmd)
- Load an icon from a file which the name is given
by an actionCommand.
loadMenuCommandIcon
public BuIcon loadMenuCommandIcon(java.lang.String _cmd)
- 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 BuIcon loadToolCommandIcon(java.lang.String _cmd)
- Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
tool icon size.
loadBarCommandIcon
public BuIcon loadBarCommandIcon(java.lang.String _cmd)
- Deprecated.
loadFrameCommandIcon
public BuIcon loadFrameCommandIcon(java.lang.String _cmd)
- Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
frame icon size.
loadTabCommandIcon
public BuIcon loadTabCommandIcon(java.lang.String _cmd)
- Load an icon from a file which the name is given
by an actionCommand and reduce it according to the
tab icon size.
getCursor
public java.awt.Cursor getCursor(java.lang.String _path,
int _dx,
int _dy)
getCursor
public java.awt.Cursor getCursor(java.lang.String _path,
int _size,
java.awt.Point _spot)
getCursor
public java.awt.Cursor getCursor(java.lang.String _path,
int _size,
java.awt.Point _spot,
int _default)
getString
public final java.lang.String getString(java.lang.String _s)
main
public static void main(java.lang.String[] argv)