Java 类com.intellij.ui.RoundedLineBorder 实例源码

项目:Crucible4IDEA    文件:CommentNodeRenderer.java   
void setComment(final Comment comment) {
  String avatar = comment.getAuthor().getAvatar();
  Icon icon = AllIcons.Ide.Warning_notifications;
  if (avatar != null) {
    try {
      icon = IconLoader.findIcon(new URL(avatar));
    }
    catch (MalformedURLException e) {
      LOG.warn(e);
    }
  }

  myIconLabel.setIcon(icon);
  myMessageLabel.setText(XmlStringUtil.wrapInHtml(comment.getMessage()));

  RoundedLineBorder roundedLineBorder = new RoundedLineBorder(comment.isDraft() ? DRAFT_BORDER_COLOR : COMMENT_BORDER_COLOR, 20, 2);
  Border marginBorder = BorderFactory.createEmptyBorder(0, 0, UIUtil.DEFAULT_VGAP, 0);
  myMainPanel.setBorder(BorderFactory.createCompoundBorder(marginBorder, roundedLineBorder));

  myMainPanel.setBackground(comment.isDraft() ? DRAFT_BG_COLOR : COMMENT_BG_COLOR);

  myPostLink.setVisible(comment.isDraft());
}
项目:jfrog-idea-plugin    文件:FilterButton.java   
private static Border createFocusedBorder() {
    return BorderFactory.createCompoundBorder(new RoundedLineBorder(UIUtil.getHeaderActiveColor(), 10, BORDER_SIZE), JBUI.Borders.empty(2));
}
项目:intellij-ce-playground    文件:VcsLogPopupComponent.java   
private static Border createFocusedBorder() {
  return BorderFactory.createCompoundBorder(new RoundedLineBorder(UIUtil.getHeaderActiveColor(), 10, BORDER_SIZE), INNER_MARGIN_BORDER);
}
项目:intellij-ce-playground    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE);
}
项目:intellij-ce-playground    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE, 2);
}
项目:tools-idea    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE);
}
项目:tools-idea    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE, 2);
}
项目:consulo    文件:VcsLogPopupComponent.java   
private static Border createFocusedBorder() {
  return BorderFactory.createCompoundBorder(new RoundedLineBorder(UIUtil.getHeaderActiveColor(), 10, BORDER_SIZE), JBUI.Borders.empty(2));
}
项目:consulo    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE);
}
项目:consulo    文件:ArrangementAtomMatchConditionComponent.java   
@Override
public RoundedLineBorder create() {
  return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE, 2);
}
项目:intellij-ce-playground    文件:ArrangementAtomMatchConditionComponent.java   
RoundedLineBorder create();
项目:tools-idea    文件:ArrangementAtomMatchConditionComponent.java   
RoundedLineBorder create();
项目:consulo    文件:ArrangementAtomMatchConditionComponent.java   
RoundedLineBorder create();