net.sourceforge.plantuml.wire.WCursor 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.wire;
import net.sourceforge.plantuml.klimt.UTranslate;
import net.sourceforge.plantuml.klimt.geom.XPoint2D;
public class WCursor {
private UTranslate position = UTranslate.none();
public XPoint2D getPosition() {
return position.getPosition();
}
public void move(double dx, double dy) {
position = position.compose(new UTranslate(dx, dy));
}
}