Package org.fife.ui.autocomplete
Class EmptyIcon
- java.lang.Object
-
- org.fife.ui.autocomplete.EmptyIcon
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.Icon
public class EmptyIcon extends java.lang.Object implements javax.swing.Icon, java.io.SerializableA standard icon that doesn't paint anything. This can be used when someCompletions have icons and others don't, to visually align the text of all completions.- Version:
- 1.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intsize
-
Constructor Summary
Constructors Constructor Description EmptyIcon(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)voidsetSize(int size)Sets the size of this icon.
-
-
-
Method Detail
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)- Specified by:
paintIconin interfacejavax.swing.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.
-
-