當前位置: 首頁>>代碼示例>>Java>>正文


Java BlockUml.getDiagram方法代碼示例

本文整理匯總了Java中net.sourceforge.plantuml.BlockUml.getDiagram方法的典型用法代碼示例。如果您正苦於以下問題:Java BlockUml.getDiagram方法的具體用法?Java BlockUml.getDiagram怎麽用?Java BlockUml.getDiagram使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.sourceforge.plantuml.BlockUml的用法示例。


在下文中一共展示了BlockUml.getDiagram方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: create

import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
public static MDADiagram create(String uml) {
	List<BlockUml> blocks = new SourceStringReader(uml).getBlocks();
	if (blocks.size() == 0) {
		uml = "@startuml\n" + uml + "\[email protected]";
		blocks = new SourceStringReader(uml).getBlocks();
		if (blocks.size() == 0) {
			return null;
		}
	}
	final BlockUml block = blocks.get(0);
	final Diagram diagram = block.getDiagram();
	if (diagram instanceof ClassDiagram) {
		return new MDADiagramImpl((ClassDiagram) diagram);
	}
	return null;
}
 
開發者ID:Banno,項目名稱:sbt-plantuml-plugin,代碼行數:17,代碼來源:MDADiagramImpl.java

示例2: hasCMapData

import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
public static boolean hasCMapData(String uml) {
	List<BlockUml> blocks = new SourceStringReader(uml).getBlocks();
	if (blocks.size() == 0) {
		uml = "@startuml\n" + uml + "\[email protected]";
		blocks = new SourceStringReader(uml).getBlocks();
		if (blocks.size() == 0) {
			return false;
		}
	}
	final BlockUml block = blocks.get(0);
	final Diagram diagram = block.getDiagram();
	return diagram.hasUrl();
}
 
開發者ID:Banno,項目名稱:sbt-plantuml-plugin,代碼行數:14,代碼來源:PlantumlUtils.java

示例3: getSystem

import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
	final BlockUml blockUml = new BlockUml(lines2, 0);
	return blockUml.getDiagram();
}
 
開發者ID:Banno,項目名稱:sbt-plantuml-plugin,代碼行數:5,代碼來源:AtomEmbededSystem.java

示例4: getSystem

import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
	final BlockUml blockUml = new BlockUml(lines2, 0);
	return blockUml.getDiagram();

}
 
開發者ID:Banno,項目名稱:sbt-plantuml-plugin,代碼行數:6,代碼來源:EmbededSystemLine.java

示例5: getSystem

import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
	final BlockUml blockUml = new BlockUml(lines, 0);
	return blockUml.getDiagram();

}
 
開發者ID:mar9000,項目名稱:plantuml,代碼行數:6,代碼來源:AtomEmbededSystem.java


注:本文中的net.sourceforge.plantuml.BlockUml.getDiagram方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。