Package org.openbp.common.icon

Examples of org.openbp.common.icon.MultiIcon


   */
  protected void firePropertyBrowserEvent(Item item)
  {
    String title = null;
    String desc = null;
    MultiIcon icon = null;
    boolean readOnly = false;
    Item originalItem = item;

    if (item != null)
    {
View Full Code Here


      this.page = page;
      setPageNr(nr);

      setActionCommand(page.getUniqueId());

      MultiIcon icon = page.getIcon();
      JLabel iconLabel = new JLabel(icon.getIcon(buttonSize));
      iconLabel.setVerticalAlignment(SwingConstants.CENTER);
      iconLabel.setHorizontalAlignment(SwingConstants.CENTER);
      iconLabel.setForeground(Color.BLUE);
      iconLabel.setOpaque(false);
View Full Code Here

  public ParamReorderTracker(ModelerToolSupport toolSupport)
  {
    super(toolSupport);

    MultiIcon dragImage = ItemIconMgr.getMultiIcon(ItemIconMgr.getInstance().getIcon(ModelObjectSymbolNames.TYPE_ITEM, FlexibleSize.SMALL));
    accept = DragDropPane.acceptCursorPrototype.createCursor(dragImage);
    reject = DragDropPane.rejectCursorPrototype.createCursor(dragImage);
  }
View Full Code Here

    {
      Component c = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

      if (c instanceof JLabel)
      {
        MultiIcon icon = null;

        if (row == 0)
        {
          icon = expanded ? StdIcons.openFolderIcon : StdIcons.closedFolderIcon;
        }
View Full Code Here

    {
      Component c = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);

      if (c instanceof JLabel)
      {
        MultiIcon icon = null;

        if (row == 0 && tree.isRootVisible())
        {
          icon = rootIcon;
        }
View Full Code Here

        }

        // Access the resource file
        String resourceName = "icons." + iconName;

        MultiIcon bufferIcon = null;
        if (resourceCollection != null)
        {
          bufferIcon = (MultiIcon) resourceCollection.getOptionalObject((resourcePrefix != null ? resourcePrefix : "") + resourceName);
        }
        if (bufferIcon == null)
        {
          bufferIcon = (MultiIcon) defaultResourceCollection.getOptionalObject(resourceName);
        }

        if (bufferIcon == null)
        {
          // We use the standard icon
          String name = iconName;
          if (name.equals("fatal"))
          {
            name = "error";
          }

          icon = UIManager.getIcon("OptionPane." + name + "Icon");
        }
        else
        {
          icon = bufferIcon.getIcon(FlexibleSize.LARGE);
        }

        // Since we have an icon we stop looking for another one
        break;
      }
View Full Code Here

        fireEvent(new JaspiraEvent((JaspiraPageContainer) e.getWindow(), "global.frame.deactivated"));
      }
    });

    // Copy the icon to the frame
    MultiIcon multiIcon = getIcon();
    Icon icon = multiIcon.getIcon(FlexibleSize.LARGE);
    BufferedImage buf = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
    Graphics g = buf.getGraphics();
    icon.paintIcon(frame, g, 0, 0);
    frame.setIconImage(buf);
View Full Code Here

TOP

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

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.