public final class XSSFChildAnchor extends XSSFAnchor {
private CTTransform2D t2d;
public XSSFChildAnchor(int x, int y, int cx, int cy) {
t2d = CTTransform2D.Factory.newInstance();
CTPoint2D off = t2d.addNewOff();
CTPositiveSize2D ext = t2d.addNewExt();
off.setX(x);
off.setY(y);
ext.setCx(Math.abs(cx - x));
ext.setCy(Math.abs(cy - y));
if(x > cx) t2d.setFlipH(true);
if(y > cy) t2d.setFlipV(true);
}