?? dimension.java
字號(hào):
package java.awt;/** * class Dimension - represents (width x height) extensions * * Copyright (c) 1998 * Transvirtual Technologies, Inc. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. * * @author P.C.Mehlitz */public class Dimension implements java.io.Serializable{ private static final long serialVersionUID = 4723952579491349524L; /** @serial The width dimension. Negative values can be used. */ public int width; /** @serial The height dimension. Negative values can be used. */ public int height;public Dimension() {}public Dimension ( Dimension d ) { width = d.width; height = d.height;}public Dimension ( int w, int h ) { width = w; height = h;}public boolean equals ( Object obj ) { if ( obj instanceof Dimension ) { Dimension d = (Dimension) obj; return (d.width == width) && (d.height == height); } else return false;}public Dimension getSize () { return new Dimension( width, height);}public void setSize ( Dimension d ) { width = d.width; height = d.height;}public void setSize ( int w, int h ) { width = w; height = h;}public String toString() { return getClass().getName() + "[width=" + width + ",height=" + height + ']';}}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -