JGoView scaling problem

I try to change the JGoView scale, and the labels get offcenter, how do I update this? do I need to call label.setSpot(Center) on every single label in the view every time the scale changes? Also, at both scales, the paint job is rough around the edges - is there any way to make this higher quality without using an image?

default scale

scaled down by 1.2x

code might be relevant

[code] protected final double scalingFactor=1.2;
public void scale(boolean scaleUp) {

    double effectiveScalingFactor=scalingFactor;
    if (!scaleUp) effectiveScalingFactor = 1/scalingFactor;
    double scale = getScale()*effectiveScalingFactor; 
    setScale(
            Math.max(Math.min(scale, 
                    Math.pow(scalingFactor, 3)),
                    Math.pow(scalingFactor, -3)));
    //re-center view TODO

}[/code]

ugly (mspaint zoom for emphasis)

What version of SWT are you using? JGo for SWT was designed for use with SWT version 3.0, which does not have support for translation, scaling, anti-aliasing, Bezier curves, alpha transparency, nor anything like the GeneralPath class.
We reimplemented what we could easily do, but we did not do anti-aliased drawing of lines or of text. We only implemented support for alpha blending as a special case for JGoSubGraph backgrounds.
We’ll be reimplementing stuff to depend on 3.1, or perhaps even on 3.2.

I’m using 3.2, but trying to maintain backwards compatibility with 3.1.2.

To clarify, the problem isn’t the line jaggies, the problem is the green “paint bucket fill” doesn’t go all the way up to the edge, leaving white space. I’m not to worried about the asthetics, it was just annoying. No big deal. I’ll probably end up switching to images soon anyway.

is the offcenter labels after scale problem fixable?

The behavior you appear to be seeing is worse than what I see – I can’t reproduce your problem that badly. What hardware/operating system are you using?

here’s a better screenshot, the other one i did using a mouse drag without preserving aspect ratios. or are you referring to the label centering bug?

i’m using Windows XP sp2, Intel P4 3.00ghz, .99GB ram, Intel Graphics Media Accelerator Driver, Eclipse SDK Version: 3.2.0 Build id: I20060602-1317

[code]
Intel® Graphics Media Accelerator Driver Report

Report Date: 08/01/2006
Report Time[hr]: 10:47:18
Driver Version: Not Available
Operating System: Windows XP* Professional, Service Pack 2 (5.1.2600)
Default Language: English
DirectX* Version: 9.0
Physical Memory: 1014 MB
Minimum Graphics Memory: 8 MB
Maximum Graphics Memory: 128 MB
Graphics Memory in Use: 11 MB
Processor: x86
Processor Speed: 2992 MHZ
Vendor ID: 8086
Device ID: 2582
Device Revision: 04

  • Accelerator Information *

Accelerator in Use: Intel® 82915G Express Chipset Family
Video BIOS: 1233
Current Graphics Mode: 1280 by 1024 True Color (60 Hz)

  • Devices Connected to the Graphics Accelerator *

Active Monitors: 1

  • Monitor *

Monitor Name: Plug and Play Monitor
Display Type: Analog
Gamma Value: 2.20
DDC2 Protocol: Supported
Maximum Image Size: Horizontal: 14.5 inches
Vertical: 11.8 inches
Monitor Supported Modes:
640 by 480 (60 Hz)
640 by 480 (75 Hz)
720 by 400 (70 Hz)
800 by 600 (60 Hz)
800 by 600 (75 Hz)
1024 by 768 (60 Hz)
1024 by 768 (75 Hz)
1152 by 864 (75 Hz)
1280 by 1024 (60 Hz)
1280 by 1024 (60 Hz)
1280 by 1024 (75 Hz)
Display Power Management Support:
Standby Mode: Supported
Suspend Mode: Supported
Active Off Mode: Supported

  • Other names and brands are the property of their respective owners.[/code]

Yes, I was referring to the text painting. Thanks for the details, but mostly I was curious if you were running on Windows (and which version).