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

net.sourceforge.plantuml.klimt.drawing.UGraphicInterceptorUDrawable 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.klimt.drawing;

import net.sourceforge.plantuml.klimt.UChange;
import net.sourceforge.plantuml.klimt.UShape;
import net.sourceforge.plantuml.klimt.shape.UDrawable;

public class UGraphicInterceptorUDrawable extends UGraphicDelegator {
    // ::remove file when __HAXE__

	public UGraphicInterceptorUDrawable(UGraphic ug) {
		super(ug);
	}

	public void draw(UShape shape) {
		if (shape instanceof UDrawable) {
			final UDrawable drawable = (UDrawable) shape;
			drawable.drawU(this);
		} else {
			getUg().draw(shape);
		}

	}

	public UGraphic apply(UChange change) {
		return new UGraphicInterceptorUDrawable(getUg().apply(change));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy