ca.nengo.plot
Class SolidColorIcon
java.lang.Object
ca.nengo.plot.SolidColorIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class SolidColorIcon
- extends java.lang.Object
- implements javax.swing.Icon
A swing Icon that paints itself a single, solid color.
Immutable.
|
Constructor Summary |
SolidColorIcon(java.awt.Color color_,
int width_,
int height_)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolidColorIcon
public SolidColorIcon(java.awt.Color color_,
int width_,
int height_)
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon