public class SelectionIcon extends Object implements Icon
Constructor and Description |
---|
SelectionIcon(Icon icon,
Color fg,
Color bg,
Color sfg,
Color sbg)
Create an icon that paints a modified version given
Icon . |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Height is same as the original.
|
int |
getIconWidth()
Width is same as the original.
|
static float |
getTint() |
static int |
getTolerance() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the original, but replaces the original fg/bg pixels with new
ones.
|
static void |
setTint(float tint) |
static void |
setTolerance(int tol) |
String |
toString()
Returns same value as the original.
|
public static void setTolerance(int tol)
public static int getTolerance()
public static void setTint(float tint)
public static float getTint()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public String toString()
Copyright © 2023. All rights reserved.