Hi, Adding text to autoshapes is not yet supported. You only can add text to the TextBox shape. In theory it should be simple to extend AutoShape this way. I will investigate when I have time.
Regards, Yegor > Hi user list, > > I am having a problem performing my powerpoint with hslf, > I would like to add a text into a chevron AutoShape. > I tried several things without success. > > Does someone can help me ? Any sample code is welcome.. > > I also have a minor second issue : how to add 3D effect to the shape? > > thanks for any suggestion. > > > /*--------------------------------------------------------------------------------------------------*/ > SlideShow powerPointFile = new SlideShow(); > Slide slide = powerPointFile.createSlide(); > // draw chevron with text > AutoShape sh2 = new AutoShape(ShapeTypes.Chevron); > sh2.setAnchor(new java.awt.Rectangle(60, 350, 90, 70)); > // modify the chevron geometry > EscherOptRecord opt = > (EscherOptRecord)Shape.getEscherChild(sh2.getSpContainer(), > EscherOptRecord.RECORD_ID); > opt.addEscherProperty(new > EscherSimpleProperty(EscherProperties.GEOMETRY__ADJUSTVALUE, 19000) ); > opt.sortProperties(); > //modify shape parameters > sh2.setLineWidth(2.0); > sh2.setFillColor(Color.white); // ============>>>>>>> ADD TEXT > slide.addShape(sh2); > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
