|
Java 6 SE Platform 6.0 Home |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcamickr.ColorIcon
class ColorIcon
ColorIcon
class handles ColorIcon
rendering and implements the
javax.swing.Icon interface
.
Field Summary | |
---|---|
private java.awt.Color |
color
|
Constructor Summary | |
---|---|
ColorIcon(java.awt.Color color)
Sets this member's java.awt.Color reference. |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the icon height. |
int |
getIconWidth()
Returns the icon width. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Renders the icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.awt.Color color
Constructor Detail |
---|
public ColorIcon(java.awt.Color color)
java.awt.Color
reference.
color
- java.awt.Color
to this instance.Method Detail |
---|
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
int
value representing the icon width in pixels.public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
int
value representing the icon height in pixels.public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- java.awt.Component
to paint.g
- java.awt.Graphics
object.x
- int
value for x
axis coordinate.y
- int
value for y
axis coordinate.
|
Java 6 SE Platform 6.0 Home |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |