Class WindowsGraphicsUtilsPort


  • public class WindowsGraphicsUtilsPort
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void paintText​(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text, int textShiftOffset)
      Renders a text String in Windows without the mnemonic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WindowsGraphicsUtilsPort

        public WindowsGraphicsUtilsPort()
    • Method Detail

      • paintText

        public static void paintText​(java.awt.Graphics g,
                                     javax.swing.AbstractButton b,
                                     java.awt.Rectangle textRect,
                                     java.lang.String text,
                                     int textShiftOffset)
        Renders a text String in Windows without the mnemonic. This is here because the WindowsUI hierarchy doesn't match the Component hierarchy. All the overriden paintText methods of the ButtonUI delegates will call this static method.
        Parameters:
        g - Graphics context
        b - Current button to render
        textRect - Bounding rectangle to render the text.
        text - String to render