public class HighlightRegion extends Rectangle2D
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(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. |
String |
toString()
Returns a string representation of this
HighlighRegion. |
contains, contains, contains, contains, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, intersects, intersectspublic 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(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 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 Rectangle2DCopyright © 2025. All rights reserved.