本文整理匯總了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;
}
示例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();
}
示例3: getSystem
import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
final BlockUml blockUml = new BlockUml(lines2, 0);
return blockUml.getDiagram();
}
示例4: getSystem
import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
final BlockUml blockUml = new BlockUml(lines2, 0);
return blockUml.getDiagram();
}
示例5: getSystem
import net.sourceforge.plantuml.BlockUml; //導入方法依賴的package包/類
private Diagram getSystem() throws IOException, InterruptedException {
final BlockUml blockUml = new BlockUml(lines, 0);
return blockUml.getDiagram();
}