예제 #1
0
 @Override
 public void setAttributes(Map<String, String> attributes) {
   String filepath = attributes.get("Image Filepath");
   if (filepath != null) {
     image = ResourceManager.getImage(filepath);
   }
 }
예제 #2
0
 public ImageRenderer(String filepath) {
   this(ResourceManager.getImage(filepath));
 }