In my program,  There are Steps:
        1. parse the svg file to the SvgSaxDocument,
        2. build SvgSaxDocument to the tree of GraphicsNode 
 
Are  you using the bridge module for that?
 
         3. transcoder the tree of GraphicsNode to JPEGImage and send to user.
        4. find out the GraphicsNode selected by user on the tree generated in Step2.
        5. modify these selected GraphicsNode and redo the Step 3.
 
    my questions is:
        1. How to modify a GraphicsNode to show ideally that it had been selected?
  
Well, I think you need the notion of layer on top of the GVT tree. The layer can contain some
shapes that represents the outline of the selected element. Then, when you rasterize, create
a jpeg image that shows both layers (the svg one and yours with the selected elements).
 
        2. If I can easyly change the fill color of a GraphicsNode? 
 
use the setShapePainter method on ShapeNode (as the SVGShapeElementBridge does).
 
        3. Now, I had maken a Filter Object by copying and modifying the code of  some FilterBridges.
            That filter can modify the fill color like SpecularLight Filter.
            Then I call the setFilter() mothed, if there are not a filter ever, all is right.
            But if there are a filter ever, all get bad. Example, if there are a feOffset Filter to shift image ever,
            after I set my filter, the image can not be shift.
 
I  need more details on what your filter looks like to answer that question.
 
    I am sorry, the upper questions must be very mess.
 
Thierry.
 

Reply via email to