Class SmallRect
- java.lang.Object
-
- org.eclipse.gef.cloudio.internal.ui.util.SmallRect
-
public class SmallRect extends java.lang.Object
A 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 boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
intersects(int x, int y, int width, int height)
boolean
intersects(SmallRect rect)
java.lang.String
toString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in 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:
toString
in classjava.lang.Object
-
-