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 TypeMethodDescriptionint
Height is same as the original.int
Width is same as the original.static float
getTint()
static int
void
Paints the original, but replaces the original fg/bg pixels with new ones.static void
setTint
(float tint) static void
setTolerance
(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:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()Height is same as the original.- Specified by:
getIconHeight
in 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.
-