net.sourceforge.plantuml.dot.GraphvizLinux Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.dot;
import java.io.File;
import net.sourceforge.plantuml.style.ISkinParam;
class GraphvizLinux extends AbstractGraphviz {
// ::remove file when __CORE__
GraphvizLinux(ISkinParam skinParam, String dotString, String... type) {
super(skinParam, dotString, type);
}
@Override
protected File specificDotExe() {
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/usr/bin/dot"),
new File("/opt/homebrew/bin/dot") };
for (File f : all)
if (f.exists())
return f;
return new File("/opt/local/bin/dot");
}
@Override
protected String getExeName() {
return "dot";
}
public boolean graphviz244onWindows() {
return false;
}
}