Package ca.phon.ui

Class DropDownIcon

java.lang.Object
ca.phon.ui.DropDownIcon
All Implemented Interfaces:
Icon

public class DropDownIcon extends Object implements Icon
Create a 'drop-down' icon composed of an original icon and a drop-down arrow. If paintRollover is true the arrow portion will have a border painted on the left-hand side.
  • Field Details

  • Constructor Details

    • DropDownIcon

      public DropDownIcon(Icon icn)
    • DropDownIcon

      public DropDownIcon(Icon icn, Icon arrowIcn)
    • DropDownIcon

      public DropDownIcon(Icon icn, int gap)
    • DropDownIcon

      public DropDownIcon(Icon icn, Icon arrowIcn, int gap)
    • DropDownIcon

      public DropDownIcon(Icon icn, int gap, int iconPosition)
    • DropDownIcon

      public DropDownIcon(Icon icn, Icon arrowIcn, int gap, int iconPosition)
    • DropDownIcon

      public DropDownIcon(Icon icn, int gap, int iconPosition, boolean paintRollover)
    • DropDownIcon

      public DropDownIcon(Icon icn, Icon arrowIcn, int gap, int iconPosition, boolean paintRollover)
  • Method Details

    • setArrowPainted

      public void setArrowPainted(boolean painted)
    • isArrowPainted

      public boolean isArrowPainted()
    • getGap

      public int getGap()
    • setGap

      public void setGap(int gap)
    • getIconPosition

      public int getIconPosition()
    • setIconPosition

      public void setIconPosition(int iconPosition)
    • isPaintRollover

      public boolean isPaintRollover()
    • setPaintRollover

      public void setPaintRollover(boolean paintRollover)
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • getIconWidth

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

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getArrowAreaWidth

      public int getArrowAreaWidth()
      Get arrow icon width plush gap
    • getArrowRect

      public Rectangle getArrowRect()