<Swing Dev> [9] Review request for 8168992 Add floating point implementation for new BasicGraphicsUtils text related methods use floating point API

Alexandr Scherbatiy alexandr.scherbatiy at oracle.com
Tue Nov 1 13:47:50 UTC 2016


Hello,

Could you review the fix:
   bug: https://bugs.openjdk.java.net/browse/JDK-8168992
   webrev: http://cr.openjdk.java.net/~alexsch/8168992/webrev.00

   The fix JDK-8132119 added stubs for the following methods:
   BasicGraphicsUtils.drawString(JComponent c, Graphics2D g, String 
string, float x, float y)
   BasicGraphicsUtils.drawStringUnderlineCharAt(JComponent c, Graphics2D 
g, String string, int underlinedIndex, float x, float y)
   BasicGraphicsUtils.getStringWidth(JComponent c, FontMetrics fm, 
String string)

   The current fix adds implementation which uses floating point API for 
these methods.

   The fix also updated the implementation to use floating point API for 
the method:
     Utilities.drawTabbedText(Segment s, float x, float y, Graphics2D g, 
TabExpander e, int startOffset)

  Thanks,
  Alexandr.




More information about the swing-dev mailing list