Class SmallRect
- java.lang.Object
-
- org.eclipse.gef.cloudio.internal.ui.util.SmallRect
-
public class SmallRect extends java.lang.ObjectA custom variation of a rectangle, which stores the required values as short instead of int, thus saving some space.
-
-
Constructor Summary
Constructors Constructor Description SmallRect(int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanintersects(int x, int y, int width, int height)booleanintersects(SmallRect rect)java.lang.StringtoString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
intersects
public boolean intersects(SmallRect rect)
-
intersects
public boolean intersects(int x, int y, int width, int height)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-