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

Quick Search    Search Deep

javax.swing.plaf.basic
Class BasicIconFactory.CheckBoxIcon  view BasicIconFactory.CheckBoxIcon download BasicIconFactory.CheckBoxIcon.java

java.lang.Object
  extended byjavax.swing.plaf.basic.BasicIconFactory.CheckBoxIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
BasicIconFactory

static class BasicIconFactory.CheckBoxIcon
extends java.lang.Object
implements javax.swing.Icon

The icon used for CheckBoxes in the BasicLookAndFeel. This is an empty icon with a size of 13x13 pixels.


Constructor Summary
(package private) BasicIconFactory.CheckBoxIcon()
           
 
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)
          Paints the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIconFactory.CheckBoxIcon

BasicIconFactory.CheckBoxIcon()
Method Detail

getIconHeight

public int getIconHeight()
Returns the height of the icon. The BasicLookAndFeel CheckBox icon has a height of 13 pixels.

Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Returns the width of the icon. The BasicLookAndFeel CheckBox icon has a width of 13 pixels.

Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paints the icon. The BasicLookAndFeel CheckBox icon is empty and does not need to be painted.

Specified by:
paintIcon in interface javax.swing.Icon