com.jmex.bui.provider
Interface ResourceProvider

All Known Implementing Classes:
DefaultResourceProvider

public interface ResourceProvider

Removed from BStyleSheet and made into its own class

An interface used by the stylesheet to obtain font and image resources.

Since:
Oct 9, 2008 - 11:25:12 AM
Author:
torr

Method Summary
 BTextFactory createTextFactory(java.lang.String family, java.lang.String style, int size)
          Creates a factory that will render text using the specified font.
 BCursor loadCursor(java.lang.String name)
          Loads the cursor with the specified name.
 BImage loadImage(java.lang.String path)
          Loads the image with the specified path.
 

Method Detail

createTextFactory

BTextFactory createTextFactory(java.lang.String family,
                               java.lang.String style,
                               int size)
Creates a factory that will render text using the specified font.

Parameters:
family - String
style - String
size - int
Returns:
BTextFactory btf

loadImage

BImage loadImage(java.lang.String path)
                 throws java.io.IOException
Loads the image with the specified path.

Parameters:
path - String
Returns:
BImage
Throws:
java.io.IOException - io

loadCursor

BCursor loadCursor(java.lang.String name)
                   throws java.io.IOException
Loads the cursor with the specified name.

Parameters:
name - String
Returns:
BCursor
Throws:
java.io.IOException - io


Copyright © 2011 Michael Bayne. All Rights Reserved.