javax.swing.Icon
public 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.Object
Object.equals(java.lang.Object)
public final java.awt.Color getColor()
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
Icon.getIconHeight()
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
Icon.getIconWidth()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
Icon.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.