Class SortArrowIcon

  • All Implemented Interfaces:
    javax.swing.Icon

    public class SortArrowIcon
    extends Object
    implements javax.swing.Icon
    An Icon that is a Nice arrow to be used for displaying which Column is being used for sorting.
    Author:
    Claude Duguay
    • Constructor Detail

      • SortArrowIcon

        public SortArrowIcon​(int direction)
    • Method Detail

      • getIconWidth

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon