net.sourceforge.plantuml.math.PSystemLatexFactory 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.math;
import net.sourceforge.plantuml.command.PSystemBasicFactory;
import net.sourceforge.plantuml.core.DiagramType;
import net.sourceforge.plantuml.core.UmlSource;
public class PSystemLatexFactory extends PSystemBasicFactory {
public PSystemLatexFactory(DiagramType type) {
super(type);
}
@Override
public PSystemLatex initDiagram(UmlSource source, String startLine) {
if (getDiagramType() == DiagramType.LATEX)
return new PSystemLatex(source);
return null;
}
@Override
public PSystemLatex executeLine(UmlSource source, PSystemLatex system, String line) {
system.doCommandLine(line);
return system;
}
}