Re: [JAVA2D] Generic ZoomPanel?

2008-08-18 Thread Dmitri Trembovetski
Hi Michael, Thanks. I believe this bug has been fixed in 7 and 6u10 - could you please try those releases (at least the 6u10, from jdk6.dev.java.net) and see if it's still reproducible. Thanks, Dmitri [EMAIL PROTECTED] wrote: Sorry - I had overlooked your question - apologies!

Re: [JAVA2D] Generic ZoomPanel?

2008-08-17 Thread java2d
Sorry - I had overlooked your question - apologies! I am using Java v(1.)6.0_06. Michael [Message sent by forum member 'mmo18' (mmo18)] http://forums.java.net/jive/thread.jspa?messageID=293785 === To unsubscribe, send

Re: [JAVA2D] Generic ZoomPanel?

2008-08-15 Thread java2d
I went to your site and downloaded jgui 3.0. But I could not find where to download the source code. I assume you make that available since it's an open source project? Also, if you do have the source I could build the JavaDocs myself, but since I don't , could you include the index.html

Re: [JAVA2D] Generic ZoomPanel?

2008-08-12 Thread Dmitri Trembovetski
I'll ask once again, what java release is this with? Dmitri [EMAIL PROTECTED] wrote: Hi, I tried JXTransformer. Things seem to work at first except: if I embedded the JXTransformer-Panel into a JScrollPanel then - as soon as I shift the view - I get again this dreaded Exception in thread

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Look at AffinePanel which is part of JGUI http://reader.imagero.com/jgui/ http://reader.imagero.com/jgui/doc/com/imagero/swing/renderer/AffinePanel.html and is able not only to zoom but general AffineTransform children. [Message sent by forum member 'imagero' (imagero)]

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Hi and thanks, sounded almost too good to be true! Alas, I can't get this to work and the javadocs aren't exactly very verbose, either. I wrapped my viewer (a JPanel) in that AffinePanel and added a slider to my control panel (which is NOT part of the above viewer), so that I can control the

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Hello Michaelbrbr a href=https://jxlayer.dev.java.net/;JXLayer/a is very similar to what you described, it is a universal decorator for Swing components.br It works like a JScrollPane and allows you to create any kind of visual decorations for your componentsbrbr Piet Blok recently a

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread Dmitri Trembovetski
I believe that bug has been fixed in recent releases. Which java version is this on? Thanks, Dmitri [EMAIL PROTECTED] wrote: Hi and thanks, sounded almost too good to be true! Alas, I can't get this to work and the javadocs aren't exactly very verbose, either. I wrapped my

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Alas, neither JXLayer nor JXTransformer do work properly. To get an idea what I mean by do not work properly try the below test program. If the scaling-factor (at the begin of ZoomPanelUI) is set to 1.0, things work OK, if I change it to e.g. 0.5 then part of the content is not drawn, elements

Re: [JAVA2D] Generic ZoomPanel?

2008-08-11 Thread java2d
Well, I think that you making something wrong here. Just look at this stacktrace part: at javax.swing.JComponent.paint(JComponent.java:1026) at test.Test$6.paint(Test.java:386) at com.imagero.swing.renderer.AffinePanel.paintComponent(AffinePanel.java:247) at

[JAVA2D] Generic ZoomPanel?

2008-08-10 Thread java2d
Hi all, a question re. the Java 2D API: I would like to create a generic ZoomPanel, i.e. a Panel that would allow to display the objects contained in it using an adjustable zoom factor. Ideally this Panel would be used much like a JScrollPanel, i.e.: The JScrollPanel allows to wrap some content

Re: [JAVA2D] Generic ZoomPanel?

2008-08-10 Thread Dmitri Trembovetski
In general transforming Swing components is a little tricky. Take a look at this helper class though: http://weblogs.java.net/blog/alexfromsun/archive/2006/07/jxtransformer_t.html I believe Alex updated it since. Thanks, Dmitri [EMAIL PROTECTED] wrote: Hi all, a question

Re: [JAVA2D] Generic ZoomPanel?

2008-08-10 Thread Steve Sinai
listeners and key listeners.  The panel was meant to be read-only and uneditable, so this worked for me. Steve Sinai --- On Sun, 8/10/08, Dmitri Trembovetski [EMAIL PROTECTED] wrote: From: Dmitri Trembovetski [EMAIL PROTECTED] Subject: Re: [JAVA2D] Generic ZoomPanel? To: [EMAIL PROTECTED] Date: Sunday