Hi Pierre(?),

BEGUE Pierre wrote:
hi thomas i have some problem with the thumbnail i can't arrive to show a mini rectangle to select the area. you can explain me and give me some example for it. This is my code i try to do.

MarkerShapePainter msp = new MarkerShapePainter(new Rectangle(0,0, 100, 100));
       msp.paint((Graphics2D)f.getGraphics());

   This is generally a bad idea for any swing app.  You need to
subclass the canvas and provide an overrided 'paintComponent'
method that first calls super.paintComponent, and then
calls msp.paint.

   Additionally the Canvas already offers support for 'overlays'
that are drawn after the SVG image is painted
(org.apache.batik.swing.gvt.Overlay, they can be added with
canvas.getOverlays().add(...);


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

Reply via email to