Michael Keppler
1a72143780
Use baseline instead of centerline in PlotRenderer
If the text extent height of a to be rendered plot line is odd, then the SWTPlotRenderer cannot calculate the correct Y position for drawing the label and draws the label with a 1 pixel offset. SWT text drawing uses the baseline as Y coordinate. Due to the given centerline API in the AbstractPlotRenderer the overall calculation of the baseline for SWT is effectively (height / 2) * 2, thereby rounding all odd heights downward to the next even number. This change pushes the division by 2 from the caller into the implementations of drawText. A corresponding change will be pushed in the egit repository. Bug: 450813 Change-Id: I66f4e71873bb8e6f936fde573bbe4c35fe23a022 Signed-off-by: Michael Keppler <michael.keppler@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> |
il y a 9 ans | |
---|---|---|
.. | ||
AbstractPlotRenderer.java | Use baseline instead of centerline in PlotRenderer | il y a 9 ans |
PlotCommit.java | Drop warnings about unchecked casts in a few stable select places | il y a 9 ans |
PlotCommitList.java | Drop warnings about unchecked casts in a few stable select places | il y a 9 ans |
PlotLane.java | PlotLane: Use identity hashCode and equals | il y a 10 ans |
PlotWalk.java | Add lazy loading of body for tags to PlotWalk | il y a 12 ans |
package-info.java | Add Javadoc description for packages | il y a 11 ans |