Skip to main content



      Home
Home » Eclipse Projects » GEF » Initial zoom 50% , why?
Initial zoom 50% , why? [message #156552] Tue, 02 November 2004 05:45 Go to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

I`ve a GaphicalEditorWithPalette and just have implemented the zoom
feature from logic example. But when i open a saved editor the initial
zoom level is somehow set to 50%.
Why does it not open to 100% ?
Re: Initial zoom 50% , why? [message #156585 is a reply to message #156552] Tue, 02 November 2004 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The setting is saved in the document, just like in Word or other
applications.

"Frank Dyck" <dyx@gmx.net> wrote in message news:opsgt2t3lz0i05et@celeron...
> I`ve a GaphicalEditorWithPalette and just have implemented the zoom
> feature from logic example. But when i open a saved editor the initial
> zoom level is somehow set to 50%.
> Why does it not open to 100% ?
Re: Initial zoom 50% , why? [message #156636 is a reply to message #156585] Tue, 02 November 2004 17:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

I see...
When i tested it in the logic example i didn`t save the model, just =

changed the zoom without moving anything.


> The setting is saved in the document, just like in Word or other
> applications.
>
> "Frank Dyck" <dyx@gmx.net> wrote in message =

> news:opsgt2t3lz0i05et@celeron...
>> I`ve a GaphicalEditorWithPalette and just have implemented the zoom
>> feature from logic example. But when i open a saved editor the initia=
l
>> zoom level is somehow set to 50%.
>> Why does it not open to 100% ?
>
>
Re: Initial zoom 50% , why? [message #156759 is a reply to message #156636] Thu, 04 November 2004 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

OK. I have set a break point on doSave and have completely traced the sa=
ve =

progress in my editor.
The problem is that intitially the zoom value of the Diagram is 0.0 =

instead of 1.0. I have no idea why...
The declaration in Diagram model class: private double zoom =3D 1.0;

....so it should be 1.0!!!

As 0.0 is no allowed zoom the zoom level is set to its smallest size or =
=

first entry in zoomlevels.

But why how can this be? it is set to 1.0 in it`s declaration!




> I see...
> When i tested it in the logic example i didn`t save the model, just =

> changed the zoom without moving anything.
>
>
>> The setting is saved in the document, just like in Word or other
>> applications.
>>
>> "Frank Dyck" <dyx@gmx.net> wrote in message =

>> news:opsgt2t3lz0i05et@celeron...
>>> I`ve a GaphicalEditorWithPalette and just have implemented the zoom
>>> feature from logic example. But when i open a saved editor the initi=
al
>>> zoom level is somehow set to 50%.
>>> Why does it not open to 100% ?
>>
>>
Re: Initial zoom 50% , why? [message #156814 is a reply to message #156759] Thu, 04 November 2004 11:05 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Maybe it is a serialization (compatibility) problem. Zoom field was added
in 2.1. If you try to saturate an older model which didn't have that field,
maybe it gets read in as 0??

"Frank Dyck" <dyx@gmx.net> wrote in message news:opsgxzqliy0i05et@celeron...
OK. I have set a break point on doSave and have completely traced the save
progress in my editor.
The problem is that intitially the zoom value of the Diagram is 0.0
instead of 1.0. I have no idea why...
The declaration in Diagram model class: private double zoom = 1.0;

....so it should be 1.0!!!

As 0.0 is no allowed zoom the zoom level is set to its smallest size or
first entry in zoomlevels.

But why how can this be? it is set to 1.0 in it`s declaration!
Previous Topic:DirectedGraph and DirectedGraphLayout - how?
Next Topic:Can GEF draw a SWT widget?
Goto Forum:
  


Current Time: Thu Nov 06 23:40:07 EST 2025

Powered by FUDForum. Page generated in 0.06469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top