Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | Static Private Attributes | List of all members
rabbitescape.ui.swing.SwingBitmapLoader Class Reference
Inheritance diagram for rabbitescape.ui.swing.SwingBitmapLoader:
Inheritance graph
[legend]
Collaboration diagram for rabbitescape.ui.swing.SwingBitmapLoader:
Collaboration graph
[legend]

Public Member Functions

SwingBitmap load (String name, int tileSize)
 
int sizeFor (int tileSize)
 

Static Private Attributes

static int[] SIZES = new int[] { 32, 64, 128 }
 

Member Function Documentation

SwingBitmap rabbitescape.ui.swing.SwingBitmapLoader.load ( String  fileName,
int  tileSize 
)
Parameters
fileNamethe thing to load
tileSizethe tileSize you will use: MUST be a value got from a previous call to sizeFor().
Returns
a loaded bitmap

Implements rabbitescape.render.BitmapLoader< T extends Bitmap >.

int rabbitescape.ui.swing.SwingBitmapLoader.sizeFor ( int  tileSize)
Returns
the recommended tile size to ask for if you're going to scale your image to the supplied tileSize.

Implements rabbitescape.render.BitmapLoader< T extends Bitmap >.

Member Data Documentation

int [] rabbitescape.ui.swing.SwingBitmapLoader.SIZES = new int[] { 32, 64, 128 }
staticprivate

The documentation for this class was generated from the following file: