当前位置: 首页>>代码示例>>Java>>正文


Java IETargetDecoration类代码示例

本文整理汇总了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;
    }
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:62,代码来源:DecorationFactory.java

示例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;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:63,代码来源:DecorationFactory.java


注:本文中的org.insightech.er.editor.view.figure.connection.decoration.ie.IETargetDecoration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。