本文整理匯總了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;
}
示例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;
}
};
}
示例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);
}
示例6: ReferenceEdge
import com.intellij.diagram.DiagramRelationshipInfo; //導入依賴的package包/類
public ReferenceEdge(DiagramNode<PsiElement> source, DiagramNode<PsiElement> target,
DiagramRelationshipInfo relationship) {
super(source, target, relationship);
}