Hi all,

I try to make graphs in excel using the POI API. To do that, i'm trying to
use the HSSFClientAnchor and HSSFSimpleShape objects. But i do not really
have the result i expect.

To make it simple, for example, i would just like to draw 2 lines :
- the first from the B4 cell to the D3 one
- the second from the D3 cell to the F3 one.

Here is my java code :

            HSSFClientAnchor anchor = new HSSFClientAnchor(512, 205, 512,
80, (short) 1, 3, (short) 3, 2);
            HSSFSimpleShape shape1 = patriarch.createSimpleShape(anchor);
            shape1.setShapeType(HSSFSimpleShape.OBJECT_TYPE_LINE);
            
            HSSFClientAnchor anchor2 = new HSSFClientAnchor(512, 80, 512, 80,
(short) 3, 2, (short) 5, 2);
            HSSFSimpleShape shape2 = patriarch.createSimpleShape(anchor2);
            shape2.setShapeType(HSSFSimpleShape.OBJECT_TYPE_LINE);

My problem is that the 2 lines are not "connected" together. In fact, i
think that i do not really understand how POI displays a line giving an
anchor.

Does anyone can help me ?
-- 
View this message in context: 
http://www.nabble.com/Usage-of-HSSFClientAnchor-tp15611703p15611703.html
Sent from the POI - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to