Class HighlightPainter


  • public class HighlightPainter
    extends java.lang.Object
    Version:
    $Revision: 1.6 $
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HighlightPainter()  
    • 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
    • Constructor Detail

      • HighlightPainter

        private HighlightPainter()
    • 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)