Module platform

Class EmptyIcon

java.lang.Object
de.grogra.pf.ui.autocomplete.impl.EmptyIcon
All Implemented Interfaces:
Serializable, Icon

public class EmptyIcon extends Object implements Icon, Serializable
A standard icon that doesn't paint anything. This can be used when some Completions have icons and others don't, to visually align the text of all completions.
Version:
1.0
Author:
Robert Futrell
See Also:
  • Constructor Details

    • EmptyIcon

      public EmptyIcon(int size)
  • Method Details

    • getIconHeight

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

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

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

      public void setSize(int size)
      Sets the size of this icon. The parent container will likely need to be revalidated if this is called after the UI is displayed.
      Parameters:
      size - The new icon size.