javax.swing.Iconpublic class ColorIcon
extends java.lang.Object
implements javax.swing.Icon
Color.
| Constructor | Description |
|---|---|
ColorIcon(java.awt.Color color) |
Creates an icon with the given color.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.awt.Color |
getColor() |
Returns the color of this icon.
|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
int |
hashCode() |
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
|
void |
setColor(java.awt.Color color) |
Sets the color of this icon.
|
public ColorIcon(java.awt.Color color)
color - the color of this icon.public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public final java.awt.Color getColor()
public int getIconHeight()
getIconHeight in interface javax.swing.IconIcon.getIconHeight()public int getIconWidth()
getIconWidth in interface javax.swing.IconIcon.getIconWidth()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.IconIcon.paintIcon(java.awt.Component, java.awt.Graphics, int,
int)public final void setColor(java.awt.Color color)
color - The color of this icon to set.Copyright © 2001 - 2010 LGPL, All Rights Footloose.