[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef-dev] LineAttributes and advanced mode

Can we change the LineAttribute support in draw2d to work the same as SWT?
For example:

            LineAttributes la = new LineAttributes(5);
            la.dashOffset = 3;
            la.style = SWT.LINE_CUSTOM;
            la.dash = new float[]{5.5,5.5};
            g.setLineAttributes(la);
            g.drawLine(0, 10, 20, 10);
            g.setAntialias(SWT.OFF);
            g.drawLine(0, 20, 20, 20);

This code draws the same line twice, but the second time it renders
differently (I had to fix where dashOffset was getting lost too).

(Embedded image moved to file: pic18895.jpg)

If so, should we try to get this consistent before the M4 milestone, since
that's the first milestone containing the new support?

Also, setAdvanced(false) has several side effects that are not being
reflected in SWTGraphics.

-Randy

Attachment: pic18895.jpg
Description: JPEG image