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


Java GroupType.PACKAGE属性代码示例

本文整理汇总了Java中net.sourceforge.plantuml.cucadiagram.GroupType.PACKAGE属性的典型用法代码示例。如果您正苦于以下问题:Java GroupType.PACKAGE属性的具体用法?Java GroupType.PACKAGE怎么用?Java GroupType.PACKAGE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.sourceforge.plantuml.cucadiagram.GroupType的用法示例。


在下文中一共展示了GroupType.PACKAGE属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: printGroups

private void printGroups(DotStringFactory dotStringFactory, IGroup parent) {
	for (IGroup g : dotData.getGroupHierarchy().getChildrenGroups(parent)) {
		if (g.isRemoved()) {
			continue;
		}
		if (dotData.isEmpty(g) && g.getGroupType() == GroupType.PACKAGE) {
			final ILeaf folder = entityFactory.createLeaf(g.getCode(), g.getDisplay(), LeafType.EMPTY_PACKAGE,
					g.getParentContainer(), null, dotData.getNamespaceSeparator());
			final USymbol symbol = g.getUSymbol();
			folder.setUSymbol(symbol);
			folder.setStereotype(g.getStereotype());
			if (g.getColors(dotData.getSkinParam()).getColor(ColorType.BACK) == null) {
				final ColorParam param = symbol == null ? ColorParam.packageBackground : symbol.getColorParamBack();
				final HtmlColor c1 = dotData.getSkinParam().getHtmlColor(param, g.getStereotype(), false);
				folder.setSpecificColorTOBEREMOVED(ColorType.BACK, c1 == null ? dotData.getSkinParam()
						.getBackgroundColor() : c1);
			} else {
				folder.setSpecificColorTOBEREMOVED(ColorType.BACK,
						g.getColors(dotData.getSkinParam()).getColor(ColorType.BACK));
			}
			printEntity(dotStringFactory, folder);
		} else {
			printGroup(dotStringFactory, g);
		}
	}
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:26,代码来源:DotDataImageBuilder.java

示例2: printGroups

private void printGroups(IGroup parent) throws IOException {
	for (IGroup g : dotData.getGroupHierarchy().getChildrenGroups(parent)) {
		if (g.isRemoved()) {
			continue;
		}
		if (dotData.isEmpty(g) && g.getGroupType() == GroupType.PACKAGE) {
			final ILeaf folder = entityFactory.createLeaf(g.getCode(), g.getDisplay(), LeafType.EMPTY_PACKAGE,
					g.getParentContainer(), null, dotData.getNamespaceSeparator());
			final USymbol symbol = g.getUSymbol();
			folder.setUSymbol(symbol);
			if (g.getSpecificBackColor() == null) {
				final ColorParam param = symbol == null ? ColorParam.packageBackground : symbol.getColorParamBack();
				final HtmlColor c1 = dotData.getSkinParam().getHtmlColor(param, g.getStereotype(), false);
				folder.setSpecificBackcolor(c1 == null ? dotData.getSkinParam().getBackgroundColor() : c1);
			} else {
				folder.setSpecificBackcolor(g.getSpecificBackColor());
			}
			printEntity(folder);
		} else {
			printGroup(g);
		}
	}
}
 
开发者ID:mar9000,项目名称:plantuml,代码行数:23,代码来源:CucaDiagramFileMakerSvek2.java

示例3: printGroups

private void printGroups(IGroup parent) {
	for (IGroup g : diagram.getChildrenGroups(parent)) {
		if (g.isRemoved()) {
			continue;
		}
		if (diagram.isEmpty(g) && g.getGroupType() == GroupType.PACKAGE) {
			final ILeaf folder = diagram.getEntityFactory().createLeaf(g.getCode(), g.getDisplay(),
					LeafType.EMPTY_PACKAGE, g.getParentContainer(), null, diagram.getNamespaceSeparator());
			emptyGroups.put(g, folder);
			final USymbol symbol = g.getUSymbol();
			folder.setUSymbol(symbol);
			folder.setStereotype(g.getStereotype());
			if (g.getColors(diagram.getSkinParam()).getColor(ColorType.BACK) == null) {
				final ColorParam param = symbol == null ? ColorParam.packageBackground : symbol.getColorParamBack();
				final HtmlColor c1 = diagram.getSkinParam().getHtmlColor(param, g.getStereotype(), false);
				folder.setSpecificColorTOBEREMOVED(ColorType.BACK, c1 == null ? diagram.getSkinParam()
						.getBackgroundColor() : c1);
			} else {
				folder.setSpecificColorTOBEREMOVED(ColorType.BACK,
						g.getColors(diagram.getSkinParam()).getColor(ColorType.BACK));
			}
			printEntityNew(folder);
		} else {
			printGroup(g);
		}
	}
}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:27,代码来源:CucaDiagramFileMakerJDot.java

示例4: exportGroups

private void exportGroups(Agraph_s graph, IGroup parent) {
	for (IGroup g : diagram.getChildrenGroups(parent)) {
		if (g.isRemoved()) {
			continue;
		}
		if (diagram.isEmpty(g) && g.getGroupType() == GroupType.PACKAGE) {
			final ILeaf folder = emptyGroups.get(g);
			exportEntity(graph, folder);
		} else {
			exportGroup(graph, g);
		}
	}

}
 
开发者ID:Banno,项目名称:sbt-plantuml-plugin,代码行数:14,代码来源:CucaDiagramFileMakerJDot.java


注:本文中的net.sourceforge.plantuml.cucadiagram.GroupType.PACKAGE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。