net.ctdp.rfdynhud.render
Class BorderCache

java.lang.Object
  extended by net.ctdp.rfdynhud.render.BorderCache

public class BorderCache
extends java.lang.Object

The BorderCache is used to load borders only once.

Author:
Marvin Froehlich (CTDP)

Constructor Summary
BorderCache()
           
 
Method Summary
static BorderWrapper getBorder(java.io.File bordersBolder, java.lang.String iniFilename, IntProperty paddingTop, IntProperty paddingLeft, IntProperty paddingRight, IntProperty paddingBottom)
          Gets or creates a TexturedBorder with the given side widths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderCache

public BorderCache()
Method Detail

getBorder

public static BorderWrapper getBorder(java.io.File bordersBolder,
                                      java.lang.String iniFilename,
                                      IntProperty paddingTop,
                                      IntProperty paddingLeft,
                                      IntProperty paddingRight,
                                      IntProperty paddingBottom)
Gets or creates a TexturedBorder with the given side widths.

Parameters:
bordersBolder -
iniFilename - the ini filename
paddingTop - top padding property
paddingLeft - left padding property
paddingRight - right padding property
paddingBottom - bottom padding property
Returns:
the border