Package mdlaf.utils

Class MaterialDrawingUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void drawCircle​(java.awt.Graphics g, int x, int y, int radius, java.awt.Color color)  
      static void drawString​(javax.swing.JComponent c, java.awt.Graphics g, java.lang.String text, java.awt.Rectangle textRect, int mnemonicIndex, int shiftOffset, java.awt.Color color)  
      static java.awt.Graphics getAliasedGraphics​(java.awt.Graphics g)
      The documentation https://docs.oracle.com/javase/tutorial/2d/text/renderinghints.html
      • Methods inherited from class java.lang.Object

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

      • MaterialDrawingUtils

        public MaterialDrawingUtils()
    • Method Detail

      • getAliasedGraphics

        public static java.awt.Graphics getAliasedGraphics​(java.awt.Graphics g)
        The documentation https://docs.oracle.com/javase/tutorial/2d/text/renderinghints.html
      • drawCircle

        public static void drawCircle​(java.awt.Graphics g,
                                      int x,
                                      int y,
                                      int radius,
                                      java.awt.Color color)
      • drawString

        public static void drawString​(javax.swing.JComponent c,
                                      java.awt.Graphics g,
                                      java.lang.String text,
                                      java.awt.Rectangle textRect,
                                      int mnemonicIndex,
                                      int shiftOffset,
                                      java.awt.Color color)