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, intersects
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(Object obj)
Rectangle2D
equals
in class Rectangle2D
obj
- the reference object with which to compare.true
if this object is equal to the obj
argument; false
otherwise.public int hashCode()
Rectangle2D
Rectangle2D
object.hashCode
in class Rectangle2D
Rectangle2D
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 Rectangle2D
Copyright © 2020. All rights reserved.