JavaTM Platform
Standard Ed. 6

java.awt.geom
�� Dimension2D

java.lang.Object
  �̳��� java.awt.geom.Dimension2D
������ʵ�ֵĽӿڣ�
Cloneable
ֱ����֪���ࣺ
Dimension

public abstract class Dimension2D
extends Object
implements Cloneable

Dimension2D �����ڷ�װ���Ⱥ͸߶ȳߴ硣

���������д洢 2D �ߴ�Ķ����Ωһ�����ࡣ��С��ʵ�ʴ洢��ʾ��ʽ�����������

�����°汾��ʼ��
1.2

���췽��ժҪ
protected Dimension2D()
          ����һ������ֱ��ʵ�����ij����ࡣ
 
����ժҪ
 Object clone()
          ����һ����˶��������ͬ����¶���
abstract  double getHeight()
          ���ش� Dimension �ĸ߶ȣ��� double ���ȱ�ʾ����
abstract  double getWidth()
          ���ش� Dimension �Ŀ��ȣ��� double ���ȱ�ʾ����
 void setSize(Dimension2D d)
          �� Dimension2D ����Ĵ�С����Ϊָ����С��
abstract  void setSize(double width, double height)
          ���� Dimension ����Ĵ�С����Ϊָ���Ŀ��Ⱥ͸߶ȡ�
 
���� java.lang.Object �̳еķ���
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Dimension2D

protected Dimension2D()
����һ������ֱ��ʵ�����ij����ࡣ�ض������͵�ʵ�����������ʵ���������ṩ���ڴ洢�������¸��ִ�ȡ����������Ϣ�Ķ��ָ�ʽ��

�����°汾��ʼ��
1.2
������
Dimension
������ϸ��Ϣ

getWidth

public abstract double getWidth()
���ش� Dimension �Ŀ��ȣ��� double ���ȱ�ʾ����

���أ�
�� Dimension �Ŀ��ȡ�
�����°汾��ʼ��
1.2

getHeight

public abstract double getHeight()
���ش� Dimension �ĸ߶ȣ��� double ���ȱ�ʾ����

���أ�
�� Dimension �ĸ߶ȡ�
�����°汾��ʼ��
1.2

setSize

public abstract void setSize(double width,
                             double height)
���� Dimension ����Ĵ�С����Ϊָ���Ŀ��Ⱥ͸߶ȡ������˷����dz��������Կ��ǣ��� Component �� getSize ������Ӧ��

������
width - Dimension ������¿���
height - Dimension ������¸߶�
�����°汾��ʼ��
1.2

setSize

public void setSize(Dimension2D d)
�� Dimension2D ����Ĵ�С����Ϊָ����С�������˷����dz��������Կ��ǣ��� Component �� getSize ������Ӧ��

������
d - Dimension2D ������´�С
�����°汾��ʼ��
1.2

clone

public Object clone()
����һ����˶��������ͬ����¶���

���ǣ�
�� Object �е� clone
���أ�
��ʵ����һ��������
�׳���
OutOfMemoryError - ���û���㹻���ڴ档
�����°汾��ʼ��
1.2
������
Cloneable

JavaTM Platform
Standard Ed. 6

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

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