public Boolean getFlipHorizontal() { if (transform.isSetFlipH()) { return transform.getFlipH(); } else { return null; } }
@Override public boolean getFlipHorizontal() { CTTransform2D xfrm = getXfrm(false); return (xfrm != null && xfrm.isSetFlipH()) && xfrm.getFlipH(); }
/** * Creates a group shape. * * @param anchor the client anchor describes how this group is attached to the group. * @return the newly created group shape. */ public XSSFShapeGroup createGroup(XSSFChildAnchor anchor) { CTGroupShape ctShape = ctGroup.addNewGrpSp(); ctShape.set(prototype()); XSSFShapeGroup shape = new XSSFShapeGroup(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; // TODO: calculate bounding rectangle on anchor and set off/ext correctly CTGroupTransform2D xfrm = shape.getCTGroupShape().getGrpSpPr().getXfrm(); CTTransform2D t2 = anchor.getCTTransform2D(); xfrm.setOff(t2.getOff()); xfrm.setExt(t2.getExt()); // child offset is left to 0,0 xfrm.setChExt(t2.getExt()); xfrm.setFlipH(t2.getFlipH()); xfrm.setFlipV(t2.getFlipV()); return shape; }
public Boolean getFlipHorizontal() { if (transform.isSetFlipH()) { return transform.getFlipH(); } else { return null; } }
@Override public boolean getFlipHorizontal() { return getXfrm().getFlipH(); }
@Override public boolean getFlipHorizontal() { CTTransform2D xfrm = getXfrm(false); return (xfrm != null && xfrm.isSetFlipH()) && xfrm.getFlipH(); }
/** * Creates a group shape. * * @param anchor the client anchor describes how this group is attached to the group. * @return the newly created group shape. */ public XSSFShapeGroup createGroup(XSSFChildAnchor anchor) { CTGroupShape ctShape = ctGroup.addNewGrpSp(); ctShape.set(prototype()); XSSFShapeGroup shape = new XSSFShapeGroup(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; // TODO: calculate bounding rectangle on anchor and set off/ext correctly CTGroupTransform2D xfrm = shape.getCTGroupShape().getGrpSpPr().getXfrm(); CTTransform2D t2 = anchor.getCTTransform2D(); xfrm.setOff(t2.getOff()); xfrm.setExt(t2.getExt()); // child offset is left to 0,0 xfrm.setChExt(t2.getExt()); xfrm.setFlipH(t2.getFlipH()); xfrm.setFlipV(t2.getFlipV()); return shape; }