ca.nengo.plot
Class SolidColorIcon

java.lang.Object
  extended by 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_)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolidColorIcon

public SolidColorIcon(java.awt.Color color_,
                      int width_,
                      int height_)
Method Detail

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