本文整理汇总了Java中org.insightech.er.editor.view.figure.connection.decoration.ie.IETargetDecoration类的典型用法代码示例。如果您正苦于以下问题:Java IETargetDecoration类的具体用法?Java IETargetDecoration怎么用?Java IETargetDecoration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IETargetDecoration类属于org.insightech.er.editor.view.figure.connection.decoration.ie包,在下文中一共展示了IETargetDecoration类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDecoration
import org.insightech.er.editor.view.figure.connection.decoration.ie.IETargetDecoration; //导入依赖的package包/类
public static Decoration getDecoration(final String notation, final String parentCardinality, final String childCardinality) {
final Decoration decoration = new Decoration();
if ("0..1".equals(parentCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.sourceDecoration = new IDEF1XZeroOneSourceDecoration();
} else {
decoration.sourceDecoration = new IEZeroOneDecoration();
}
} else {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.sourceDecoration = new IDEF1XOneDecoration();
} else {
decoration.sourceDecoration = new IEOneDecoration();
}
}
if ("0..n".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� �Ȃ�
decoration.targetDecoration = new IDEF1XTargetDecoration();
} else {
decoration.targetDecoration = new IEOptionalTargetDecoration();
}
} else if ("1".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.targetDecoration = new IDEF1XOneDecoration();
} else {
decoration.targetDecoration = new IEOneDecoration();
}
} else if ("0..1".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� Z
decoration.targetDecoration = new IDEF1XTargetDecoration();
decoration.targetLabel = "Z";
} else {
decoration.targetDecoration = new IEZeroOneDecoration();
}
} else {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� P
decoration.targetDecoration = new IDEF1XTargetDecoration();
decoration.targetLabel = "P";
} else {
decoration.targetDecoration = new IETargetDecoration();
}
}
return decoration;
}
示例2: getDecoration
import org.insightech.er.editor.view.figure.connection.decoration.ie.IETargetDecoration; //导入依赖的package包/类
public static Decoration getDecoration(String notation,
String parentCardinality, String childCardinality) {
Decoration decoration = new Decoration();
if ("0..1".equals(parentCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.sourceDecoration = new IDEF1XZeroOneSourceDecoration();
} else {
decoration.sourceDecoration = new IEZeroOneDecoration();
}
} else {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.sourceDecoration = new IDEF1XOneDecoration();
} else {
decoration.sourceDecoration = new IEOneDecoration();
}
}
if ("0..n".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� �Ȃ�
decoration.targetDecoration = new IDEF1XTargetDecoration();
} else {
decoration.targetDecoration = new IEOptionalTargetDecoration();
}
} else if ("1".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
decoration.targetDecoration = new IDEF1XOneDecoration();
} else {
decoration.targetDecoration = new IEOneDecoration();
}
} else if ("0..1".equals(childCardinality)) {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� Z
decoration.targetDecoration = new IDEF1XTargetDecoration();
decoration.targetLabel = "Z";
} else {
decoration.targetDecoration = new IEZeroOneDecoration();
}
} else {
if (Settings.NOTATION_IDEF1X.equals(notation)) {
// �Y�� P
decoration.targetDecoration = new IDEF1XTargetDecoration();
decoration.targetLabel = "P";
} else {
decoration.targetDecoration = new IETargetDecoration();
}
}
return decoration;
}