Skip to main content

JXLayer; "reachable" screen area

2 replies [Last post]
kleopatra
Offline
Joined: 2003-06-11

Hi Alex, Piet

Sorry for the sloppy subject, but just a quick question (which might be answerable by RTFM which I'm too lazy to do right now :): have been playing with Piet's MagnifierUI (way cool!). The thingy I had in mind was to magnify the contents of something like the codeViewer (as of SwingSet3) during a demo in a talk (guess when ). Then I realized that it most probably would imply to be kind of tooltip-like, that is wider than the decorated component. Would that be inside the scope of JXLayer? My guess is that not, so stopped trying...

Cheers
Jeanette

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pietblok
Offline
Joined: 2003-07-17

Hi Jeanette,

Thank you for your words on the MagnifierUI.

I'm not sure that I really understand your question. Is it only that the involved area that you want to decorate is outside its parents top level component, because displayed as a tool tip?

I googled for SwingSet3 and found a webstart demo. In that demo I selected the tooltips demo, where tooltip regions are created by createToolTipRegion(..). There, a JLabel is created and returned. I didn't try, but I see no reason why the returned component could not have a JXLayer in its hierarchy. Is that the part that you are referring to in your question?

Looking again at the demo, I see a magic yellow warning icon just outside the top right of the frame. Wow, how did they do that? I'm deeply impressed! If you are referring to that icon, and want to apply a JXLayer on that as well, I really don't know.

Meanwhile I'm still working on a generic ZoomUI that not only can enlarge (or make it smaller), but also can rotate and shear the underlying component hierarchy, while redirecting mouse events to the intended components.

I face some unexpected problems, mainly involving the clipping area when rotating or shearing, that I'm afraid I won't be able to solve. I hope to make it available in a few days (with some known limitations). I just mention it because you showed interest in the MagnifierUI.

Have a nice day,

Piet

kleopatra
Offline
Joined: 2003-06-11

Hi Piet,

thanks for your quick reaction! And sorry for my bad explanation, had been in a hurry when I should have been more careful in describing my goal (always preaching about taking the time :-) So trying again:

taking your TestShared example (I mean the one with the two editorPanes), I want the magnified decoration unclipped by the bounds of the editor which is magnified. That is, extend beyond its bounds. Somehow like a magnified tooltip. Hmm ... your idea to actually go ToolTip sounds good, though, hadn't thought of it.

Anyway, decided yesterday to go with a more earthly approach - going bigger fonts in the first place. Naturally the effect is not as complete as Kirill is doing in Substance (unadjusted borders, icons, ... ) but should be good enough for now.

Thanks again, looking forward to your upcoming ZoomUI
Jeanette