|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.swing.styling.JColorIcon
public class JColorIcon
An Icon to display a color. Used by JSimpleStyleDialog
.
Constructor Summary | |
---|---|
JColorIcon(int width,
int height,
java.awt.Color color)
Construtor. |
Method Summary | |
---|---|
int |
getIconHeight()
Get the icon's height |
int |
getIconWidth()
Get the icon's width |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paint the icon using the current color. |
void |
setColor(java.awt.Color color)
Set the color |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JColorIcon(int width, int height, java.awt.Color color)
width
- icon widthheight
- icon heightcolor
- initial colorMethod Detail |
---|
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- arg presently ignoredg
- graphics objectx
- x positiony
- y positionpublic int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void setColor(java.awt.Color color)
color
- new color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |