本文整理汇总了Java中net.sourceforge.plantuml.version.Version.versionString方法的典型用法代码示例。如果您正苦于以下问题:Java Version.versionString方法的具体用法?Java Version.versionString怎么用?Java Version.versionString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sourceforge.plantuml.version.Version
的用法示例。
在下文中一共展示了Version.versionString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public CommandExecutionResult execute(S system, BlocLines lines) {
try {
final CommandExecutionResult result = cmd.execute(system, lines);
// if (result.isOk()) {
// // TRACECOMMAND
// System.err.println("CMD = " + cmd.getClass());
// }
return result;
} catch (Throwable t) {
Log.error("Error " + t);
t.printStackTrace();
String msg = "You should send a mail to [email protected] or post to http://plantuml.com/qa with this log (V" + Version.versionString()
+ ")";
Log.error(msg);
msg += " " + t.toString();
return CommandExecutionResult.error(msg, t);
}
}
示例2: execute
import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public CommandExecutionResult execute(S system, List<String> lines) {
try {
final CommandExecutionResult result = cmd.execute(system, lines);
// if (result.isOk()) {
// // TRACECOMMAND
// System.err.println("CMD = " + cmd.getClass());
// }
return result;
} catch (Throwable t) {
t.printStackTrace();
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final PrintWriter pw = new PrintWriter(baos);
t.printStackTrace(pw);
Log.error("Error " + t);
String msg = "You should send a mail to [email protected] with this log (V" + Version.versionString()
+ ")";
Log.error(msg);
msg += " " + new String(baos.toByteArray());
return CommandExecutionResult.error(msg);
}
}
示例3: getNorthLabel
import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
private JComponent getNorthLabel() {
final JLabel text = new JLabel("PlantUML (" + Version.versionString() + ")");
final Font font = text.getFont().deriveFont(Font.BOLD, (float) 20.0);
text.setFont(font);
final JPanel ptext = new JPanel();
ptext.add(text);
final JLabel icon = new JLabel(new ImageIcon(PSystemVersion.getPlantumlImage()));
final JPanel result = new JPanel(new BorderLayout());
result.add(ptext, BorderLayout.CENTER);
result.add(icon, BorderLayout.EAST);
return result;
}
示例4: EpsGraphics
import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
public EpsGraphics() {
header.append("%!PS-Adobe-3.0 EPSF-3.0\n");
String v = Version.versionString();
if (v.endsWith("beta") == false) {
v += " ";
}
header.append("%%Creator: PlantUML v" + v + "\n");
header.append("%%Title: noTitle\n");
// header.append("%%CreationDate: " + new Date() + "\n");
setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 1 index mul 7 index add", true));
setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 2 index mul 7 index add", true));
setcolorgradient.add(new PostScriptCommandRaw("3 index 7 index sub 3 index mul 7 index add", true));
setcolorgradient.add(new PostScriptCommandRaw("setrgbcolor", true));
// setcolorgradient.add(new PostScriptCommandRaw("0 7 1 {pop} for"));
setcolorgradient.add(new PostScriptCommandRaw("pop pop pop pop pop pop pop ", true));
simplerect.add(new PostScriptCommandRaw("newpath moveto 1 index 0 rlineto", true));
simplerect.add(new PostScriptCommandRaw("0 exch rlineto", true));
simplerect.add(new PostScriptCommandRaw("neg 0 rlineto", true));
roundrect.add(new PostScriptCommandRaw("newpath", true));
roundrect.add(new PostScriptCommandRaw("dup 3 index add 2 index 2 index add 2 index 180 270 arc", true));
roundrect.add(new PostScriptCommandRaw("2 index 5 index add 1 index sub 2 index 2 index add 2 index 270 0 arc",
true));
roundrect.add(new PostScriptCommandRaw(
"2 index 5 index add 1 index sub 2 index 5 index add 2 index sub 2 index 0 90 arc", true));
roundrect.add(new PostScriptCommandRaw("dup 3 index add 2 index 5 index add 2 index sub 2 index 90 180 arc",
true));
roundrect.add(new PostScriptCommandRaw("pop pop pop pop pop ", true));
}
示例5: determinePlantumlVersion
import net.sourceforge.plantuml.version.Version; //导入方法依赖的package包/类
/**
* Use reflection to determine the plantuml version that is available on the classpath.
*
* @return The plant UML version or the empty String (<code>""</code>) if not found.
*/
private static synchronized String determinePlantumlVersion() {
return Version.versionString();
}