The following method in PPGrapics2D is not implemented in the latest source
code in hslf.
Whether it is going to be implemented shortly ? The method paint() in
TextPainter class uses this method.
Is there any alternate way to display the text if we have corresponding
"AttributedCharacterIterator" and coordinates like below ?

    public void drawString(AttributedCharacterIterator iterator, float x,
float y) {
        log.log(POILogger.WARN, "Not implemented");
    }


Are you trying to draw a ppt into another ppt? If so, it is a bad idea and the 
result will always be lossy.

PPGrapics2D.drawString(AttributedCharacterIterator iterator, float x, float y) is indeed not implemented but I don't think you need to call it.

TextPainter translates ppt into image. This class is meant to work with Graphics2D provided by AWT or by BufferedImage, for example, created as follows:

BufferedImage img = new BufferedImage(width, height, 
BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = img.createGraphics();

BufferedImage can draw attributed strings just fine.

In it's turn, PPGrapics2D does a reverse job - it translates Grapics2D calls into ppt. This class is not fully compliant with the Graphics2D and some features like clipping, images and attributed strings are not yet supported.
Example: http://poi.apache.org/hslf/how-to-shapes.html#Graphics2D

Regards,
Yegor

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

Reply via email to