Class GraphicsUtil


  • public class GraphicsUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphicsUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Rectangle calculateIntersectionClip​(int x, int y, int width, int height, java.awt.Shape originalClip)  
      static void drawOptimizedLine​(java.awt.Graphics g, int x1, int y1, int x2, int y2)  
      • Methods inherited from class java.lang.Object

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

      • GraphicsUtil

        public GraphicsUtil()
    • Method Detail

      • drawOptimizedLine

        public static void drawOptimizedLine​(java.awt.Graphics g,
                                             int x1,
                                             int y1,
                                             int x2,
                                             int y2)
      • calculateIntersectionClip

        public static java.awt.Rectangle calculateIntersectionClip​(int x,
                                                                   int y,
                                                                   int width,
                                                                   int height,
                                                                   java.awt.Shape originalClip)