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