com.pallas.swing.color
Class ColorIcon

java.lang.Object
  |
  +--com.pallas.swing.color.ColorIcon
All Implemented Interfaces:
javax.swing.Icon

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

Title: $FileName: ColorIcon.java$

Version:
$VerNum: 1$
Author:
$AuthorName: Rob MacGrogan$

$Description: Color selector.$
$KeyWordsOff: $


Field Summary
private  java.awt.Color color
           
private  int height
           
private  int width
           
 
Constructor Summary
ColorIcon(java.awt.Color c)
           
ColorIcon(java.awt.Color c, int height, int width)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

private int height

width

private int width

color

private java.awt.Color color
Constructor Detail

ColorIcon

public ColorIcon(java.awt.Color c)

ColorIcon

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

getIconHeight

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

getIconWidth

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

paintIcon

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


Copyright 2003 Pallas Technology.