net.sourceforge.plantuml.eggs.PSystemPath 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.eggs;
import java.io.IOException;
import java.io.OutputStream;
import net.sourceforge.plantuml.AbstractPSystem;
import net.sourceforge.plantuml.FileFormatOption;
import net.sourceforge.plantuml.core.DiagramDescription;
import net.sourceforge.plantuml.core.ImageData;
import net.sourceforge.plantuml.core.UmlSource;
import net.sourceforge.plantuml.klimt.color.ColorMapper;
public class PSystemPath extends AbstractPSystem {
// ::remove file when __CORE__
private final GraphicsPath path;
public PSystemPath(UmlSource source, String s) {
super(source);
this.path = new GraphicsPath(ColorMapper.IDENTITY, s);
}
@Override
final protected ImageData exportDiagramNow(OutputStream os, int num, FileFormatOption fileFormat)
throws IOException {
return path.writeImage(os);
}
public DiagramDescription getDescription() {
return new DiagramDescription("(Path)");
}
}