aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/craftgui/resource/StyleSheet.java
blob: 8685abd5bec4507658f19c83cfb03986498b751d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package binnie.craftgui.resource;

import java.util.HashMap;
import java.util.Map;

public class StyleSheet
  implements IStyleSheet
{
  protected Map<Object, Texture> textures = new HashMap();
  
  public Texture getTexture(Object key)
  {
    if (!this.textures.containsKey(key)) {
      return StyleSheetManager.getTexture(key);
    }
    return (Texture)this.textures.get(key);
  }
}