JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
�� MetalCheckBoxIcon

java.lang.Object
  �̳��� javax.swing.plaf.metal.MetalCheckBoxIcon
������ʵ�ֵĽӿڣ�
Serializable, Icon, UIResource

public class MetalCheckBoxIcon
extends Object
implements Icon, UIResource, Serializable

OrganicCheckBoxUI �� CheckboxIcon ʵ��

���棺��������л��������Ժ�� Swing �汾�����ݡ���ǰ���л�֧�������ڶ��ڴ洢��������ͬ Swing �汾��Ӧ�ó���֮��� RMI���� 1.4 �汾��ʼ������ java.beans ����������֧������ JavaBeansTM ���ڴ洢�Ĺ��ܡ���μ� XMLEncoder��


���췽��ժҪ
MetalCheckBoxIcon()
           
 
����ժҪ
protected  void drawCheck(Component c, Graphics g, int x, int y)
           
protected  int getControlSize()
           
 int getIconHeight()
          ����ͼ��ĸ߶ȡ�
 int getIconWidth()
          ����ͼ��Ŀ��ȡ�
 void paintIcon(Component c, Graphics g, int x, int y)
          ��ָ��λ���ϻ���ͼ�ꡣ
 
���� java.lang.Object �̳еķ���
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

���췽����ϸ��Ϣ

MetalCheckBoxIcon

public MetalCheckBoxIcon()
������ϸ��Ϣ

getControlSize

protected int getControlSize()

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
�ӽӿ� Icon ���Ƶ�����
��ָ��λ���ϻ���ͼ�ꡣͼ��ʵ�ֿ���ʹ�� Component ��������öԻ������õ����ԣ�����ǰ��ɫ�ͱ���ɫ��

ָ���ߣ�
�ӿ� Icon �е� paintIcon

drawCheck

protected void drawCheck(Component c,
                         Graphics g,
                         int x,
                         int y)

getIconWidth

public int getIconWidth()
�ӽӿ� Icon ���Ƶ�����
����ͼ��Ŀ��ȡ�

ָ���ߣ�
�ӿ� Icon �е� getIconWidth
���أ�
һ��ָ��ͼ��Ĺ̶����ȵ� int ֵ��

getIconHeight

public int getIconHeight()
�ӽӿ� Icon ���Ƶ�����
����ͼ��ĸ߶ȡ�

ָ���ߣ�
�ӿ� Icon �е� getIconHeight
���أ�
һ��ָ��ͼ��Ĺ̶��߶ȵ� int ֵ��

JavaTM Platform
Standard Ed. 6

�ύ��������
�йظ���� API �ο����ϺͿ�����Ա�ĵ�������� Java SE ������Ա�ĵ������ĵ���������ϸ�ġ����򿪷���Ա���������Լ�������������ﶨ�塢ʹ�ü��ɺ͹�������ʾ����

��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������