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

Quick Search    Search Deep

com.memoire.bu
Class BuColorIcon  view BuColorIcon download BuColorIcon.java

java.lang.Object
  extended bycom.memoire.bu.BuColorIcon
All Implemented Interfaces:
javax.swing.Icon

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

A simple icon which displays a 16x16 rect filled with a given color.


Field Summary
private  java.awt.Color color_
           
private  java.awt.Dimension size_
           
 
Constructor Summary
BuColorIcon(java.awt.Color _color)
           
BuColorIcon(java.awt.Color _color, java.awt.Dimension _size)
           
 
Method Summary
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 void paintIcon(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y)
          Draws the icon at the location (x, y) on the specified graphics device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color_

private java.awt.Color color_

size_

private java.awt.Dimension size_
Constructor Detail

BuColorIcon

public BuColorIcon(java.awt.Color _color)

BuColorIcon

public BuColorIcon(java.awt.Color _color,
                   java.awt.Dimension _size)
Method Detail

getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component _c,
                      java.awt.Graphics _g,
                      int _x,
                      int _y)
Description copied from interface: javax.swing.Icon
Draws the icon at the location (x, y) on the specified graphics device.

Specified by:
paintIcon in interface javax.swing.Icon