net.sourceforge.plantuml.sequencediagram.graphic.GraphicalElement 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.sequencediagram.graphic;
import net.sourceforge.plantuml.klimt.drawing.UGraphic;
import net.sourceforge.plantuml.klimt.font.StringBounder;
import net.sourceforge.plantuml.skin.Context2D;
abstract class GraphicalElement {
// ::remove folder when __HAXE__
private double startingY;
GraphicalElement(double startingY) {
this.startingY = startingY;
}
void pushToDown(double delta) {
startingY += delta;
}
protected final double getStartingY() {
return startingY;
}
public final void drawU(UGraphic ug, double maxX, Context2D context) {
// bugnewway
drawInternalU(ug, maxX, context);
}
protected abstract void drawInternalU(UGraphic ug, double maxX, Context2D context);
public abstract double getStartingX(StringBounder stringBounder);
public abstract double getPreferredWidth(StringBounder stringBounder);
public abstract double getPreferredHeight(StringBounder stringBounder);
}