I am using Batik 1.5 and I want to switch to Batik 1.5.1.
Unfortunately I can not compile my source code with the new Batik-Jar-Files.
Two constants can not be found in the class: "org.apache.batik.gvt.text.GVTAttributedCharacterIterator".
/** Stroke used to paint character outline.*/ public final static TextAttribute STROKE = new TextAttribute("STROKE");
/** Paint used to stroke character outline */ public final static TextAttribute STROKE_PAINT = new TextAttribute("STROKE_PAINT");
How can I solve this problem?
There is now one Class that contains all of the text rendering properties (that don't effect layout):
org.apache.batik.gvt.text.TextPaintInfo
This one class is now associated with the ACI through the TextAttribute 'GVTAttributedCharacterIterator.PAINT_INFO'.
This also replaces the use of java.awt.color.TextAttribute.FOREGROUND.
The upside of these changes is that modifying the properties in the TPI (TextPainterInfo) no longer requires a 'relayout' of the text it simply repaint's the effected area. If you do change the TPI contents directly, then you need to make sure you call:
batik.gvt.TextNode.SwapTextPaintInfo
(TextPaintInfo new, TextPaintInfo old);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
