net.sourceforge.plantuml.klimt.geom.PositionableImpl 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.geom;
public final class PositionableImpl implements Positionable {
private XPoint2D pos;
private final XDimension2D dim;
public PositionableImpl(double x, double y, XDimension2D dim) {
this.pos = new XPoint2D(x, y);
this.dim = dim;
}
public static PositionableImpl create(XPoint2D pt, XDimension2D dim) {
return new PositionableImpl(pt.getX(), pt.getY(), dim);
}
public XPoint2D getPosition() {
return pos;
}
public XDimension2D getSize() {
return dim;
}
public void moveSvek(double deltaX, double deltaY) {
this.pos = this.pos.move(deltaX, deltaY);
}
}