Example #1
0
 @Override
 public Lookup getLookup() {
   Integer w = getInteger(width.getValue());
   Integer h = getInteger(height.getValue());
   List<Object> items = new ArrayList<Object>();
   if (w != null && h != null) {
     items.add(new ClientConfiguration.Dimension(w, h));
   }
   Integer rot = getInteger(rotation.getValue());
   if (rot != null) {
     switch (rot) {
       case 90:
         items.add(ClientConfiguration.Rotation.DEG_90);
         break;
       case 180:
         items.add(ClientConfiguration.Rotation.DEG_180);
         break;
       case 270:
         items.add(ClientConfiguration.Rotation.DEG_270);
         break;
     }
   }
   Integer dev = getInteger(device.getValue());
   if (dev != null) {
     items.add(new ClientConfiguration.DeviceIndex(dev - 1));
   }
   items.add(wHints);
   return InstanceLookup.create(items.toArray());
 }
Example #2
0
 @Override
 public Lookup getLookup() {
   if (lookup == null) {
     lookup = InstanceLookup.create(super.getLookup(), audioCtxt);
   }
   return lookup;
 }