Class LAFUtilities


  • public final class LAFUtilities
    extends java.lang.Object
    Utility methods for Look-and-Feel classes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int AA_TEXT_SIZE  
    • Constructor Summary

      Constructors 
      Constructor Description
      LAFUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setProperties​(java.awt.Graphics g, javax.swing.JComponent c)
      Modifies the given graphics object with any relevant client property from the given component.
      • Methods inherited from class java.lang.Object

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

      • LAFUtilities

        public LAFUtilities()
    • Method Detail

      • setProperties

        public static void setProperties​(java.awt.Graphics g,
                                         javax.swing.JComponent c)
        Modifies the given graphics object with any relevant client property from the given component. Currently only RenderingHints.KEY_TEXT_ANTIALIASING is supported. Antialiasing is enabled explicitly if the text size is larger or equal to 16.
        Parameters:
        g - The graphics object to be updated.
        c - The component to get the properties from.