Package util.ui

Examples of util.ui.FixedSizeIcon


  public Icon getIcon() {
    try {
      Icon icon = mSettingsTab.getIcon();
      if (icon != null) {
        return new FixedSizeIcon(16, 16, icon);
      }
      return icon;
    }catch(Throwable t) {
      mLog.log(Level.WARNING, "Could not get settings icon", t);
      return null;
View Full Code Here


          Action action = actionMenu.getAction();
          if (action != null) {
            text.append((String) action.getValue(Action.NAME));
            icon = (Icon) action.getValue(Action.SMALL_ICON);
            if (icon != null) {
              icon = new FixedSizeIcon(16, 16, icon);
            }
          } else if (menuIf instanceof PluginProxy) {
            text.append(((PluginProxy) menuIf).getInfo().getName());
            icon = ((PluginProxy) menuIf).getMarkIcon();
          } else {
View Full Code Here

    JMenuItem result;
    Icon icon = (Icon) menu.getAction().getValue(Action.SMALL_ICON);
    if (icon != null) {
      // resize any icon that is not a channel icon
      if (icon.getIconWidth() != 42 || icon.getIconHeight() != 22) {
        icon = new FixedSizeIcon(16, 16, icon);
      }
    }
    if (menu.hasSubItems()) {
      result = new ScrollableMenu(menu.getTitle());
View Full Code Here

      if (value instanceof PluginProxy) {
        PluginProxy plugin = (PluginProxy) value;

        iconValue = plugin.getPluginIcon();
        if (iconValue != null) {
          iconValue = new FixedSizeIcon(16, 16, iconValue);
        }
        descValue = plugin.getInfo().getDescription().replace('\n', ' ');

        isActivated = plugin.isActivated();
View Full Code Here

    };
    action.putValue(Action.NAME, mLocalizer.msg("0", "IMDb ratings"));
    action.putValue(Action.SHORT_DESCRIPTION, getInfo().getDescription());
    Icon icon = ImageUtilities.createImageIconFromJar("de/kunysch/localimdb/localimdb.png", getClass());
    action.putValue(Action.SMALL_ICON, icon);
    action.putValue(BIG_ICON, new FixedSizeIcon(24, 24, icon));
    return new ActionMenu(action);
  }
View Full Code Here

TOP

Related Classes of util.ui.FixedSizeIcon

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.