Community
Participate
Working Groups
Build Identifier: M20100909-0800 org.eclipse.draw2d.Graphics provides two methods for creating custom line styles: setLineDash(float[]) and setLineDash(int[]]). These methods are implemented at the SWTGraphics level. But org.eclipse.draw2d.ScaledGraphics only expose setLineDash(int[]]). I must use setLineDash(float[]) for higher precision and I can not subclass the ScaledGraphics. Reproducible: Always Steps to Reproduce: See org.eclipse.draw2d.ScaledGraphics, it does not override org.eclipse.draw2d.Graphics' setLineDash(float[]) to redirect the call to the wrapped Graphics object.
Created attachment 182795 [details] The proposed patch.
Added setLineDash(float[]) method to ScaledGraphics, which simply delegates to the respective method in the underlying graphics. Change committed to cvs HEAD (3.7).