Thomas DeWeese wrote:
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(...);
when i read it, i'm lost. I'm a Bastien's friend. i'm a beginner.
For my application i want to use the same as the squiggle when you click
thumbail, he show you a rectangle on the svg image. And with this
rectangle i read the area of the rectangle by a push in a buttonaction.
it's only. So give an example i can understand your
super.paintComponent( ) and the other.
I thinks, it's not your job but thanks for it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]