Skip navigation links


com.essbase.eas.ui.color
Class ColorIcon

java.lang.Object
  extended by com.essbase.eas.ui.color.ColorIcon

All Implemented Interfaces:
javax.swing.Icon

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

simple utility class for color icons

Version:
1.00, 06/20/2003
Author:
Madhavi Bolisetty, Sree Menon

Constructor Summary
ColorIcon()
           
ColorIcon(java.awt.Color clr, int w, int h)
           

 

Method Summary
 java.awt.Color getColor()
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setColor(java.awt.Color c)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ColorIcon

public ColorIcon()

ColorIcon

public ColorIcon(java.awt.Color clr,
                 int w,
                 int h)

Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color c)

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.