public class UnitRectangle
extends java.lang.Object
implements java.lang.Cloneable
构造器和说明 |
---|
UnitRectangle(java.awt.Rectangle rec,
int resolution) |
UnitRectangle(UnitRectangle rec) |
UnitRectangle(UNIT x,
UNIT y,
UNIT width,
UNIT height) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
UNIT |
getHeight() |
UNIT |
getWidth() |
UNIT |
getX() |
UNIT |
getY() |
UnitRectangle |
intersection(UnitRectangle r) |
boolean |
intersects(UnitRectangle r) |
void |
setHeight(UNIT height) |
void |
setWidth(UNIT width) |
void |
setX(UNIT x) |
void |
setY(UNIT y) |
java.awt.Rectangle |
toRectangle(int resolution) |
java.lang.String |
toString() |
public UnitRectangle(java.awt.Rectangle rec, int resolution)
public UnitRectangle(UnitRectangle rec)
public UNIT getX()
public void setX(UNIT x)
public UNIT getY()
public void setY(UNIT y)
public UNIT getWidth()
public void setWidth(UNIT width)
public UNIT getHeight()
public void setHeight(UNIT height)
public java.awt.Rectangle toRectangle(int resolution)
public boolean intersects(UnitRectangle r)
public UnitRectangle intersection(UnitRectangle r)
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
在类中 java.lang.Object