Package com.github.weisj.darklaf.icons
Class TextIcon
- java.lang.Object
-
- com.github.weisj.darklaf.icons.TextIcon
-
- All Implemented Interfaces:
DerivableIcon<TextIcon>,Icon
public class TextIcon extends Object implements Icon, DerivableIcon<TextIcon>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextIconderive(int width, int height)Derive a new icon with the specified size.intgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics gg, int x, int y)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.weisj.darklaf.icons.DerivableIcon
copy
-
-
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
derive
public TextIcon derive(int width, int height)
Description copied from interface:DerivableIconDerive a new icon with the specified size.- Specified by:
derivein interfaceDerivableIcon<TextIcon>- Parameters:
width- the new widthheight- the new height.- Returns:
- the derived icon.
-
-