Dashed grid not working in GEF 3.11.0.201605020204 [message #1732503] |
Tue, 17 May 2016 18:38 |
|
Last week I updated 4DIAC-IDE to Eclipse Neo M7 from Luna. Since this update my dashed lines are all drawn solid. Here is for example me code for drawing a dashed grid:
@Override
protected GridLayer createGridLayer() {
return new GridLayer(){
@Override
protected void paintGrid(final Graphics g) {
int origLineStyle = g.getLineStyle();
g.setLineStyle(Graphics.LINE_CUSTOM);
g.setLineDash(GRID_DASHES_STYLE);
super.paintGrid(g);
g.setLineStyle(origLineStyle);
}
};
}
From the Google results this should be correct. Is this an issue in draw2d?
Thanks,
Alois
|
|
|
|
Re: Dashed grid not working in GEF 3.11.0.201605020204 [message #1732644 is a reply to message #1732574] |
Wed, 18 May 2016 12:05 |
|
Thanks for the tip. I tried it in pure SWT code and there everything works as it should.
Therefore I spent more time on why it is not working in draw2d. I could trace it down to the fact that SWTGraphics.checkPaint() (invoked by drawLine the SWT's setLineAttributes is called. The problem now is that the code of setLineAttributes seams to be broken as it will not set all lineAttributes anymore. I'll file a bug for SWT.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03109 seconds