Class HighlightPainter


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void drawLine​(java.awt.Graphics g, int x1, int y1, int x2, int y2, boolean clockWise, boolean inside, java.awt.Color highlightColor, java.awt.Color middleColor, java.awt.Color shadowColor)  
      static float getBlendFactor​(int dx, int dy)  
      protected static int getHighlightOffsetX​(int deltaX, int deltaY)  
      protected static int getHighlightOffsetY​(int deltaX, int deltaY)  
      • Methods inherited from class java.lang.Object

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

      • drawLine

        public static void drawLine​(java.awt.Graphics g,
                                    int x1,
                                    int y1,
                                    int x2,
                                    int y2,
                                    boolean clockWise,
                                    boolean inside,
                                    java.awt.Color highlightColor,
                                    java.awt.Color middleColor,
                                    java.awt.Color shadowColor)
      • getBlendFactor

        public static float getBlendFactor​(int dx,
                                           int dy)
      • getHighlightOffsetX

        protected static int getHighlightOffsetX​(int deltaX,
                                                 int deltaY)
      • getHighlightOffsetY

        protected static int getHighlightOffsetY​(int deltaX,
                                                 int deltaY)