[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #KQN-408226]: DisplayControl.moveto



Hi Cindy.

I am having trouble understanding your question.

Is the code below in reference to Jython or Java?

Perhaps, if you send us the code you are having trouble with, we can better 
help you.

-Julien

>  Hi ,
> 
> I have two problems using idv and need your big help.
> (1)" DisplayControl.moveTo() " method is influenced by its created order
> 
> Description: Now we create two MapViews:view1?view2. in view1, we add two 
> controls:control1?control2, so control1 is firstly created. For each control 
> we add a text object while only the text object can bring up the error. When 
> we drag control1 to view2, error occurs as below:
> 
> visad.DisplayException: ScalarMap.setDisplay: ScalarMap cannot belong to two 
> Displays
> 
> If we firstly drag control2 then control1,idv runs nomally.
> 
> (2) viewmanager save incomplete image
> 
> Description: Now we create two viewManagers: vm1?vm2. vm2 is set offscreen 
> mode. First,we build up a group of controls in vm1. Then, we call 
> DispalyControl.moveTo(vm2) method to move all the controls to vm2. At last,we 
> call " vm2.getMaster().saveCurrentDisplay(new File(filename), true, true) " 
> methord to save image. But, some controls can not be shown in the save file.
> 
> Thanks a lot
> --------------------------------
> Cindy


Ticket Details
===================
Ticket ID: KQN-408226
Department: Support IDV
Priority: Normal
Status: Closed