|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkawigi.widget.ChipIcon
public class ChipIcon
Represents an icon with a "color chip" which represents the current selected color. This is similar to color swatches used in some non-Java applications where the icon has a small rectangle indicating the current color on top of the regular icon.
| Constructor Summary | |
|---|---|
ChipIcon(javax.swing.Icon icon,
ColorSwatchDropdown colorPicker)
Constructs a new ChipIcon which draws a color chip on top of the given Icon in the color selected by the given ColorSwatchDropdown. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Returns the height of this icon. |
int |
getIconWidth()
Returns the width of this icon. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draws this icon at the given location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChipIcon(javax.swing.Icon icon,
ColorSwatchDropdown colorPicker)
| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||