| java.lang.Object | |
| ↳ | com.carto.core.ScreenPos |
A screen position defined by x,y floating point numbers.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
ScreenPos()
Constructs a ScreenPos object.
| |||||||||||
|
ScreenPos(float x, float y)
Constructs a ScreenPos object from 2 coordinates.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | delete() | ||||||||||
| boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
| float |
getX()
Returns the x coordinate of this position.
| ||||||||||
| float |
getY()
Returns the y coordinate of this position.
| ||||||||||
| int |
hashCode()
Returns the hash value of this object.
| ||||||||||
| String |
toString()
Creates a string representation of this screen position, useful for logging.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a ScreenPos object. All coordinates will be 0.
Constructs a ScreenPos object from 2 coordinates.
| x | The x coordinate. |
|---|---|
| y | The y coordinate. |
Checks if this object is equal to the specified object.
| obj | The reference object. |
|---|
Returns the x coordinate of this position.
Returns the y coordinate of this position.
Returns the hash value of this object.
Creates a string representation of this screen position, useful for logging.