java.lang.Object
furbelow.SelectionIcon
- All Implemented Interfaces:
Icon
Paint an icon appropriately for a selection to ensure that the icon is
visible and to avoid having to generate minor icon variations. This may
mean a mouse-over, a selected button, or a selected row in a tree or
table.
Primarily to make icons in selected rows of a table on Windows 2000 show up
properly, since that setup has a dark blue selection background which makes
any black pixels difficult to see. This class replaces any pixels of the
given foreground/background with a different foreground/background.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHeight is same as the original.intWidth is same as the original.static floatgetTint()static intvoidPaints the original, but replaces the original fg/bg pixels with new ones.static voidsetTint(float tint) static voidsetTolerance(int tol) toString()Returns same value as the original.
-
Constructor Details
-
SelectionIcon
Create an icon that paints a modified version givenIcon.
-
-
Method Details
-
setTolerance
public static void setTolerance(int tol) -
getTolerance
public static int getTolerance() -
setTint
public static void setTint(float tint) -
getTint
public static float getTint() -
getIconWidth
public int getIconWidth()Width is same as the original.- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()Height is same as the original.- Specified by:
getIconHeightin interfaceIcon
-
toString
Returns same value as the original. -
paintIcon
Paints the original, but replaces the original fg/bg pixels with new ones. Transparency is preserved.
-