Class ArrowIcon

  • All Implemented Interfaces:
    javax.swing.Icon

    public class ArrowIcon
    extends java.lang.Object
    implements javax.swing.Icon
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ARROW_DOWN  
      static int ARROW_OFF  
      static int ARROW_UP  
      protected java.awt.Color dark  
      protected java.awt.Color fill  
      protected int h  
      protected java.awt.Color light  
      protected static java.awt.Stroke STROKE  
      protected int w  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrowIcon()  
      ArrowIcon​(int w, int h)  
    • Field Detail

      • STROKE

        protected static final java.awt.Stroke STROKE
      • w

        protected int w
      • h

        protected int h
      • light

        protected java.awt.Color light
      • dark

        protected java.awt.Color dark
      • fill

        protected java.awt.Color fill
    • Constructor Detail

      • ArrowIcon

        public ArrowIcon()
      • ArrowIcon

        public ArrowIcon​(int w,
                         int h)
    • Method Detail

      • getIconHeight

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

        public int getIconWidth()
        Specified by:
        getIconWidth 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
      • main

        public static void main​(java.lang.String[] args)
      • getArrowType

        public int getArrowType()
      • setArrowType

        public void setArrowType​(int i)
      • getDark

        public java.awt.Color getDark()
      • setDark

        public void setDark​(java.awt.Color dark)
      • getLight

        public java.awt.Color getLight()
      • setLight

        public void setLight​(java.awt.Color light)
      • getFill

        public java.awt.Color getFill()
      • setFill

        public void setFill​(java.awt.Color fill)