There is no easy way to change z-order of shapes in XSSF. The only way
to do it is via manipulating low-level xml.
z-order is defined by shape index in the drawing. To change it you
need to re-order xml beans in the collection of shapes:
XSSFDrawing drawing = ...;
CTDrawing ctDrawing = drawing.getCTDrawing();
// changing entries in the list will change z-order of shapes
on the drawing
List<CTTwoCellAnchor> list = ctDrawing.getTwoCellAnchorList();
Yegor
On Fri, Oct 26, 2012 at 1:10 PM, stefan.chonov <[email protected]> wrote:
> Hi,
>
> Someone knows if there's a way to control the "send to front" / "send to
> back" of objects added in a sheet via XSSF? I have two shapes. The second
> shape overlap the first shape. I would like to make the first shape
> overlapping the second shape. Is there any way to make this?
>
> Regards,
> Stefan
>
>
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/Is-there-some-way-to-control-send-to-front-send-to-back-of-object-tp5711304.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]