You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by wo...@free.fr on 2005/07/13 16:38:46 UTC

thumbnail


Hi thomas,
for my application i want to use the thumbnail in a frame and with this
frame i select the area and it show me automatically the viewBox of the
svg in an another frame.
How in the squiggle when you click thumbnail
Can you explain me and give me an example, how works the thumbnail
associated with the frame to select an area of a svg file

i try this in my code but he don't show a rectangle in the frame with the
graphics :

JFrame fr = new JFrame("Thumbnail");

final JPanel pane = new JPanel(new BorderLayout());

fr.getContentPane().add(svgCanvas);

ThumbnailDialog td = new ThumbnailDialog(fr,svgCanvas) ;
td.setInteractionEnabled(true);

MarkerShapePainter view = new MarkerShapePainter(new Rectangle(10,10, 100,100));
view.paint((Graphics2D)svgCanvas.getGraphics());

fr.setSize(200, 200);
fr.setResizable(false);
fr.setVisible(true);

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org