|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BStyleSheet.DefaultResourceProvider
public static class BStyleSheet.DefaultResourceProvider
A default implementation of the stylesheet resource provider.
| Field Summary | |
|---|---|
protected HashMap<String,WeakReference<BImage>> |
_cache
A cache of BImage instances. |
protected HashMap<String,WeakReference<BCursor>> |
_ccache
A cache of BCursor instances. |
| Constructor Summary | |
|---|---|
BStyleSheet.DefaultResourceProvider()
|
|
| Method Summary | |
|---|---|
BTextFactory |
createTextFactory(String family,
String style,
int size)
Creates a factory that will render text using the specified font. |
BCursor |
loadCursor(String path)
Loads the cursor with the specified name. |
BImage |
loadImage(String path)
Loads the image with the specified path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap<String,WeakReference<BImage>> _cache
BImage instances.
protected HashMap<String,WeakReference<BCursor>> _ccache
BCursor instances.
| Constructor Detail |
|---|
public BStyleSheet.DefaultResourceProvider()
| Method Detail |
|---|
public BTextFactory createTextFactory(String family,
String style,
int size)
BStyleSheet.ResourceProvider
createTextFactory in interface BStyleSheet.ResourceProvider
public BImage loadImage(String path)
throws IOException
BStyleSheet.ResourceProvider
loadImage in interface BStyleSheet.ResourceProviderIOException
public BCursor loadCursor(String path)
throws IOException
BStyleSheet.ResourceProvider
loadCursor in interface BStyleSheet.ResourceProviderIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||