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) {
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?