當前位置: 首頁>>代碼示例>>Java>>正文


Java DiagramRelationshipInfo類代碼示例

本文整理匯總了Java中com.intellij.diagram.DiagramRelationshipInfo的典型用法代碼示例。如果您正苦於以下問題:Java DiagramRelationshipInfo類的具體用法?Java DiagramRelationshipInfo怎麽用?Java DiagramRelationshipInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DiagramRelationshipInfo類屬於com.intellij.diagram包,在下文中一共展示了DiagramRelationshipInfo類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getDependencyInfo

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
@Nullable
@Override
public DiagramRelationshipInfo getDependencyInfo(PsiNamedElement e1,
                                                 PsiNamedElement e2,
                                                 DiagramCategory diagramCategory) {
  if (e1 instanceof SchemaTypeDef && e2 instanceof SchemaTypeDef) {
    SchemaTypeDef td1 = (SchemaTypeDef) e1;
    SchemaTypeDef td2 = (SchemaTypeDef) e2;

    if (td2.extendsParents().contains(e1)) return EXTENDS;

    SchemaMetaDecl metaDecl = td1.getMetaDecl();
    if (metaDecl != null) {
      SchemaQnTypeRef typeRef = metaDecl.getQnTypeRef();
      if (typeRef != null) {
        SchemaTypeDef typeDef = typeRef.resolve();
        if (e2.equals(typeDef)) return META;
      }
    }
  }
  return null;
}
 
開發者ID:SumoLogic,項目名稱:epigraph,代碼行數:23,代碼來源:SchemaDiagramRelationshipManager.java

示例2: ModuleDepDiagramEdge

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
public ModuleDepDiagramEdge(
    @NotNull final ModuleDepDiagramNode from,
    @NotNull final ModuleDepDiagramNode to,
    @NotNull final DiagramRelationshipInfo relationship
    ) {
    super(from, to, relationship);
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:8,代碼來源:ModuleDepDiagramEdge.java

示例3: BpDiagramFileEdge

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
public BpDiagramFileEdge(
    final DiagramNode<BpGraphNode> source,
    final DiagramNode<BpGraphNode> target,
    final DiagramRelationshipInfo relationship
) {
    super(source, target, relationship);
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:8,代碼來源:BpDiagramFileEdge.java

示例4: member

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
public static DiagramRelationshipInfo member(String name, String fromLabel, String toLabel) {
  return new DiagramRelationshipInfoAdapter("member", DiagramLineType.SOLID, name, fromLabel, toLabel, 1) {
    @Override
    public Shape getStartArrow() {
      return DIAMOND;
    }

    @Override
    public Shape getEndArrow() {
      return DELTA_SMALL;
    }
  };
}
 
開發者ID:SumoLogic,項目名稱:epigraph,代碼行數:14,代碼來源:SchemaDiagramRelationshipManager.java

示例5: addEdge

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
@Nullable
public DiagramEdge<PsiElement> addEdge(final @NotNull DiagramNode<PsiElement> from, final @NotNull DiagramNode<PsiElement> to,
        Long value) {
    final DiagramRelationshipInfo relationship;
    if (from.getIdentifyingElement() instanceof PsiField) {
        relationship = createEdgeFromField();
    } else {
        relationship = createEdgeFromNonField(value == null ? 0 : value);
    }

    return new ReferenceEdge(from, to, relationship);
}
 
開發者ID:Stefku,項目名稱:intellij-reference-diagram,代碼行數:13,代碼來源:ReferenceDiagramDataModel.java

示例6: ReferenceEdge

import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
public ReferenceEdge(DiagramNode<PsiElement> source, DiagramNode<PsiElement> target,
        DiagramRelationshipInfo relationship) {
    super(source, target, relationship);
}
 
開發者ID:Stefku,項目名稱:intellij-reference-diagram,代碼行數:5,代碼來源:ReferenceEdge.java


注:本文中的com.intellij.diagram.DiagramRelationshipInfo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。