com.rapidminer.gui.tools.components
Class ColorIcon

java.lang.Object
  extended by com.rapidminer.gui.tools.components.ColorIcon
All Implemented Interfaces:
javax.swing.Icon

public class ColorIcon
extends java.lang.Object
implements javax.swing.Icon

This is an icon, that shows just a single color. This can be used for demonstrating selected colors.

Author:
Ingo Mierswa, Sebastian Land

Constructor Summary
ColorIcon(java.awt.Color color)
           
ColorIcon(java.awt.Color color, int width, int height)
           
 
Method Summary
 java.awt.Color getBorderColor()
           
 java.awt.Color getColor()
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setColor(java.awt.Color color)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorIcon

public ColorIcon(java.awt.Color color)

ColorIcon

public ColorIcon(java.awt.Color color,
                 int width,
                 int height)
Method Detail

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

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


Copyright © 2001-2009 by Rapid-I