public class ColorIcon
extends java.lang.Object
implements javax.swing.Icon
构造器和说明 |
---|
ColorIcon(java.awt.Color color) |
ColorIcon(java.lang.String name,
java.awt.Color color) |
限定符和类型 | 方法和说明 |
---|---|
java.awt.Color |
getColor() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
java.lang.String |
toString() |
public ColorIcon(java.awt.Color color)
public ColorIcon(java.lang.String name, java.awt.Color color)
public java.awt.Color getColor()
public java.lang.String toString()
toString
在类中 java.lang.Object
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
在接口中 javax.swing.Icon
public int getIconWidth()
getIconWidth
在接口中 javax.swing.Icon
public int getIconHeight()
getIconHeight
在接口中 javax.swing.Icon