-
Notifications
You must be signed in to change notification settings - Fork 52
Deprecate ScaledGraphics #901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,17 +24,25 @@ public class ScalableFreeformLayeredPane extends FreeformLayeredPane implements | |
|
|
||
| private double scale = 1.0; | ||
|
|
||
| /** | ||
| * @deprecated will be deleted after the 2028-03 release (see | ||
| * {@link ScaledGraphics}). | ||
| */ | ||
| @Deprecated(forRemoval = true, since = "2026-03") | ||
| private final boolean useScaledGraphics; | ||
|
|
||
| public ScalableFreeformLayeredPane() { | ||
| this(true); | ||
| this(false); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember there being issues with the Logic editor when scaling with a plain SWTGraphics object. I'd have to double-check if this is still the case, but I would prefer to not change the default behavior when this already causes issues for our examples.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember too. That is also my hesitation in my comment above. However I thought we could change it now early so that we find such problems and can address them and if we can not address them we can still change it back in M3 or RC1. Similar to the native scaling flag we introduced in the last cycle. |
||
| } | ||
|
|
||
| /** | ||
| * Constructor which allows to configure if scaled graphics should be used. | ||
| * | ||
| * @since 3.13 | ||
| * @deprecated will be deleted after the 2028-03 release (see | ||
| * {@link ScaledGraphics}). | ||
| */ | ||
| @Deprecated(forRemoval = true, since = "2026-03") | ||
| public ScalableFreeformLayeredPane(boolean useScaledGraphics) { | ||
| this.useScaledGraphics = useScaledGraphics; | ||
| } | ||
|
|
@@ -97,7 +105,10 @@ public void setScale(double newZoom) { | |
|
|
||
| /** | ||
| * @since 3.13 | ||
| * @deprecated will be deleted after the 2028-03 release (see | ||
| * {@link ScaledGraphics}). | ||
| */ | ||
| @Deprecated(forRemoval = true, since = "2026-03") | ||
| @Override | ||
| public boolean useScaledGraphics() { | ||
| return useScaledGraphics; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.