net.agmodel.table
Class ColorFillIcon
java.lang.Object
|
+--net.agmodel.table.ColorFillIcon
- All Implemented Interfaces:
- Icon, Serializable
- public class ColorFillIcon
- extends Object
- implements Icon, Serializable
Uses example from Chapter 4 of Core Java Foundation Classes
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
width
protected int width
height
protected int height
fillColor
protected Color fillColor
shadow
protected Color shadow
borderSize
protected int borderSize
fillHeight
protected int fillHeight
fillWidth
protected int fillWidth
BORDER_SIZE
public static final int BORDER_SIZE
- See Also:
- Constant Field Values
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
ColorFillIcon
public ColorFillIcon(Color fill,
int width,
int height,
int borderSize)
ColorFillIcon
public ColorFillIcon(Color fill)
setShadow
public void setShadow(Color c)
setFillColor
public void setFillColor(Color c)
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface Icon
setBorderWidth
public void setBorderWidth(int b)
paintIcon
public void paintIcon(Component comp,
Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface Icon