示例#1
0
 protected Icon findUsableIcon(Device device) {
   // Needs to be certain format and size
   for (Object o : device.getIcons()) {
     Icon icon = (Icon) o;
     if (icon.getWidth() <= 64 && icon.getHeight() <= 64 && isUsableImageType(icon.getMimeType()))
       return icon;
   }
   return null;
 }
示例#2
0
 @Override
 public String getMimeType() {
   return icon.getMimeType().toString();
 }