Package org.openbp.common.icon

Examples of org.openbp.common.icon.MultiImageIcon


    {
      return (MultiIcon) icon;
    }
    else if (icon instanceof ImageIcon)
    {
      return new MultiImageIcon((ImageIcon) icon);
    }
    return null;
  }
View Full Code Here


    Object o = iconMap.get(key);
    if (o instanceof MultiImageIcon)
    {
      // Multi size icon, get the right size
      MultiImageIcon mii = (MultiImageIcon) o;
      if (preferredSize != FlexibleSize.UNDETERMINED)
      {
        return mii.getIcon(preferredSize);
      }
      return mii;
    }
    else if (o instanceof ImageIcon)
    {
View Full Code Here

   * @return The multi icon or null if the icon is not a MultiIcon or an ImageIcon
   */
  public static MultiIcon getMultiIcon(Icon icon)
  {
    if (icon instanceof ImageIcon)
      return new MultiImageIcon((ImageIcon) icon);

    if (icon instanceof MultiIcon)
      return (MultiIcon) icon;

    return null;
View Full Code Here

  protected Object loadResourceObject()
  {
    if (path == null)
      return null;

    MultiImageIcon image = new MultiImageIcon(path, getResourceCollection().getResourceCollectionMgr().getResourceMgr());
    return image;
  }
View Full Code Here

    g.setColor(color);
    g.fillRoundRect(0, 0, 31, 31, 16, 16);
    g.setColor(Color.BLACK);
    g.drawRoundRect(0, 0, 31, 31, 16, 16);

    return new MultiImageIcon(new ImageIcon(image));
  }
View Full Code Here

TOP

Related Classes of org.openbp.common.icon.MultiImageIcon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.