示例#1
0
  public static Image get(ImageType imageType) {
    assertNotNull(imageType, "iamgeType");
    final Image image = images[imageType.ordinal()];
    assertNotNull(image, imageType.toString());

    return image;
  }
示例#2
0
 public static void loadImageResources() throws IOException {
   final ClassLoader cl = Images.class.getClassLoader();
   for (ImageType imageType : ImageType.values()) {
     images[imageType.ordinal()] = readFromImageDir(imageType.getFileName());
   }
 }