public class HighlightRegion extends Rectangle2D
| Modifier and Type | Field and Description |
|---|---|
private int |
hash
Cache the hash code to make computing hashes faster.
|
private TKScene |
tkScene |
EMPTY| Constructor and Description |
|---|
HighlightRegion(TKScene tkScene,
double x,
double y,
double w,
double h)
Constructs a new HighlightRegion.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
TKScene |
getTKScene()
Getter for the scene attribute.
|
int |
hashCode()
Returns a hash code for this
Rectangle2D object. |
java.lang.String |
toString()
Returns a string representation of this
HighlighRegion. |
contains, contains, contains, contains, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, intersects, intersectsprivate TKScene tkScene
private int hash
public HighlightRegion(TKScene tkScene, double x, double y, double w, double h)
tkScene - the scene this region belongs to.x - the x coordinate of the regiony - the y coordinate of the regionw - the width of the regionh - the height of the regionpublic TKScene getTKScene()
public boolean equals(java.lang.Object obj)
Rectangle2Dequals in class Rectangle2Dobj - the reference object with which to compare.true if this object is equal to the obj argument; false otherwise.public int hashCode()
Rectangle2DRectangle2D object.hashCode in class Rectangle2DRectangle2D object.public java.lang.String toString()
HighlighRegion.
This method is intended to be used only for informational purposes.
The content and format of the returned string might vary between
implementations.
The returned string might be empty but cannot be null.toString in class Rectangle2D