All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.sequencediagram.graphic.GraphicalElement Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// 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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy