Package com.intellij.ui

Examples of com.intellij.ui.RowIcon


                setBorder(EMPTY_BORDER);
                setBackground(UIUtil.getPanelBackgound());
                setForeground(UIUtil.getLabelForeground());

                if (argumentValue.getAttribute() != null) {
                    RowIcon icon = new RowIcon(2);
                    icon.setIcon(Icons.SMALL_TREE_BRANCH, 0);
                    icon.setIcon(argumentValue.getAttribute().getIcon(), 1);
                    setIcon(icon);
                } else {
                    setIcon(argumentValue.getArgument().getIcon());
                }
                setText(argumentValue.getName());
View Full Code Here


            chain.add(0, object);
            object = object.getParentObject();
        }
        for (int i=0; i<chain.size(); i++) {
            object = chain.get(i);
            RowIcon icon = new RowIcon(i+1);
            icon.setIcon(object.getIcon(), i);
            if (i > 0) icon.setIcon(Icons.TREE_BRANCH, i-1);
            if (i > 1) {
                for (int j=0; j<i-1; j++) {
                    icon.setIcon(Icons.SPACE, j);
                }
            }
            JLabel label = new JLabel(object.getName(), icon, SwingConstants.LEFT);
           
            if (object == this.object) {
View Full Code Here

  }

  public Icon getElementIcon(final int flags) {
    Icon methodIcon = myBaseIcon != null ? myBaseIcon :
        hasModifierProperty(PsiModifier.ABSTRACT) ? Icons.ABSTRACT_METHOD_ICON : Icons.METHOD_ICON;
    RowIcon baseIcon = createLayeredIcon(methodIcon, ElementPresentationUtil.getFlags(this, false));
    return ElementPresentationUtil.addVisibilityIcon(this, flags, baseIcon);
  }
View Full Code Here

  public PsiType getTypeNoResolve() {
    return getType();
  }

  public Icon getElementIcon(final int flags) {
    final RowIcon baseIcon = createLayeredIcon(myBaseIcon, ElementPresentationUtil.getFlags(this, false));
    return ElementPresentationUtil.addVisibilityIcon(this, flags, baseIcon);
  }
View Full Code Here

    public static Icon getIcon(String key) {
        return REGISTERED_ICONS.get(key);
    }

    private static Icon createRowIcon(Icon left, Icon right) {
        RowIcon rowIcon = new RowIcon(2);
        rowIcon.setIcon(left, 0);
        rowIcon.setIcon(right, 1);
        return rowIcon;
    }
View Full Code Here

    String access = CfmlPsiUtil.getPureAttributeValue(this, "access");
    if (access == null) {
      return METHOD_ICON;
    }
    access = access.toLowerCase();
    RowIcon baseIcon = new RowIcon(2);
    baseIcon.setIcon(METHOD_ICON, 0);
    if ("private".equals(access)) {
      baseIcon.setIcon(PRIVATE_ICON, 1);
    }
    else if ("package".equals(access)) {
      baseIcon.setIcon(PACKAGE_LOCAL_ICON, 1);
    }
    else if ("public".equals(access)) {
      baseIcon.setIcon(PUBLIC_ICON, 1);
    }
    else if ("remote".equals(access)) {
      baseIcon.setIcon(CFMLIcons.Remote_access, 1);
    }
    return baseIcon;
  }
View Full Code Here

  @Override
  public Icon getIcon(int flags) {
    if (this instanceof BnfRule) {
      final Icon base = hasModifier((BnfRule)this, "external") ? BnfIcons.EXTERNAL_RULE : BnfIcons.RULE;
      final Icon visibility = hasModifier((BnfRule)this, "private") ? PlatformIcons.PRIVATE_ICON : PlatformIcons.PUBLIC_ICON;
      final RowIcon row = new RowIcon(2);
      row.setIcon(base, 0);
      row.setIcon(visibility, 1);
      return row;
    }
    else if (this instanceof BnfAttr) {
      return BnfIcons.ATTRIBUTE;
    }
View Full Code Here

    }
    return ourIconProviders;
  }

  public static Icon getEmptyIcon(boolean showVisibility) {
    RowIcon baseIcon = new RowIcon(2);
    Icon emptyIcon = Icons.CLASS_ICON != null
                          ? new EmptyIcon(Icons.CLASS_ICON.getIconWidth(), Icons.CLASS_ICON.getIconHeight())
                          : null;
    baseIcon.setIcon(emptyIcon, 0);
    if (showVisibility) {
      emptyIcon = Icons.PUBLIC_ICON != null ? new EmptyIcon(Icons.PUBLIC_ICON.getIconWidth(), Icons.PUBLIC_ICON.getIconHeight()) : null;
      baseIcon.setIcon(emptyIcon, 1);
    }
    return baseIcon;
  }
View Full Code Here

    }
  }

  @NotNull
  private static Icon createRowIcon(Icon first, Icon second) {
    RowIcon rowIcon = new RowIcon(2);
    rowIcon.setIcon(first, 0);
    rowIcon.setIcon(second, 1);
    return rowIcon;
  }
View Full Code Here

TOP

Related Classes of com.intellij.ui.RowIcon

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.