Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 43003 Details for
Bug 142751
Zoom animation can take 32 seconds to complete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch that fixes the large number of steps in animating zoom change.
patch_142751_20060530.txt (text/plain), 1.16 KB, created by
Syed Atif
on 2006-05-30 14:33:07 EDT
(
hide
)
Description:
Patch that fixes the large number of steps in animating zoom change.
Filename:
MIME Type:
Creator:
Syed Atif
Created:
2006-05-30 14:33:07 EDT
Size:
1.16 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.runtime.gef.ui >Index: src/org/eclipse/gmf/runtime/gef/ui/internal/editparts/AnimatableZoomManager.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.gef.ui/src/org/eclipse/gmf/runtime/gef/ui/internal/editparts/AnimatableZoomManager.java,v >retrieving revision 1.3 >diff -u -r1.3 AnimatableZoomManager.java >--- src/org/eclipse/gmf/runtime/gef/ui/internal/editparts/AnimatableZoomManager.java 12 Oct 2005 22:25:28 -0000 1.3 >+++ src/org/eclipse/gmf/runtime/gef/ui/internal/editparts/AnimatableZoomManager.java 30 May 2006 18:33:35 -0000 >@@ -140,8 +140,8 @@ > * current zoom level. > */ > private AnimationModel calculateAnimationModel(double zoom) { >- double dmod = zoom / getZoom(); >- int steps = (int)Math.round(dmod > 0 ? dmod : 1/dmod); >+ double dmod = Math.pow(zoom / getZoom(),(double)1/8); >+ int steps = (int)Math.round(dmod > 1 ? dmod : 1/dmod); > > int duration = Math.max(DURATION_INCREMENT, steps * DURATION_INCREMENT); > AnimationModel animationModel = new AnimationModel(duration, true);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 142751
: 43003