Class OpenCloseIcon

java.lang.Object
docking.widgets.trable.OpenCloseIcon
All Implemented Interfaces:
Icon

public class OpenCloseIcon extends Object implements Icon
Icon used for the expand/collapse control in a GTrable
  • Constructor Details

    • OpenCloseIcon

      public OpenCloseIcon(boolean isOpen, int width, int height)
      Constructor
      Parameters:
      isOpen - if true, draws an icon that indicates the row is open, otherwise draws an icon that the icon indicates the row is closed
      width - the width to draw the icon
      height - the height to draw the icon
  • Method Details

    • setColor

      public void setColor(Color color)
    • 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