Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.swing.config
Class ColorField.CustomIcon  view ColorField.CustomIcon download ColorField.CustomIcon.java

java.lang.Object
  extended bycom.eireneh.swing.config.ColorField.CustomIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
ColorField

class ColorField.CustomIcon
extends java.lang.Object
implements javax.swing.Icon

The CustomIcon that shows the selected color


Constructor Summary
(package private) ColorField.CustomIcon()
           
 
Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draw the icon at the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorField.CustomIcon

ColorField.CustomIcon()
Method Detail

getIconHeight

public int getIconHeight()
Returns the icon's height.

Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Returns the icon's width.

Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Draw the icon at the specified location.

Specified by:
paintIcon in interface javax.swing.Icon