本文整理汇总了Java中net.sourceforge.plantuml.FileFormatOption.isWithMetadata方法的典型用法代码示例。如果您正苦于以下问题:Java FileFormatOption.isWithMetadata方法的具体用法?Java FileFormatOption.isWithMetadata怎么用?Java FileFormatOption.isWithMetadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sourceforge.plantuml.FileFormatOption
的用法示例。
在下文中一共展示了FileFormatOption.isWithMetadata方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: exportDiagramInternal
import net.sourceforge.plantuml.FileFormatOption; //导入方法依赖的package包/类
@Override
protected ImageData exportDiagramInternal(OutputStream os, int index, FileFormatOption fileFormatOption)
throws IOException {
// BUG42
// COMPRESSION
// TextBlock result = swinlanes;
TextBlock result = new TextBlockCompressed(swinlanes);
result = new TextBlockRecentred(result);
final ISkinParam skinParam = getSkinParam();
result = new AnnotatedWorker(this, skinParam).addAdd(result);
final Dimension2D dim = TextBlockUtils.getMinMax(result, fileFormatOption.getDefaultStringBounder())
.getDimension();
final double margin = 10;
final double dpiFactor = getDpiFactor(fileFormatOption, Dimension2DDouble.delta(dim, 2 * margin, 0));
final ImageBuilder imageBuilder = new ImageBuilder(skinParam.getColorMapper(), dpiFactor, getSkinParam()
.getBackgroundColor(), fileFormatOption.isWithMetadata() ? getMetadata() : null, getWarningOrError(),
margin, margin, getAnimation(), getSkinParam().handwritten());
imageBuilder.setUDrawable(result);
return imageBuilder.writeImageTOBEMOVED(fileFormatOption, os);
}
示例2: exportDiagramInternal
import net.sourceforge.plantuml.FileFormatOption; //导入方法依赖的package包/类
@Override
protected ImageData exportDiagramInternal(OutputStream os, int index, FileFormatOption fileFormatOption) throws IOException {
// BUG42
// TextBlock result = swinlanes;
TextBlock result = new TextBlockCompressed(swinlanes);
result = new TextBlockRecentred(result);
result = addLegend(result);
result = addTitle(result);
result = addHeaderAndFooter(result);
final ISkinParam skinParam = getSkinParam();
final Dimension2D dim = TextBlockUtils.getMinMax(result).getDimension();
final double margin = 10;
final double dpiFactor = getDpiFactor(fileFormatOption, Dimension2DDouble.delta(dim, 2 * margin, 0));
final ImageBuilder imageBuilder = new ImageBuilder(skinParam.getColorMapper(), dpiFactor, getSkinParam()
.getBackgroundColor(), fileFormatOption.isWithMetadata() ? getMetadata() : null, getWarningOrError(),
margin, margin, getAnimation());
imageBuilder.addUDrawable(result);
return imageBuilder.writeImageTOBEMOVED(fileFormatOption.getFileFormat(), os);
}
示例3: createFileInternal
import net.sourceforge.plantuml.FileFormatOption; //导入方法依赖的package包/类
private ImageData createFileInternal(OutputStream os, List<String> dotStrings, FileFormatOption fileFormatOption)
throws IOException, InterruptedException {
if (diagram.getUmlDiagramType() == UmlDiagramType.ACTIVITY) {
new CucaDiagramSimplifierActivity(diagram, dotStrings, fileFormatOption.getDefaultStringBounder());
} else if (diagram.getUmlDiagramType() == UmlDiagramType.STATE) {
new CucaDiagramSimplifierState(diagram, dotStrings, fileFormatOption.getDefaultStringBounder());
}
// System.err.println("FOO11 type=" + os.getClass());
DotDataImageBuilder svek2 = createDotDataImageBuilder(DotMode.NORMAL, fileFormatOption.getDefaultStringBounder());
BaseFile basefile = null;
if (fileFormatOption.isDebugSvek() && os instanceof NamedOutputStream) {
basefile = ((NamedOutputStream) os).getBasefile();
}
// System.err.println("FOO11 basefile=" + basefile);
TextBlockBackcolored result = svek2.buildImage(basefile, diagram.getDotStringSkek());
if (result instanceof GraphvizCrash) {
svek2 = createDotDataImageBuilder(DotMode.NO_LEFT_RIGHT, fileFormatOption.getDefaultStringBounder());
result = svek2.buildImage(basefile, diagram.getDotStringSkek());
}
result = new AnnotatedWorker(diagram, diagram.getSkinParam()).addAdd(result);
final String widthwarning = diagram.getSkinParam().getValue("widthwarning");
String warningOrError = null;
if (widthwarning != null && widthwarning.matches("\\d+")) {
warningOrError = svek2.getWarningOrError(Integer.parseInt(widthwarning));
}
final Dimension2D dim = result.calculateDimension(fileFormatOption.getDefaultStringBounder());
final double scale = getScale(fileFormatOption, dim);
final ImageBuilder imageBuilder = new ImageBuilder(diagram.getSkinParam().getColorMapper(), scale,
result.getBackcolor(), fileFormatOption.isWithMetadata() ? diagram.getMetadata() : null,
warningOrError, 0, 10, diagram.getAnimation(), diagram.getSkinParam().handwritten());
imageBuilder.setUDrawable(result);
return imageBuilder.writeImageTOBEMOVED(fileFormatOption, os);
}
示例4: createFileInternal
import net.sourceforge.plantuml.FileFormatOption; //导入方法依赖的package包/类
private ImageData createFileInternal(OutputStream os, List<String> dotStrings, FileFormatOption fileFormatOption)
throws IOException, InterruptedException {
if (diagram.getUmlDiagramType() == UmlDiagramType.ACTIVITY) {
new CucaDiagramSimplifierActivity(diagram, dotStrings);
} else if (diagram.getUmlDiagramType() == UmlDiagramType.STATE) {
new CucaDiagramSimplifierState(diagram, dotStrings);
}
CucaDiagramFileMakerSvek2 svek2 = buildCucaDiagramFileMakerSvek2(DotMode.NORMAL);
TextBlockBackcolored result = svek2.createFile(diagram.getDotStringSkek());
if (result instanceof GraphvizCrash) {
svek2 = buildCucaDiagramFileMakerSvek2(DotMode.NO_LEFT_RIGHT);
result = svek2.createFile(diagram.getDotStringSkek());
}
result = addLegend(result);
result = addTitle(result);
result = addHeaderAndFooter(result);
final FileFormat fileFormat = fileFormatOption.getFileFormat();
final String widthwarning = diagram.getSkinParam().getValue("widthwarning");
if (widthwarning != null && widthwarning.matches("\\d+")) {
this.warningOrError = svek2.getBibliotekon().getWarningOrError(Integer.parseInt(widthwarning));
} else {
this.warningOrError = null;
}
final Dimension2D dim = result.calculateDimension(stringBounder);
final double scale = getScale(fileFormatOption, dim);
final ImageBuilder imageBuilder = new ImageBuilder(diagram.getSkinParam().getColorMapper(), scale,
result.getBackcolor(), fileFormatOption.isWithMetadata() ? diagram.getMetadata() : null,
warningOrError, 0, 10, diagram.getAnimation());
imageBuilder.addUDrawable(result);
return imageBuilder.writeImageTOBEMOVED(fileFormat, os);
}