org.cybergarage.upnp.Device.getIconList()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中org.cybergarage.upnp.Device.getIconList()方法的一些代码示例,展示了Device.getIconList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.getIconList()方法的具体详情如下:
包路径:org.cybergarage.upnp.Device
类名称:Device
方法名:getIconList

Device.getIconList介绍

暂无

代码示例

代码示例来源:origin: i2p/i2p.i2p

public Icon getIcon(int n) {
  IconList iconList = getIconList();
  if (n < 0 && (iconList.size() - 1) < n)
    return null;
  return iconList.getIcon(n);
}

代码示例来源:origin: i2p/i2p.i2p

public Icon getIconByURI(String uri) {
  IconList iconList = getIconList();
  if (iconList.size() <= 0)
    return null;
  int nIcon = iconList.size();
  for (int n = 0; n < nIcon; n++) {
    Icon icon = iconList.getIcon(n);
    if (icon.isURL(uri))
      return icon;
  }
  
  return null;
}

代码示例来源:origin: i2p/i2p.i2p

public Icon getSmallestIcon() {
  Icon smallestIcon = null;
  IconList iconList = getIconList();
  int iconCount = iconList.size();
  for (int n = 0; n < iconCount; n++) {
    Icon icon = iconList.getIcon(n);
    if (null == smallestIcon) {
      smallestIcon = icon;
      continue;
    }
    if (icon.getWidth() < smallestIcon.getWidth())
      smallestIcon = icon;
  }
  return smallestIcon;
}

代码示例来源:origin: geniusgithub/MediaPlayer

public Icon getIcon(int n) {
  IconList iconList = getIconList();
  if (n < 0 && (iconList.size() - 1) < n)
    return null;
  return iconList.getIcon(n);
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public Icon getIcon(int n) {
  IconList iconList = getIconList();
  if (n < 0 && (iconList.size() - 1) < n)
    return null;
  return iconList.getIcon(n);
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public Icon getIconByURI(String uri) {
  IconList iconList = getIconList();
  if (iconList.size() <= 0)
    return null;
  int nIcon = iconList.size();
  for (int n = 0; n < nIcon; n++) {
    Icon icon = iconList.getIcon(n);
    if (icon.isURL(uri))
      return icon;
  }
  
  return null;
}

代码示例来源:origin: geniusgithub/MediaPlayer

public Icon getIconByURI(String uri) {
  IconList iconList = getIconList();
  if (iconList.size() <= 0)
    return null;
  int nIcon = iconList.size();
  for (int n = 0; n < nIcon; n++) {
    Icon icon = iconList.getIcon(n);
    if (icon.isURL(uri))
      return icon;
  }
  
  return null;
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public Icon getSmallestIcon() {
  Icon smallestIcon = null;
  IconList iconList = getIconList();
  int iconCount = iconList.size();
  for (int n = 0; n < iconCount; n++) {
    Icon icon = iconList.getIcon(n);
    if (null == smallestIcon) {
      smallestIcon = icon;
      continue;
    }
    if (icon.getWidth() < smallestIcon.getWidth())
      smallestIcon = icon;
  }
  return smallestIcon;
}

代码示例来源:origin: geniusgithub/MediaPlayer

public Icon getSmallestIcon() {
  Icon smallestIcon = null;
  IconList iconList = getIconList();
  int iconCount = iconList.size();
  for (int n = 0; n < iconCount; n++) {
    Icon icon = iconList.getIcon(n);
    if (null == smallestIcon) {
      smallestIcon = icon;
      continue;
    }
    if (icon.getWidth() < smallestIcon.getWidth())
      smallestIcon = icon;
  }
  return smallestIcon;
}

代码示例来源:origin: cybergarage/cybergarage-upnp

void updateIconList(TreeNode parentNode, Device device)
{
  IconList iconList = device.getIconList();
  int nIcons = iconList.size();
  for (int n=0; n<nIcons; n++) {
    Icon icon = iconList.getIcon(n);
    String url = icon.getURL();
    TreeNode iconNode = new TreeNode(url);
    iconNode.setUserData(icon);
    parentNode.add(iconNode);
  }
}

代码示例来源:origin: apache/felix

IconList iconsList = dev.getIconList();
if (iconsList.size() != 0) {
  for (int i = 0; i < iconsList.size(); i++) {

代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver

IconList iconsList = dev.getIconList();
if (iconsList.size() != 0) {
  for (int i = 0; i < iconsList.size(); i++) {

相关文章

Device类方法