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