net.sourceforge.plantuml.PlainStringsDiagram 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;
import static net.sourceforge.plantuml.klimt.shape.GraphicStrings.createBlackOnWhite;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import net.sourceforge.plantuml.core.UmlSource;
import net.sourceforge.plantuml.klimt.geom.GraphicPosition;
import net.sourceforge.plantuml.klimt.shape.UDrawable;
public abstract class PlainStringsDiagram extends PlainDiagram {
// ::remove file when __HAXE__
protected BufferedImage image = null;
protected GraphicPosition imagePosition = null;
protected final List strings = new ArrayList<>();
public PlainStringsDiagram(UmlSource source) {
super(source);
}
@Override
public UDrawable getRootDrawable(FileFormatOption fileFormatOption) {
return createBlackOnWhite(strings, image, imagePosition);
}
}