本文整理汇总了Java中net.sourceforge.plantuml.cucadiagram.GroupType.CONCURRENT_ACTIVITY属性的典型用法代码示例。如果您正苦于以下问题:Java GroupType.CONCURRENT_ACTIVITY属性的具体用法?Java GroupType.CONCURRENT_ACTIVITY怎么用?Java GroupType.CONCURRENT_ACTIVITY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.sourceforge.plantuml.cucadiagram.GroupType
的用法示例。
在下文中一共展示了GroupType.CONCURRENT_ACTIVITY属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: concurrentActivity
public void concurrentActivity(String name) {
// Log.println("concurrentActivity A name=" + name+" "+getCurrentGroup());
if (getCurrentGroup().getGroupType() == GroupType.CONCURRENT_ACTIVITY) {
// getCurrentGroup().setRankdir(Rankdir.LEFT_TO_RIGHT);
endGroup();
// Log.println("endgroup");
}
// Log.println("concurrentActivity A name=" + name+" "+getCurrentGroup());
final Code code = Code.of("##" + UniqueSequence.getValue());
if (getCurrentGroup().getGroupType() != GroupType.INNER_ACTIVITY) {
throw new IllegalStateException("type=" + getCurrentGroup().getGroupType());
}
getOrCreateGroup(code, Display.getWithNewlines("code"), GroupType.CONCURRENT_ACTIVITY, getCurrentGroup());
lastEntityConsulted = null;
lastEntityBrancheConsulted = null;
}
示例2: concurrentActivity
public void concurrentActivity(String name) {
// Log.println("concurrentActivity A name=" + name+" "+getCurrentGroup());
if (getCurrentGroup().getGroupType() == GroupType.CONCURRENT_ACTIVITY) {
// getCurrentGroup().setRankdir(Rankdir.LEFT_TO_RIGHT);
endGroup();
// Log.println("endgroup");
}
// Log.println("concurrentActivity A name=" + name+" "+getCurrentGroup());
final Code code = Code.of("##" + UniqueSequence.getValue());
if (getCurrentGroup().getGroupType() != GroupType.INNER_ACTIVITY) {
throw new IllegalStateException("type=" + getCurrentGroup().getGroupType());
}
getOrCreateGroup(code, Display.getWithNewlines("code"), null, GroupType.CONCURRENT_ACTIVITY,
getCurrentGroup());
lastEntityConsulted = null;
lastEntityBrancheConsulted = null;
}