コード例 #1
0
 public Icon getIcon() {
   try {
     return defPC.getReadablePreset(pm.getValue()).getIcon();
   } catch (NoSuchPresetException e) {
   } catch (ParameterUnavailableException e) {
   }
   return null;
 }
コード例 #2
0
 public String getToolTipText() {
   try {
     return defPC.getReadablePreset(pm.getValue()).getToolTipText();
   } catch (NoSuchPresetException e) {
   } catch (ParameterUnavailableException e) {
   }
   return "";
 }
コード例 #3
0
 public String toString() {
   Integer pn = IntPool.get(0);
   try {
     pn = pm.getValue();
     return new AggRemoteName(pn, defPC.getPresetName(pm.getValue())).toString();
   } catch (ParameterUnavailableException e) {
     // e.printStackTrace();
   } catch (NoSuchPresetException e) {
   } catch (PresetEmptyException e) {
     return new AggRemoteName(pn, DeviceContext.EMPTY_PRESET).toString();
   }
   return pn.toString();
 }