Examples of LayeredIcon


Examples of com.intellij.ui.LayeredIcon

      super(groupNodeDescriptor.getProject(), groupNodeDescriptor);
      this.issue = issue;

      myName = issue.getPresentableSummary();

      myClosedIcon = new LayeredIcon(new ColorIconCache.ColorIcon(16, RevuUtils.getIssueStatusColor(issue.getStatus())),
        RevuIconProvider.getIcon(RevuIconProvider.IconRef.GUTTER_ISSUE));
    }
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

      super(groupNodeDescriptor.getProject(), groupNodeDescriptor);
      this.issue = issue;

      myName = issue.getSummary();

      myClosedIcon = new LayeredIcon(new ColorIconCache.ColorIcon(16, RevuUtils.getIssueStatusColor(issue.getStatus())),
        RevuIconProvider.getIcon(RevuIconProvider.IconRef.GUTTER_ISSUE));
    }
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

      }
      return true;
    }

    if (changes && myIsBase) {
      final LayeredIcon icon = new LayeredIcon(2);
      icon.setIcon(getIcon(), 0);
      icon.setIcon(AllIcons.Hierarchy.Base, 1, -AllIcons.Hierarchy.Base.getIconWidth() / 2, 0);
      setIcon(icon);
    }

    final CompositeAppearance oldText = myHighlightedText;
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

    if (strutsModel == null ||
        !strutsModel.isActionClass(psiClass)) {
      return null;
    }

    final LayeredIcon layeredIcon = new LayeredIcon(2);
    final Icon original = PsiClassImplUtil.getClassIcon(flags, psiClass);
    layeredIcon.setIcon(original, 0);
    layeredIcon.setIcon(Struts2Icons.Action_small, 1, StrutsIcons.OVERLAY_X_OFFSET, StrutsIcons.OVERLAY_Y_OFFSET);
    return layeredIcon;
  }
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

    protected Component renderIn(JLabel label, boolean selected, boolean hasFocus) {
      if (myVFile.isWritable()) {
        label.setIcon(getIconByExtension());
      }
      else {
        LayeredIcon layeredIcon = new LayeredIcon(2);
        layeredIcon.setIcon(getIconByExtension(), 0);
        layeredIcon.setIcon(AllIcons.Nodes.Locked, 1);
        label.setIcon(layeredIcon);
      }
      return label;
    }
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

    public Icon getIcon(boolean open) {
        if (info.getName() == null || isExported(info.getName())) {
            return info.getBaseIcon();
        }

        return new LayeredIcon(info.getBaseIcon(), PlatformIcons.LOCKED_ICON);
    }
View Full Code Here

Examples of com.intellij.ui.LayeredIcon

    if ((flags & Iconable.ICON_FLAG_READ_STATUS) != 0 && !file.isWritable()) {
      lockedIcon = Icons.LOCKED_ICON;
    }

    if (excludedIcon != null || lockedIcon != null) {
      LayeredIcon layeredIcon = new LayeredIcon(1 + (lockedIcon != null ? 1 : 0) + (excludedIcon != null ? 1 : 0));
      int layer = 0;
      layeredIcon.setIcon(icon, layer++);
      if (lockedIcon != null) {
        layeredIcon.setIcon(lockedIcon, layer++);
      }
      if (excludedIcon != null) {
        layeredIcon.setIcon(excludedIcon, layer);
      }
      icon = layeredIcon;
    }
    return icon;
  }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.LayeredIcon

        Map<Number,Icon> iconMap = new HashMap<Number,Icon>();
        for(int i=0; i<VERTEX_COUNT; i++) {
            String name = "/images/topic"+iconNames[i]+".gif";
            try {
                Icon icon =
                    new LayeredIcon(new ImageIcon(VertexImageShaperDemo.class.getResource(name)).getImage());
                iconMap.put(i, icon);
            } catch(Exception ex) {
                System.err.println("You need slashdoticons.jar in your classpath to see the image "+name);
            }
        }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.LayeredIcon

        Map<Number,Icon> iconMap = new HashMap<Number,Icon>();
        for(int i=0; i<vertices.length; i++) {
            String name = "/images/topic"+iconNames[i]+".gif";
            try {
                Icon icon =
                    new LayeredIcon(new ImageIcon(HyperbolicVertexImageShaperDemo.class.getResource(name)).getImage());
                iconMap.put(vertices[i], icon);
            } catch(Exception ex) {
                System.err.println("You need slashdoticons.jar in your classpath to see the image "+name);
            }
        }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.LayeredIcon

        Map<Number,Icon> iconMap = new HashMap<Number,Icon>();
        for(int i=0; i<vertices.length; i++) {
            String name = "/images/topic"+iconNames[i]+".gif";
            try {
                Icon icon =
                    new LayeredIcon(new ImageIcon(PerspectiveVertexImageShaperDemo.class.getResource(name)).getImage());
                iconMap.put(vertices[i], icon);
            } catch(Exception ex) {
                System.err.println("You need slashdoticons.jar in your classpath to see the image "+name);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.